Skip to main content

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

npm install -g devhelm
Verify the installation:
devhelm --version

Authentication

The CLI resolves your API token from (in priority order):
  1. --api-token flag on any command
  2. DEVHELM_API_TOKEN environment variable
  3. 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

CommandDescription
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-unlockRelease a stuck deploy lock

Monitors

CommandDescription
devhelm monitors listList all monitors
devhelm monitors get <id>Get monitor details
devhelm monitors createCreate 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

CommandDescription
devhelm incidents listList incidents
devhelm incidents get <id>Get incident details
devhelm incidents createCreate a manual incident
devhelm incidents resolve <id>Resolve an incident

Alert channels

CommandDescription
devhelm alert-channels listList alert channels
devhelm alert-channels get <id>Get channel details
devhelm alert-channels createCreate 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

TopicCommands
notification-policieslist, get, create, update, delete
tagslist, get, create, update, delete
environmentslist, get, create, update, delete
secretslist, create, update, delete
webhookslist, get, create, update, delete, test
resource-groupslist, get, create, update, delete
api-keyslist, get, create, revoke, delete
dependencieslist, get, track, delete
data servicesstatus, uptime
maintenance-windowsplanned — see page

Status pages

TopicSubcommands
status-pages (root)list, get, create, update, delete
status-pages componentslist, create, update, delete
status-pages groupslist, create, update, delete
status-pages incidentslist, get, create, update, delete, publish, dismiss, post-update
status-pages subscriberslist, add, remove
status-pages domainslist, add, verify, remove, set-primary
Full reference: devhelm status-pages.

Status and auth

CommandDescription
devhelm statusShow current monitor status overview
devhelm auth loginInteractive login
devhelm auth logoutClear saved credentials
devhelm auth tokenDisplay the current token
devhelm auth contextManage auth contexts

Global flags

FlagDescription
--api-tokenAPI token (overrides env var and saved context)
--api-urlAPI base URL (default: https://api.devhelm.io)
--output, -oOutput format: table, json, yaml (default: table)
--verboseEnable debug logging
--helpShow help for any command
See Global flags for full details.

Exit codes

CodeMeaning
0Success
1General error
4Validation (missing token, malformed config, bad flags)
10Changes pending (with --detailed-exitcode on deploy --dry-run)
11API error (non-2xx response)
12Transport error (network/DNS/TLS/timeout)
13Partial 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