# 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.

## What was announced?

From Cloudflare's Changelog: [Browser Rendering](https://developers.cloudflare.com/browser-run/) 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 session
- `wrangler browser close` — close a session
- `wrangler browser list` — list active sessions
- `wrangler 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](https://developers.cloudflare.com/browser-run/cdp/)-compatible client — like [Puppeteer](https://developers.cloudflare.com/browser-run/cdp/puppeteer/), [Playwright](https://developers.cloudflare.com/browser-run/cdp/playwright/), or [MCP clients](https://developers.cloudflare.com/browser-run/cdp/mcp-clients/) — so you can automate browsing, scrape content, or debug remotely.

```sh
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.

```sh
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](https://developers.cloudflare.com/browser-run/reference/wrangler-commands/).

## Wrap-up

- Browser Rendering added `wrangler browser` commands, so you can manage sessions from the terminal
- `create` / `close` / `list` / `view` cover 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!
