Skip to main content

CLI Reference

The meshbrow CLI lets you manage browser sessions, profiles, and fleets directly from your terminal.

Installation

Verify the installation:

Authentication

The easiest way to authenticate is the browser flow:
This opens your browser — confirm the code shown in your terminal and click Authorize. The CLI finishes automatically and saves an API key to ~/.meshbrow.yaml. To authenticate without a browser (CI, headless servers), pass a key directly:
You can also use environment variables:
Check your auth status:

Sessions

Create a Session

Output:

List Sessions

Get Session Details

Destroy a Session

Profiles

Create a Profile

List Profiles

Delete a Profile

Fleet Management

Create a Fleet

Check Fleet Status

Destroy a Fleet

Session Actions

Screenshot

Execute JavaScript

Cookies

Export Cookies

Import Cookies

System Status

Output:

Version

Global Flags

Configuration File

The CLI reads from ~/.meshbrow.yaml:

Environment Variables

Shell Completion

Generate shell completions:

Scripting Examples

Create session and connect with Playwright

Batch screenshot multiple URLs