Documentation Index
Fetch the complete documentation index at: https://docs.flashcat.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Flashduty CLI (flashduty) is a command-line tool for managing the incident lifecycle, querying on-call schedules, publishing status page updates, and debugging notification templates from your terminal. It fits naturally into operations scripts, local troubleshooting, and AI coding-agent workflows.
The tool is open source at flashcatcloud/flashduty-cli and supports macOS, Linux, and Windows.
Installation
- macOS / Linux
- Windows (PowerShell)
- Go Install
- Manual download
/usr/local/bin by default. Override with the FLASHDUTY_INSTALL_DIR environment variable.Installer options
| Variable | Description | Default |
|---|---|---|
FLASHDUTY_VERSION | Install a specific version, e.g. v0.6.0 | latest |
FLASHDUTY_INSTALL_DIR | Custom install directory | /usr/local/bin (shell), ~\.flashduty\bin (PowerShell) |
Authentication
Log in
Credential resolution order
The CLI resolves credentials in the following order (highest priority first):--app-keycommand-line flag (hidden, for scripting)FLASHDUTY_APP_KEYenvironment variable- Config file
~/.flashduty/config.yaml(written byflashduty login)
Config file
Stored at~/.flashduty/config.yaml with 0600 permissions:
Config commands
Global flags
All subcommands accept these flags:| Flag | Description |
|---|---|
--json | Output as JSON for parsing with jq or similar tools |
--no-trunc | Disable column truncation in table output |
--base-url | Override the API endpoint (for private deployments) |
Command catalog
incident — Incident lifecycle
incident list:
| Flag | Description | Default |
|---|---|---|
--progress | Progress filter: Triggered, Processing, Closed | all |
--severity | Severity filter: Critical, Warning, Info | all |
--channel | Filter by channel ID | - |
--title | Search by title keyword | - |
--since | Start time (duration, date, datetime, or unix timestamp) | 24h |
--until | End time | now |
--limit | Max results | 20 |
--page | Page number | 1 |
5m, 1h, 24h, 168h, 2026-04-01, 2026-04-01 10:00:00, 1712000000.
change — Change records
--channel, --since, --until, --type, --limit, --page.
member — Member queries
--name, --email, --page.
team — Team queries
--name, --page.
channel — Channel queries
--name.
escalation-rule — Escalation rule queries
field — Custom field queries
--name.
statuspage — Status page management
Migrate from Atlassian Statuspage
Migration jobs run asynchronously. After kicking off a job, poll progress withmigrate status:
template — Notification templates
dingtalk, dingtalk_app, feishu, feishu_app, wecom, wecom_app, slack, slack_app, telegram, teams_app, email, sms, zoom.
Utility commands
Output formats
The CLI emits output in three shapes so it fits different consumers:- Table (default)
- JSON (--json)
- Full table (--no-trunc)
Human-readable, aligned columns, long fields truncated.
Agent skills
Flashduty CLI ships with 10 agent skills that teach AI coding agents — Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and 40+ others — how to operate Flashduty from your terminal. Install skills to every detected agent on your machine in one shot:| Skill | Scope |
|---|---|
flashduty-shared | Foundation: authentication, three-layer noise model, global flags, safety rules |
flashduty-incident | Incident lifecycle: triage, investigate, resolve, merge, snooze, reassign |
flashduty-alert | Alert and alert event investigation: drill down, trace, merge |
flashduty-change | Change event tracking and deployment frequency trends |
flashduty-oncall | On-call schedule queries: who is on call, shift details |
flashduty-channel | Channel and escalation rule lookups |
flashduty-statuspage | Status page management and Atlassian → Flashduty migration |
flashduty-insight | Analytics: MTTA/MTTR, noise reduction, notification trends |
flashduty-admin | Team/member lookups and audit log search |
flashduty-template | Notification template validation and preview |
Common workflows
Attach a CLI link to notifications
Attach a CLI link to notifications
Use
flashduty incident get <id> to fetch incident details from the terminal. Embed the snippet into notification templates so responders can copy-paste it.Bulk acknowledge or close incidents
Bulk acknowledge or close incidents
Export incident data to BI tools
Export incident data to BI tools
jq or load it into your warehouse.Validate notification templates in CI/CD
Validate notification templates in CI/CD