Manage Browser Rendering from your terminal with wrangler browser!
Hey there, it's me, Shiichan! Today I found an update that terminal lovers are going to enjoy, so let me tell you all about it.
Cloudflare ChangelogWhat was announced?
From Cloudflare's Changelog: Browser Rendering now supports wrangler browser commands! You can create, manage, and view browser sessions right from your terminal. And since Wrangler handles authentication, you don't have to pass API tokens in your commands.
The story so far
Until now, working with a Browser Rendering session meant preparing an API token yourself and passing it along. Even a quick check needed some setup, which made it a bit of a hassle to try things fast.
What changes
From now on you can spin up a session with wrangler browser create and connect right away. There are four commands to work with:
wrangler browser create— create a new browser sessionwrangler browser close— close a sessionwrangler browser list— list active sessionswrangler browser view— view a live browser session
Handing authentication over to Wrangler means you're freed from shuttling tokens around, which is a lovely little win.
Dive Deep
The create command spins up a browser instance on Cloudflare's network and returns a session URL. That URL works with any CDP-compatible client — like Puppeteer, Playwright, or MCP clients — so you can automate browsing, scrape content, or debug remotely.
wrangler browser create
When you want to set how long a session stays alive, add --keepAlive. You can pick a value from 60 to 600 seconds.
wrangler browser create --keepAlive 300
The view command auto-selects when only one session exists, and prompts you to choose when several are available. Every command also supports --json, so you can fold structured output into scripts and automate session management.
For full usage details, check the Wrangler commands documentation.
Wrap-up
- Browser Rendering added
wrangler browsercommands, so you can manage sessions from the terminal create/close/list/viewcover everything from creation to viewing- Wrangler handles authentication, so no more passing API tokens around
- Tune session lifetime with
--keepAlive(60-600 seconds), and wire it into scripts with--json
If you already use Puppeteer or Playwright with Browser Rendering, or you want to fold this into CI, this update is right up your alley!