Skip to main content
inc is the official command-line interface for the incident.io API. Use it to list and manage incidents, page people, inspect schedules, and script against your incident data without leaving the terminal. It’s built for both humans and LLM agents: every command supports JSON output, and the full command schema is machine-discoverable. The CLI is open source at github.com/incident-io/inc. Note that we recommend the MCP as the primary integration tool.

Install

Or download a binary for your platform from GitHub Releases.

Authenticate

Log in with your browser:
This opens incident.io in your browser to authorize the CLI. The CLI then acts as you. It can see and do what your user can, and every action is attributed to you. Logins last 28 days. When yours expires, run inc auth login again.
Browser login uses the same organisation setting as the remote MCP server. An admin can enable it from Settings → MCP. If it’s disabled, use an API key instead.
For scripts and CI, use an API key instead. Create one in Settings → API keys, then either export it or save it to the CLI’s config:
An INCIDENT_API_KEY in the environment takes precedence over a saved login. Verify whichever you set up:
The CLI can only do what your user or API key allows. For scripts, scope keys to what they need. Read-only keys are a good default for reporting and exploration.

Everyday commands

Run inc --help for the full command list, covering incidents, alerts, catalog, escalations, schedules, severities, users, roles, custom fields, post-mortems, and follow-ups.

Scripting and JSON output

When you pipe output, the CLI automatically switches to JSON. Use the built-in --jq flag to filter responses without installing anything else:
Errors are structured JSON too, with a retryable field to gate retries on and a request_id you can share with our support team. Rate-limited requests retry automatically.

Call any endpoint

If a dedicated command doesn’t exist yet, inc api can call any endpoint in the API reference with authentication pre-configured:

For LLM agents

The CLI supports agent use as well. inc describe outputs a JSON schema of every command and flag, and --dry-run previews any request without sending it:
See AGENTS.md in the repository for detailed agent integration guidance.