CLI Overview
The Status200 CLI, status200, manages your Status200 project from a terminal or a script. List, read, create, change, delete and count monitors, incidents, alerts, status pages and the other records the Status200 API offers, with an API key of your project.
How the CLI works
Each command sends one request to the Status200 REST API and prints the answer. The CLI takes the API key and your Status200's address from flags, environment variables or a context that status200 login saved. The key decides what a command may read and change, exactly as it does for the API.
One command, one request
The commands for records come with the CLI: each kind of record the Status200 API opens to tools has one, the same records the MCP server has tools for. Run status200 resources to list them.
Before you begin
- Node.js and npm, a current LTS release, to install the CLI.
- An API key of your project. Create one in Project Settings → Advanced → API Keys with Create API Key: see Create an API key.
- On Status200 Cloud, the Growth plan or above. A project's API keys work only on it: see API keys and SCIM below their plan.
Install the CLI
Install the @status200/cli package from npm. It adds the status200 command, and --version prints the version you installed:
npm install -g @status200/cli
status200 --versionThe CLI is released with Status200 and has the same version number. On a self-hosted Status200, install the CLI of your Status200's version, so its commands match the records your server has:
npm install -g @status200/cli@<your-oneuptime-version>Run your first commands
Save your API key
Log in with the key and your Status200's address. The CLI saves them as a context named
defaultand uses it from now on:status200 login <your-api-key> https://status200.ruIt answers
Logged in successfully. Context "default" is now active.On a self-hosted Status200, use its address in place ofhttps://status200.ru.List your incidents
status200 incident listThe ten newest incidents appear as a table.
loginsaves the key without checking it, so this is the first command that shows the key works: if it is refused, see Troubleshooting.See what else you can manage
status200 resourcesThe list shows every kind of record you can work with, and its command, such as
monitor,status-pageoron-call-policy.
Commands at a glance
| Command | What it does | Read more |
|---|---|---|
status200 login <api-key> <instance-url> | Saves an API key and an address as a context | Authentication |
status200 context list, use, current, delete | Lists, switches, shows and deletes saved contexts | Authentication |
status200 whoami | Shows the URL and API key the next command will use | Authentication |
status200 deploy | Records a deploy, or another change, for charts and Status200 AI | Deploys and Changes |
status200 <resource> list, get, create, update, delete, count | Works with one kind of record | Resource Operations |
status200 resources | Lists the kinds of record, with their commands | Command Reference |
status200 version | Prints the CLI's version | Command Reference |
status200 help [command] | Shows the help of a command | Get help |
Global options
These options work with every command, before or after it:
| Option | What it does |
|---|---|
--api-key <key> | The API key for this command, in place of the saved one |
--url <url> | Your Status200's address for this command |
--context <name> | A saved context for this command, in place of the current one |
-o, --output <format> | table, json or wide: see Output Formats |
--no-color | Prints without colors |
-V, --version | Prints the CLI's version |
-h, --help | Shows the help of the command |
Get help
Every command has its own help, with its arguments, options and defaults:
status200 --help
status200 help incident
status200 incident list --help