Skip to content

Wrangler commands

Last updated View as MarkdownAgent setup

Use wrangler browser commands to manage Browser Run sessions from the command line.

browser create

Create a new Browser Run session

npx wrangler browser create
  • --labboolean default: false

    Enable lab browser session with experimental Chrome features (e.g., WebMCP)

  • --keepAlivenumber alias: --k

    Keep-alive duration in seconds (60-600)

  • --jsonboolean default: false

    Return session info as JSON

  • --openboolean

    Open DevTools in browser (default: true in interactive mode)

Global flags

  • --vboolean alias: --version

    Show version number

  • --cwdstring

    Run as if Wrangler was started in the specified directory instead of the current working directory

  • --configstring alias: --c

    Path to Wrangler configuration file

  • --envstring alias: --e

    Environment to use for operations, and for selecting .env and .dev.vars files

  • --env-filestring

    Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files

  • --experimental-provisionboolean aliases: --x-provisiondefault: true

    Experimental: Enable automatic resource provisioning

  • --experimental-auto-createboolean alias: --x-auto-createdefault: true

    Automatically provision draft bindings with new resources

  • --install-skillsboolean default: false

    Install Cloudflare skills for detected AI coding agents before running the command

  • --profilestring

    Use a specific auth profile

browser close

Close a Browser Run session

npx wrangler browser close [SESSIONID]