Skip to content
pre-alpha

motio browser ensure

Download the pinned chrome-headless-shell if needed.

Terminal window
motio browser ensure

Flags

Flag Description
--json Print one JSON object on stdout (schema in schemas/).
--log=<value> Log level: trace, verbose, info, warn, error.
--help, -h Show help for the command.
--browser-executable=<value> Check this Chrome instead of downloading.
--chrome-mode=<value> Accepted for compatibility: headless-shell only.

JSON output

With --json, motio browser ensure prints exactly one JSON object on stdout. On success it has these fields; on failure it is the error object. The schema ships with the CLI as @motiojs/cli/schemas/browser-ensure.schema.json.

Field Type Description
ok true
command "browser ensure"
executablePath string Absolute path.
version string or null
downloaded boolean
source "pinned", "user"
warnings array of string

Exit codes

See exit codes. Run motio browser ensure --help for the same list of flags in the terminal.