Run BrowsingBee browser automation tests from your terminal.
Install the CLI globally from npm:
npm install -g browsing-bee-cliThen confirm it is available:
browsingbee --helpFor local development from this repository:
npm install
npm linkLogin with your BrowsingBee API key:
browsingbee loginYou can also pass the API key directly for a one-liner login:
browsingbee login --apikey YOUR_API_KEYThe CLI stores your API key locally so future commands can use it.
Authenticate the CLI:
browsingbee loginCreate and run a browser test:
browsingbee run --name "Login smoke test" --url "https://example.com" --description "Verify the user can log in"If --name or --url is missing, the CLI will ask for it interactively.
Run an existing BrowsingBee skill or saved test by ID:
browsingbee use-skill --id 123You can pass runtime variables as additional options. These are sent to BrowsingBee with the run request:
browsingbee use-skill --id 123 --email "user@example.com" --password "secret"BrowsingBee supports session persistence, allowing you to save browser state (like login cookies) and reuse it in future runs.
To save the session after a successful run, use the --save_session flag:
browsingbee run --url "https://magicslides.app" --save_sessionTo reuse a previously saved session for a specific domain, use the --use_session flag:
browsingbee run --url "https://magicslides.app" --use_session "magicslides.app"List all active sessions or clear them:
# List all saved sessions
browsingbee sessions
# Clear a specific session
browsingbee sessions --clear "magicslides.app"List all tests available for your account:
browsingbee listView previous runs for a test:
browsingbee history 123Check your current plan and remaining credits:
browsingbee creditsCheck the status of a run:
browsingbee status RUN_IDSelect and run tests from an interactive terminal menu. You can also configure session options within the interactive menu:
browsingbee interactiveBefore publishing, make sure the CLI points to the production BrowsingBee backend instead of a local development server.
Check what npm will include:
npm pack --dry-runPublish to npm:
npm publishFor future releases, bump the version first:
npm version patch
npm publish- Node.js 18 or newer
- A BrowsingBee API key