Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
assistant
build
containers
custom-scopes
deploy
developer-spaces
environments
install
manifest
module
providers
settings
show
site
skills
storage
variables
version
webtrigger
Last updated Nov 25, 2026

tunnel

Description

start a tunnel to connect your local code with the app running in the development environment

Usage

1
2
Usage: forge tunnel [options]

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

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.

Further information

  • Debug functions using IntelliJ: This tutorial demonstrates debugging back-end Forge functions in Node.js with IntelliJ's debugger.
  • Debug functions using VSCode: This tutorial demonstrates debugging back-end Forge functions in Node.js with VS Code's debugger.
  • Tunneling: This guide explains how to debug in real-time between the local environment and the Forge platform.

Rate this page: