Documentation Index
Fetch the complete documentation index at: https://docs.devhelm.io/llms.txt
Use this file to discover all available pages before exploring further.
The devhelm CLI is a full-featured command-line tool for managing monitors, incidents, alert channels, and deploying config-as-code. Install it via npm and authenticate with an API token.
Install
Verify the installation:
Authentication
The CLI resolves your API token from (in priority order):
--api-token flag on any command
DEVHELM_API_TOKEN environment variable
- Saved context in
~/.devhelm/contexts.json
# Option A: environment variable (recommended for CI)
export DEVHELM_API_TOKEN=dh_live_xxxxxxxx
# Option B: interactive login (saves to contexts.json)
devhelm auth login
Command reference
The CLI ships a wide command surface across resource topics, status pages, deploy/state, and auth. Every list/get command supports --output json for machine-readable output (deploy/validate use text|json instead — see those commands’ references).
Config as Code
| Command | Description |
|---|
devhelm validate <file> | Validate config file syntax offline |
devhelm plan -f <file> | Preview changes without applying |
devhelm deploy -f <file> | Apply config changes |
devhelm deploy --dry-run -f <file> | Simulate deploy without applying |
devhelm deploy force-unlock | Release a stuck deploy lock |
Monitors
| Command | Description |
|---|
devhelm monitors list | List all monitors |
devhelm monitors get <id> | Get monitor details |
devhelm monitors create | Create a monitor |
devhelm monitors update <id> | Update a monitor |
devhelm monitors delete <id> | Delete a monitor |
devhelm monitors pause <id> | Pause a monitor |
devhelm monitors resume <id> | Resume a paused monitor |
devhelm monitors test <id> | Run an on-demand check |
Incidents
| Command | Description |
|---|
devhelm incidents list | List incidents |
devhelm incidents get <id> | Get incident details |
devhelm incidents create | Create a manual incident |
devhelm incidents resolve <id> | Resolve an incident |
Alert channels
| Command | Description |
|---|
devhelm alert-channels list | List alert channels |
devhelm alert-channels get <id> | Get channel details |
devhelm alert-channels create | Create an alert channel |
devhelm alert-channels update <id> | Update a channel |
devhelm alert-channels delete <id> | Delete a channel |
devhelm alert-channels test <id> | Send a test notification |
Other resources
| Topic | Commands |
|---|
notification-policies | list, get, create, update, delete |
tags | list, get, create, update, delete |
environments | list, get, create, update, delete |
secrets | list, create, update, delete |
webhooks | list, get, create, update, delete, test |
resource-groups | list, get, create, update, delete |
api-keys | list, get, create, revoke, delete |
dependencies | list, get, track, delete |
data services | status, uptime |
maintenance-windows | planned — see page |
Status pages
| Topic | Subcommands |
|---|
status-pages (root) | list, get, create, update, delete |
status-pages components | list, create, update, delete |
status-pages groups | list, create, update, delete |
status-pages incidents | list, get, create, update, delete, publish, dismiss, post-update |
status-pages subscribers | list, add, remove |
status-pages domains | list, add, verify, remove, set-primary |
Full reference: devhelm status-pages.
Status and auth
| Command | Description |
|---|
devhelm status | Show current monitor status overview |
devhelm auth login | Interactive login |
devhelm auth logout | Clear saved credentials |
devhelm auth token | Display the current token |
devhelm auth context | Manage auth contexts |
Global flags
| Flag | Description |
|---|
--api-token | API token (overrides env var and saved context) |
--api-url | API base URL (default: https://api.devhelm.io) |
--output, -o | Output format: table, json, yaml (default: table) |
--verbose | Enable debug logging |
--help | Show help for any command |
See Global flags for full details.
Exit codes
| Code | Meaning |
|---|
0 | Success |
1 | General error |
4 | Validation (missing token, malformed config, bad flags) |
10 | Changes pending (with --detailed-exitcode on deploy --dry-run) |
11 | API error (non-2xx response) |
12 | Transport error (network/DNS/TLS/timeout) |
13 | Partial deploy failure |
See Exit codes for the full taxonomy and CI patterns.
Getting help
Every command supports --help:
devhelm monitors create --help
devhelm deploy --help