browserlayer / docsPrivate alphaDashboard ↗
ReferenceMarkdown

CLI reference

Run commands from a directory containing browserlayer.config.ts, or pass --project-dir.

TaskCommand
Create projectbrowserlayer init <directory> --name <integration>
Open local Studiobrowserlayer start
Inspect local servicebrowserlayer status
Stop local servicebrowserlayer stop
Service logsbrowserlayer logs --follow
Capturebrowserlayer capture start <url> / capture stop
Inspect capturebrowserlayer capture inspect <id>
Offline testsbrowserlayer test [integration]
Connect accountbrowserlayer connections create <integration> --local --wait
Invoke endpointbrowserlayer run <integration> <endpoint> --local --input @input.json --wait
Inspect runbrowserlayer runs inspect <id> --local
Submit inputbrowserlayer runs input <id> --local --input @answer.json
Cancelbrowserlayer runs cancel <id> --local
Inspect schedulesbrowserlayer syncs list <connection> --local
Read sync changesbrowserlayer syncs records <connection> <sync> --local
Control syncbrowserlayer syncs trigger <connection> <sync> --local
Deploybrowserlayer deploy <integration> --env development
Promotebrowserlayer promote <integration> --version <digest> --env production
Authoring instructionsbrowserlayer guide

Targets

FlagRuns against
--localLocal Chrome and SQLite
--env developmentYour installation's Development environment
--env productionYour installation's Production environment

Live resource commands require a target. Switching the UI environment does not change CLI targets.

Input and output

sh
browserlayer run example page-title --local --input @input.json --wait --json

--input accepts inline JSON, @file or - for stdin. JSON results use { "ok": true, "data": ... }; diagnostics go to stderr.

--wait stops on completion, failure or input required. --timeout is in seconds. Interrupting a wait does not cancel the run. --json and --no-open prevent automatic Link/Studio opening.

Exit codeMeaning
0Success
1Command or execution failed
2Invalid arguments/configuration
3Authentication required
4Run needs user input
5Wait timed out; run may still be active

Resource lists use --limit and --cursor. Sync records return changes, cursor and hasMore instead of the resource-list envelope. Use browserlayer --help for the complete command list.