Skip to content
Command Reference

Command Reference

Every command of the status200 CLI, with its arguments, options and defaults. Add --help to any command to see the same in your terminal.

The commands

flowchart LR O["status200"] --> L["login"] O --> C["context"] C --> C1["list<br/>use<br/>current<br/>delete"] O --> R["incident, monitor<br/>and every resource"] R --> R1["list<br/>get<br/>create<br/>update<br/>delete<br/>count"] O --> U["deploy<br/>whoami<br/>resources<br/>version<br/>help"]

The commands of the status200 CLI

Global options

OptionWhat it doesDefault
--api-key <key>The API key for this commandSTATUS200_API_KEY, then the context's key
--url <url>Your Status200's address for this commandSTATUS200_URL, then the context's URL
--context <name>The saved context to use for this commandThe current context
-o, --output <format>json, table or widetable in a terminal, json in a pipe
--no-colorPrints without colorsColors, unless NO_COLOR is set
-V, --versionPrints the CLI's version
-h, --helpShows the help of a command

The options go before or after the command: status200 --context staging incident list and status200 incident list --context staging do the same.

Login and contexts

status200 login

Saves an API key and an address as a context, and makes it the current one. See Log in.

Bash
status200 login <api-key> <instance-url> [--context-name <name>]
Argument or optionRequiredWhat it isDefault
<api-key>YesAn API key of your project
<instance-url>YesYour Status200's address, such as https://status200.ru
--context-name <name>NoThe name to save the context underdefault

status200 context list

Lists the saved contexts; * marks the current one. API keys are never listed.

Bash
status200 context list [-o <format>]
OptionRequiredWhat it is
-o, --output <format>Nojson, table or wide. JSON gives each context's name, apiUrl and isCurrent

status200 context use

Makes a saved context the current one.

Bash
status200 context use <name>
ArgumentRequiredWhat it is
<name>YesThe name of a saved context

status200 context current

Shows the current context's name and URL, and its API key with all but the first four and last four characters hidden.

Bash
status200 context current

status200 context delete

Deletes a saved context. If it was the current one, the first context left becomes current.

Bash
status200 context delete <name>
ArgumentRequiredWhat it is
<name>YesThe name of a saved context

Resource commands

<resource> is the command of a kind of record, from the Resources tables, such as incident or monitor. See Resource Operations for examples.

status200 <resource> list

Lists records, newest first. Labels are listed by name instead, numbered labels first (2. Team before 10. Owner).

Bash
status200 <resource> list [--query <json>] [--limit <n>] [--skip <n>] [--sort <json>] [-o <format>]
OptionWhat it doesDefault
--query <json>A filter, as JSONEvery record the key may read
--limit <n>The most records to return, up to 10,00010
--skip <n>How many records to pass over first0
--sort <json>The order, as JSON: {"<field>":"ASC"} or {"<field>":"DESC"}Newest first
-o, --output <format>json, table or widetable in a terminal, json in a pipe

status200 <resource> get

Reads one record. Records only: telemetry has no get.

Bash
status200 <resource> get <id> [-o <format>]
Argument or optionRequiredWhat it is
<id>YesThe record's ID, a UUID
-o, --output <format>Nojson, table or wide

status200 <resource> create

Creates a record and prints it.

Bash
status200 <resource> create (--data <json> | --file <path>) [-o <format>]
OptionRequiredWhat it is
--data <json>One of the twoThe record, as JSON
--file <path>One of the twoA JSON file holding the record. Given with --data, the file is used
-o, --output <format>Nojson, table or wide

status200 <resource> update

Changes the fields you give. Records only: telemetry has no update.

Bash
status200 <resource> update <id> --data <json> [-o <format>]
Argument or optionRequiredWhat it is
<id>YesThe record's ID
--data <json>YesThe fields to change, as JSON
-o, --output <format>Nojson, table or wide

status200 <resource> delete

Deletes a record at once, without asking. Records only: telemetry has no delete.

Bash
status200 <resource> delete <id> [--force]
Argument or optionRequiredWhat it is
<id>YesThe record's ID
--forceNoAccepted and changes nothing: delete never asks to confirm

status200 <resource> count

Counts records, and prints the number.

Bash
status200 <resource> count [--query <json>] [-o <format>]
OptionRequiredWhat it is
--query <json>NoA filter, as JSON. Without one, every record the key may read
-o, --output <format>Nojson, table or wide

