monitorly keeps a project’s checks, status pages and maintenance windows in a monitorly.yaml in your repository, drafts that file from what the repository already declares, checks a deploy from several countries, and installs private nodes. It is built for coding agents and CI as much as for people: every command has --json and stable exit codes.
Install
Section titled “Install”curl -fsSL https://gw.monitorly.cloud/install-cli.sh | shThe script needs no root. It downloads the binary, checks its SHA-256 and puts it in ~/.local/bin/monitorly; set MONITORLY_BIN_DIR for another directory. If that directory is not on your PATH, the script says how to add it and changes nothing itself. Running it again installs the current version.
There are no macOS or Windows builds yet.
Sign in
Section titled “Sign in”monitorly login --api-url https://app.monitorly.cloudOn a terminal this opens the browser: you sign in, choose the workspace, the project and the access (read or write), and the CLI stores the sign-in in ~/.config/monitorly/credentials (mode 0600). It refreshes itself; a sign-in unused for 30 days ends. Without an account, monitorly signup --api-url https://app.monitorly.cloud opens the sign-up page and continues the same way.
For CI and agents without a browser, create a personal API token in the dashboard (Settings → API tokens) and pass it in the environment:
export MONITORLY_TOKEN=mly_…export MONITORLY_API_URL=https://app.monitorly.cloudmonitorly verify-deployMONITORLY_TOKEN wins over the stored sign-in. There is deliberately no --token flag: a flag would show in the process list. The CLI never prints a token.
A typical flow
Section titled “A typical flow”monitorly discover --out monitorly.yaml # draft checks from compose files, Kubernetes, Terraform, nginx, Caddy, cron…monitorly node list # pick nodes for each checkmonitorly plan # what would change; nothing is appliedmonitorly apply # apply exactly that plan, after confirmationAfter that, edit monitorly.yaml with the rest of your code, and run monitorly plan in CI to see drift.
- Commands: every command, its flags and output.
monitorly.yaml: the file format.monitorly discover: what it reads, what it never opens, and how findings become checks.
Output and exit codes
Section titled “Output and exit codes”Results go to stdout, explanations and prompts to stderr. With --json, stdout is one JSON document, also for errors: {"error": {"code": "…", "message": "…"}}.
| Exit code | Meaning |
|---|---|
| 0 | Success. plan: no changes. --dry-run: the plan is shown |
| 1 | Error, or for test and verify-deploy: at least one check did not pass |
| 2 | Usage error: an unknown flag, an invalid argument, token or URL |
| 3 | Nothing done: plan found changes, or an action waits for confirmation (no --yes, no terminal, or --json) |
The API’s own error codes come through as they are (token.scope_missing, config.plan_stale, check.invalid_url), with the HTTP status and the field pointers in detail.