Interact with the Browser Run service using Wrangler.
browser create
Create a new Browser Run session
npx wrangler browser createyarn wrangler browser createpnpm wrangler browser create--labbooleandefault: falseEnable lab browser session with experimental Chrome features (e.g., WebMCP)
--keepAlivenumberalias: --kKeep-alive duration in seconds (60-600)
--jsonbooleandefault: falseReturn session info as JSON
--openbooleanOpen DevTools in browser (default: true in interactive mode)
Global flags
--vbooleanalias: --versionShow version number
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
--configstringalias: --cPath to Wrangler configuration file
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
--experimental-provisionbooleanaliases: --x-provisiondefault: trueExperimental: Enable automatic resource provisioning
--experimental-auto-createbooleanalias: --x-auto-createdefault: trueAutomatically provision draft bindings with new resources
--install-skillsbooleandefault: falseInstall Cloudflare skills for detected AI coding agents before running the command
--profilestringUse a specific auth profile
browser close
Close a Browser Run session
npx wrangler browser close [SESSIONID]yarn wrangler browser close [SESSIONID]pnpm wrangler browser close [SESSIONID][SESSIONID]stringrequiredThe session ID to close
--jsonbooleandefault: falseReturn result as JSON
Global flags
--vbooleanalias: --versionShow version number
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
--configstringalias: --cPath to Wrangler configuration file
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
--experimental-provisionbooleanaliases: --x-provisiondefault: trueExperimental: Enable automatic resource provisioning
--experimental-auto-createbooleanalias: --x-auto-createdefault: trueAutomatically provision draft bindings with new resources
--install-skillsbooleandefault: falseInstall Cloudflare skills for detected AI coding agents before running the command
--profilestringUse a specific auth profile
browser list
List active Browser Run sessions
npx wrangler browser listyarn wrangler browser listpnpm wrangler browser list--jsonbooleandefault: falseReturn output as JSON
Global flags
--vbooleanalias: --versionShow version number
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
--configstringalias: --cPath to Wrangler configuration file
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
--experimental-provisionbooleanaliases: --x-provisiondefault: trueExperimental: Enable automatic resource provisioning
--experimental-auto-createbooleanalias: --x-auto-createdefault: trueAutomatically provision draft bindings with new resources
--install-skillsbooleandefault: falseInstall Cloudflare skills for detected AI coding agents before running the command
--profilestringUse a specific auth profile
browser view
View a live browser session
npx wrangler browser view [SESSIONID]yarn wrangler browser view [SESSIONID]pnpm wrangler browser view [SESSIONID][SESSIONID]stringThe session ID to inspect (optional if only one session exists)
--targetstringTarget selector (matches id exactly, or url/title by substring)
--jsonbooleandefault: falseReturn live browser session URL(s) as JSON
--openbooleanOpen in browser (default: true in interactive mode)
Global flags
--vbooleanalias: --versionShow version number
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
--configstringalias: --cPath to Wrangler configuration file
--envstringalias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
--experimental-provisionbooleanaliases: --x-provisiondefault: trueExperimental: Enable automatic resource provisioning
--experimental-auto-createbooleanalias: --x-auto-createdefault: trueAutomatically provision draft bindings with new resources
--install-skillsbooleandefault: falseInstall Cloudflare skills for detected AI coding agents before running the command
--profilestringUse a specific auth profile