Resources

Records take list, get, create, update, delete and count:

AreaCommands
Monitoringmonitor, monitor-status, monitor-status-event
Incidentsincident, incident-state, incident-severity, incident-state-timeline, incident-public-note, incident-internal-note, incident-alert, postmortem-status
Alertsalert, alert-state, alert-severity, alert-state-timeline, alert-internal-note
Status pagesstatus-page, status-page-announcement
Scheduled maintenancescheduled-maintenance-event, scheduled-maintenance-state, scheduled-maintenance-state-timeline
Teams and on-callteam, on-call-policy
Securitysecurity-case, security-case-note, security-detection, security-playbook
Labelslabel

Telemetry takes list, create and count:

AreaCommands
Observabilitylog, metric, span, exception-instance, monitor-log
Securitysecurity-event, threat-intel-indicator
Changes and costchange-event, kubernetes-cost-allocation

The CLI is released with Status200, so status200 resources lists the commands of the version you installed.

API requests

Each operation is one request to the API, with the key in the APIKey header. <path> is the resource's API path, from status200 resources: /incident for incident, /on-call-duty-policy for on-call-policy.

OperationRequestBody
listPOST /api/<path>/get-listquery, select, skip, limit and sort
getPOST /api/<path>/<id>/get-itemselect
createPOST /api/<path>{"data": ...}
updatePUT /api/<path>/<id>/{"data": ...}
deleteDELETE /api/<path>/<id>/None
countPOST /api/<path>/countquery

Other commands

status200 deploy

Records a deploy, or another change, from a pipeline: it is drawn on the service's charts and read by Status200 AI when it investigates an incident. It writes with a telemetry ingestion key, not an API key. See Deploys and changes.

Bash
status200 deploy [--service <name>] [--service-version <version>] [--previous-version <version>] [--commit <sha>] [--repository <url>] [--branch <name>] [--pull-request <number>] [--environment <name>] [--title <title>] [--description <text>] [--type <type>] [--time <time>] [--attribute <key=value...>] [--ingestion-key <key>]
OptionRequiredWhat it isDefault
--service <name>NoThe service that was deployedA project-wide change
--service-version <version>NoThe version deployed
--previous-version <version>NoThe version it replaced
--commit <sha>NoThe commit deployed
--repository <url>NoThe repository the commit is in
--branch <name>NoThe branch deployed
--pull-request <number>NoThe pull request deployed
--environment <name>NoThe environment deployed to
--title <title>NoThe change's title; another kind than a deploy needs oneDeploy <version>
--description <text>NoDetails of the change
--type <type>NoThe kind of change, such as config-change or rollbackdeployment
--time <time>NoWhen it happened, such as 2026-10-19T10:00:00ZNow
--attribute <key=value...>NoMore attributes, as key=value, one or more
--ingestion-key <key>NoA telemetry ingestion key of the projectSTATUS200_TELEMETRY_INGESTION_KEY

status200 whoami

Shows the URL and the API key the next command will use, with the key masked, and the context they come from. It does not call Status200. See Check what the CLI will use.

Bash
status200 whoami

status200 resources

Lists every kind of record the CLI has a command for: its command, singular and plural names, type and API path, and the total.

Bash
status200 resources [--type <type>] [-o <format>]
OptionRequiredWhat it isDefault
--type <type>Nodatabase for records, analytics for telemetryBoth
-o, --output <format>Nojson, table or wide. JSON gives each one's name, singularName, pluralName, modelType and apiPathtable in a terminal, json in a pipe

status200 version

Prints the CLI's version, as status200 --version does.

Bash
status200 version

status200 help

Shows the help of the CLI, or of a command.

Bash
status200 help [command]

Environment variables

VariableWhat it does
STATUS200_API_KEYThe API key, when no --api-key flag gives one
STATUS200_URLYour Status200's address, when no --url flag gives one
STATUS200_TELEMETRY_INGESTION_KEYThe telemetry ingestion key status200 deploy writes with, when no --ingestion-key flag gives one
NO_COLORSet to any value, turns colors off

Files

FileWhat it holds
~/.oneuptime/config.jsonThe saved contexts, their API keys, and the current context

Exit codes

CodeMeaning
0It worked
1It failed: Status200 refused the request, or the command was wrong
2No usable API key: none found, invalid, or below its plan
3Not found: Status200 answered 404

See Exit codes for examples.

Next steps