openstatus logoDashboard

CLI Reference

CLI interface - openstatus

Manage status pages, monitors, and incidents from the terminal.

Usage:

$ openstatus [GLOBAL FLAGS] [COMMAND] [COMMAND FLAGS] [ARGUMENTS...]

Global flags:

NameDescriptionDefault valueEnvironment variables
--jsonOutput results as JSONfalsenone
--no-colorDisable colored outputfalsenone
--quiet (-q)Suppress non-error outputfalsenone
--debugEnable debug outputfalsenone

monitors command (aliases: m)

Manage your monitors.

Usage:

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

monitors apply subcommand

Create or update monitors.

openstatus monitors apply openstatus monitors apply --config custom.yaml -y openstatus monitors apply --dry-run

Creates or updates monitors according to the openstatus configuration file. Compares your openstatus.yaml with the current state and applies changes.

Usage:

$ 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
--dry-run (-n)Show what would be changed without applyingfalsenone

monitors create subcommand

Create monitors.

openstatus monitors create openstatus monitors create --config custom.yaml -y

Create the monitors defined in the openstatus.yaml file.

Usage:

$ openstatus [GLOBAL FLAGS] monitors create [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

monitors delete subcommand

Delete a monitor.

openstatus monitors delete MonitorID openstatus monitors delete 12345 -y

Usage:

$ openstatus [GLOBAL FLAGS] monitors delete [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--auto-accept (-y)Automatically accept the promptfalsenone

monitors import subcommand

Import all your monitors.

openstatus monitors import openstatus monitors import --output monitors.yaml

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:

$ 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

monitors info subcommand

Get a monitor information.

openstatus monitors info MonitorID openstatus monitors info 12345 openstatus monitors info 12345 --time-range 7d

Fetch the monitor information including configuration, live status per region, and summary metrics.

Usage:

$ 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
--time-range="…"Time range for summary metrics (1d, 7d, 14d)1dnone

monitors list subcommand

List all monitors.

openstatus monitors list openstatus monitors list --all

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

Usage:

$ 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

monitors trigger subcommand

Trigger a monitor execution.

openstatus monitors trigger MonitorID openstatus monitors trigger 12345

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

Usage:

$ 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

status-report command (aliases: sr)

Manage status reports.

Usage:

$ openstatus [GLOBAL FLAGS] status-report [ARGUMENTS...]

status-report list subcommand

List all status reports.

openstatus status-report list openstatus status-report list --status investigating --limit 10

Usage:

$ openstatus [GLOBAL FLAGS] status-report list [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--status="…"Filter by status (investigating, identified, monitoring, resolved)none
--limit="…"Maximum number of reports to return (1-100)0none

status-report info subcommand

Get status report details.

openstatus status-report info ReportID openstatus status-report info 12345

Usage:

$ openstatus [GLOBAL FLAGS] status-report info [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

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

status-report create subcommand

Create a status report.

openstatus status-report create --title "API Degradation" --status investigating --message "Investigating increased latency" --page-id 123

Usage:

$ openstatus [GLOBAL FLAGS] status-report create [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--title="…"Title of the status reportnone
--status="…"Initial status (investigating, identified, monitoring, resolved)none
--message="…"Initial message describing the incidentnone
--page-id="…"Status page ID to associate with this reportnone
--component-ids="…"Comma-separated page component IDsnone
--notifyNotify subscribers about this status reportfalsenone
--date="…"Date when the event occurred (RFC 3339 format, defaults to now)none

status-report update subcommand

Update status report metadata.

openstatus status-report update ReportID [--title "New title"] [--component-ids id1,id2]

Usage:

$ openstatus [GLOBAL FLAGS] status-report update [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--title="…"New title for the reportnone
--component-ids="…"Comma-separated page component IDs (replaces existing list)none

status-report delete subcommand

Delete a status report.

openstatus status-report delete ReportID openstatus status-report delete 12345 -y

Usage:

$ openstatus [GLOBAL FLAGS] status-report delete [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--auto-accept (-y)Automatically accept the promptfalsenone

status-report add-update subcommand

Add an update to a status report.

openstatus status-report add-update ReportID --status resolved --message "Issue has been resolved"

Usage:

$ openstatus [GLOBAL FLAGS] status-report add-update [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--status="…"New status (investigating, identified, monitoring, resolved)none
--message="…"Message describing what changednone
--date="…"Date for the update (RFC 3339 format, defaults to now)none
--notifyNotify subscribers about this updatefalsenone

maintenance command (aliases: mt)

Manage maintenance windows.

Usage:

$ openstatus [GLOBAL FLAGS] maintenance [ARGUMENTS...]

maintenance list subcommand

List all maintenance windows.

openstatus maintenance list openstatus maintenance list --page-id abc --limit 10

Usage:

$ openstatus [GLOBAL FLAGS] maintenance list [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--page-id="…"Filter by status page IDnone
--limit="…"Maximum number of maintenances to return (1-100)0none

maintenance info subcommand

Get maintenance window details.

openstatus maintenance info MaintenanceID openstatus maintenance info 12345

Usage:

$ openstatus [GLOBAL FLAGS] maintenance info [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

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

maintenance create subcommand

Create a maintenance window.

openstatus maintenance create --title "DB Migration" --message "Upgrading database" --from 2026-04-01T10:00:00Z --to 2026-04-01T12:00:00Z --page-id 123

Usage:

$ openstatus [GLOBAL FLAGS] maintenance create [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--title="…"Title of the maintenancenone
--message="…"Message describing the maintenancenone
--from="…"Start time of the maintenance window (RFC 3339 format)none
--to="…"End time of the maintenance window (RFC 3339 format)none
--page-id="…"Status page ID to associate with this maintenancenone
--component-ids="…"Comma-separated page component IDsnone
--notifyNotify subscribers about this maintenancefalsenone

maintenance update subcommand

Update a maintenance window.

openstatus maintenance update MaintenanceID [--title "New title"] [--message "New message"] [--from ...] [--to ...]

Usage:

$ openstatus [GLOBAL FLAGS] maintenance update [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--title="…"New title for the maintenancenone
--message="…"New message for the maintenancenone
--from="…"New start time (RFC 3339 format)none
--to="…"New end time (RFC 3339 format)none
--component-ids="…"Comma-separated page component IDs (replaces existing list)none

maintenance delete subcommand

Delete a maintenance window.

openstatus maintenance delete MaintenanceID openstatus maintenance delete 12345 -y

Usage:

$ openstatus [GLOBAL FLAGS] maintenance delete [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--auto-accept (-y)Automatically accept the promptfalsenone

status-page command (aliases: sp)

Manage status pages.

Usage:

$ openstatus [GLOBAL FLAGS] status-page [ARGUMENTS...]

status-page list subcommand

List all status pages.

openstatus status-page list openstatus status-page list --limit 10

Usage:

$ openstatus [GLOBAL FLAGS] status-page list [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--limit="…"Maximum number of pages to return (1-100)0none

status-page info subcommand

Get status page details.

openstatus status-page info PageID openstatus status-page info 12345

Usage:

$ openstatus [GLOBAL FLAGS] status-page info [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

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

notification command (aliases: n)

Manage notifications.

Usage:

$ openstatus [GLOBAL FLAGS] notification [ARGUMENTS...]

notification list subcommand

List all notifications.

openstatus notification list openstatus notification list --limit 10

Usage:

$ openstatus [GLOBAL FLAGS] notification list [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--limit="…"Maximum number of notifications to return (1-100)0none

notification info subcommand

Get notification details.

openstatus notification info NotificationID openstatus notification info 12345

Usage:

$ openstatus [GLOBAL FLAGS] notification info [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

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

run command (aliases: r)

Run your uptime tests.

openstatus run openstatus run --config custom-config.yaml

Run the uptime tests defined in the config.openstatus.yaml. The config file should be in the following format: tests: ids: - monitor-id-1 - monitor-id-2.

Usage:

$ 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

whoami command (aliases: w)

Get your workspace information.

openstatus whoami

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

Usage:

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

The following flags are supported:

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

login command

Save your API token.

openstatus login

Saves your openstatus API token for use in subsequent commands. Get your API token from the openstatus dashboard.

Usage:

$ openstatus [GLOBAL FLAGS] login [ARGUMENTS...]

logout command

Remove saved API token.

openstatus logout

Usage:

$ openstatus [GLOBAL FLAGS] logout [ARGUMENTS...]

terraform command (aliases: tf)

Generate Terraform configuration.

Usage:

$ openstatus [GLOBAL FLAGS] terraform [ARGUMENTS...]

terraform generate subcommand (aliases: gen)

Generate Terraform configuration from workspace resources.

openstatus terraform generate [--output-dir ./openstatus-terraform/]

Usage:

$ openstatus [GLOBAL FLAGS] terraform generate [COMMAND FLAGS] [ARGUMENTS...]

The following flags are supported:

NameDescriptionDefault valueEnvironment variables
--access-token="…" (-t)openstatus API Access TokenOPENSTATUS_API_TOKEN
--output-dir="…" (-o)Directory to write Terraform files into./openstatus-terraform/none