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
Authentication
The CLI resolves your API token from (in priority order):--api-tokenflag on any commandDEVHELM_API_TOKENenvironment variable- Saved context in
~/.devhelm/contexts.json
Command reference
The CLI has 15 resource topics with full CRUD operations. Every command supports--output json for machine-readable output.
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, set, delete |
webhooks | list, get, create, update, delete, test |
resource-groups | list, get, create, update, delete |
api-keys | list, create, delete |
maintenance-windows | list, get, create, update, delete |
status-data | services, incidents, dependencies |
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 |
--no-color | Disable colored output |
--verbose | Enable debug logging |
--help | Show help for any command |
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Validation or command failure |
2 | Authentication failure |
10 | Changes pending (with --detailed-exitcode on deploy dry-run) |
Getting help
Every command supports--help: