Skip to content

CLI Reference

OpenStatus is a command line interface for managing your monitors and triggering your synthetics tests.

This is OpenStatus Command Line Interface, the OpenStatus.dev CLI.

Usage:

Terminal window
$ openstatus [COMMAND] [COMMAND FLAGS] [ARGUMENTS...]

Manage your monitors.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] monitors [ARGUMENTS...]

Create or update monitors.

openstatus monitors apply [options]

Creates or updates monitors according to the OpenStatus configuration file.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] monitors apply [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--config="…" (-c)The configuration file containing monitor informationopenstatus.yamlnone
--access-token="…" (-t)OpenStatus API Access TokenOPENSTATUS_API_TOKEN
--auto-accept (-y)Automatically accept the promptfalsenone

Import all your monitors.

openstatus monitors import [options]

Import all your monitors from your workspace to a YAML file; it will also create a lock file to manage your monitors with ‘apply’.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] monitors import [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)OpenStatus API Access TokenOPENSTATUS_API_TOKEN
--output="…" (-o)The output file nameopenstatus.yamlnone

Get a monitor information.

openstatus monitors info [MonitorID]

Fetch the monitor information. The monitor information includes details such as name, description, endpoint, method, frequency, locations, active status, public status, timeout, degraded after, and body. The body is truncated to 40 characters.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] monitors info [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)OpenStatus API Access TokenOPENSTATUS_API_TOKEN

List all monitors.

openstatus monitors list [options]

List all monitors. The list shows all your monitors attached to your workspace. It displays the ID, name, and URL of each monitor.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] monitors list [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--allList all monitors including inactive onesfalsenone
--access-token="…" (-t)OpenStatus API Access TokenOPENSTATUS_API_TOKEN

Trigger a monitor execution.

openstatus monitors trigger [MonitorId] [options]

Trigger a monitor execution on demand. This command allows you to launch your tests on demand.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] monitors trigger [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)OpenStatus API Access TokenOPENSTATUS_API_TOKEN

Run your synthetics tests.

openstatus run [options]

Run the synthetic tests defined in the config.openstatus.yaml.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] run [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--config="…"The configuration fileconfig.openstatus.yamlnone
--access-token="…" (-t)OpenStatus API Access TokenOPENSTATUS_API_TOKEN

Get your workspace information.

openstatus whoami [options]

Get your current workspace information, display the workspace name, slug, and plan.

Usage:

Terminal window
$ openstatus [GLOBAL FLAGS] whoami [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)OpenStatus API Access TokenOPENSTATUS_API_TOKEN