Manage Browser Rendering Sessions with Wrangler CLI
Key Points
- Wrangler CLI integration for browser session management
- CDP-compatible with Puppeteer, Playwright, and MCP clients
- Automated session control with JSON output support
Summary
Cloudflare Browser Rendering now integrates with Wrangler CLI, enabling developers to create, manage, and monitor browser sessions directly from the terminal without needing to handle API tokens manually.
Key Points
-
New Commands Available:
wrangler browser create- Spin up a new browser instance and receive a session URLwrangler browser close- Terminate an active sessionwrangler browser list- Display all active sessionswrangler browser view- Connect to and view a live browser session
-
CDP Compatibility: Created sessions work with any Chrome DevTools Protocol (CDP)-compatible client including Puppeteer, Playwright, and MCP clients for automation, scraping, and remote debugging
-
Configuration & Automation:
- Use
--keepAliveflag to set session duration (60-600 seconds) - All commands support
--jsonoutput for structured data - CLI commands can be incorporated into scripts for automated session management
- Use
-
Simplified Authentication: Wrangler handles authentication automatically, eliminating the need to pass API tokens in commands