start a tunnel to connect your local code with the app running in the development environment
1 2Usage: forge tunnel [options]
1 2 3 4 5 6 7 8 9 10 11--verbose enable verbose mode --non-interactive run the command without input prompts -e, --environment [environment] specify the environment (see your default environment by running forge settings list) -d, --debug enable debugger mode -f,--debugFunctionHandlers <debugFunctionHandlers...> list of function handlers declared on manifest to debug, separated by space. This option must be specified if debug mode is enabled. It is only used for Node runtime debugger -p,--debugStartingPort [debugStartingPort] starting port to use for debugging, multiple handlers will get subsequent ports. It is only used for Node runtime debugger (default: "9229") -h,--debugHost [debugHost] host to bind the Node runtime debuggers to, default is 127.0.0.1 (default: "127.0.0.1") -n, --no-verify disable pre-tunnel checks --local-storage route Forge KVS and SQL SDK calls to Docker-backed local storage --help display help for command
For CLI versions 10.1.0 and beyond, tunnels running on Cloudflare do not require additional setup.
Local storage mocks are an Early Access Program (EAP) feature. They are experimental and intended for development, testing, and feedback.
EAP features are unsupported, not recommended for production use, and subject to change without notice.
For more details, see Forge release phases: EAP, Preview, and GA.
Use forge tunnel --local-storage to start manifest-declared local storage services and route @forge/kvs and @forge/sql calls to them. Docker and Compose are required. This does not seed or reset data.
Tunnel exit stops the shared storage runtime, including services started independently before the tunnel. Coordinate with other local consumers. See Tunneling with local storage and Develop with local storage.
Rate this page: