A command-line interface for controlling a Browser4 server. Designed for use by AI agents through SKILLS + CLI.
cd cli/browser4-cli
cargo build --release
# Binary is at target/release/browser4-cli
# Or install to Cargo bin directory (%USERPROFILE%\.cargo\bin on Windows, ~/.cargo/bin on Unix):
cargo install --path .Or run directly:
cargo run -- <command> [args] [options]browser4-cli <command> [args] [options]
browser4-cli -s=<session> <command> [args] [options]
| Flag | Description |
|---|---|
--help [command] |
Print help (optionally for a specific command) |
--version |
Print version |
-s=<name> |
Named session label |
--server=<url> |
Override Browser4 server URL |
Sessions are persisted independently per name. Omitting -s uses the
default session (~/.browser4/cli-state.json). With -s=<name>, a
separate state file is stored under ~/.browser4/sessions/<name>.json.
open without -s reuses the default session if one exists; with
-s=<name> it switches to or creates the named session.
## Run all tests (unit + end-to-end):
cargo test
## Run only the end-to-end tests and print their output:
cargo test --test e2e -- --nocapture
## Run a specific end-to-end test scenario:
cargo test --test e2e -- --nocapture --scenario=test_e2e_batch_form_submissionApache-2.0