CLI
Manage your Manako monitors from the command line.
Installation
Section titled “Installation”npm install -g manakomanako loginA browser will open automatically. Approve the authentication code on the dashboard to automatically issue an API key. In environments where a browser cannot be opened (e.g., SSH), manually enter the displayed URL and code in your browser.
manako login --api-key mk_your_api_key_hereDirectly set an API key issued from the dashboard.
Credentials are stored in ~/.manako.json (permission 600).
Commands
Section titled “Commands”Status Check
Section titled “Status Check”manako statusDisplays the current state of all monitors with status icons.
Monitor Management
Section titled “Monitor Management”# List (JSON)manako monitors list
# Detailsmanako monitors get <id>
# Add (HTTP)manako monitors add https://example.com
# Add (other types)manako monitors add example.com -t pingmanako monitors add db.example.com:5432 -t tcpmanako monitors add example.com -t sslmanako monitors add example.com -t domain
# Updatemanako monitors update <id> --name "New Name"manako monitors update <id> --interval 600manako monitors update <id> --pausemanako monitors update <id> --resume
# Manual checkmanako monitors check <id>
# Deletemanako monitors rm <id>Adding Monitors by Type
Section titled “Adding Monitors by Type”| Type | Command Example |
|---|---|
| HTTP | manako monitors add https://example.com |
| TCP | manako monitors add db.example.com:5432 -t tcp |
| Ping | manako monitors add example.com -t ping |
| Heartbeat | manako monitors add my-cron -t heartbeat |
| Web Change | manako monitors add https://example.com/pricing -t webchange |
| SSL Certificate | manako monitors add example.com -t ssl |
| Domain Expiry | manako monitors add example.com -t domain |
For custom configuration, use the --config option to specify JSON:
manako monitors add https://example.com -c '{"url":"https://example.com","method":"POST","expectedStatus":201,"timeoutMs":5000}'Incident Management
Section titled “Incident Management”# Listmanako incidents list
# Filter by statusmanako incidents list -s ongoing
# Acknowledgemanako incidents ack <id>
# Create manual incidentmanako incidents create --title "Payment service outage" --cause "Provider issue"
# Update incidentmanako incidents update <id> --title "New title" --cause "Additional details"
# Resolve incidentmanako incidents resolve <id> --cause "Root cause identified and fixed"
# Delete manual incidentmanako incidents delete <id>Status Pages
Section titled “Status Pages”# Listmanako status-pages list
# Reset monitor statisticsmanako status-pages stats-reset <id>manako status-pages stats-reset <id> --before 2024-01-01Notification Channels
Section titled “Notification Channels”# Send test notificationmanako notification-channels test <channel-id>Send a test notification to verify channel configuration.
Webhook Subscriptions
Section titled “Webhook Subscriptions”# Listmanako webhook-subscriptions list
# Createmanako webhook-subscriptions create \ -u https://example.com/webhook \ -s "your-signing-secret-min16" \ -e "incident.created,incident.resolved"
# Deletemanako webhook-subscriptions rm <id>Manage webhooks for receiving event notifications (incident creation/resolution, web change detection).
Billing Information
Section titled “Billing Information”# Show current plan informationmanako billing
# Open billing page in browsermanako billing --openDisplays your current plan, active modules, and subscription status.
Use the --open option to upgrade or manage your plan in the browser.
Logout
Section titled “Logout”manako logoutRemoves local credentials.
Options
Section titled “Options”| Option | Description |
|---|---|
--api-url <url> | API endpoint URL (default: https://api.manako.dev) |
-n, --name <name> | Monitor name (add/update) |
-t, --type <type> | Monitor type (add) |
-i, --interval <seconds> | Check interval (60-86400 seconds, add/update) |
-c, --config <json> | Type-specific configuration JSON (add) |
-s, --status <status> | Status filter (incidents list) |