Get your Rootly workspace from empty to incident-ready in minutes — without clicking through every setup screen.
Rootly Wizard is a guided command-line setup tool. It walks you through creating a team, putting people on call, wiring up escalation and alerting, and firing a real test alert and incident so you can see the whole flow end to end.
npx @rootly/wizard- Node.js 18 or newer
- A Rootly API token (see Authorizing below)
- A terminal (macOS, Linux, or Windows)
Run the wizard:
npx @rootly/wizardYou'll be asked to authorize with a Rootly API token (stored securely in your OS keychain), then land on the main menu:
- Quick start — set everything up at once and see a test alert + incident
- Recommended setup — do the single next best step, guided
- General setup — pick any individual task (teams, on-call, integrations, and more)
That's it. Your token is remembered, so the next run takes you straight to the menu.
The wizard authorizes with a Rootly API token. To create one:
- Log in to Rootly.
- Go to Organization Settings → API Keys.
- Click Generate New API Key, name it, and copy the token.
Which key type? Use a Global key with write access (teams, schedules, escalation, alerts, incidents) so the wizard can complete setup, or a Personal key if your account can already manage those.
Docs: https://docs.rootly.com/api-reference/overview
Your token is stored in your operating system's keychain. You can also provide it via the ROOTLY_TOKEN environment variable:
ROOTLY_TOKEN=rootly_xxx npx @rootly/wizardOn exit, the wizard asks whether to keep the saved token or delete it from your keychain (it keeps it by default).
The fastest path. In one flow it will:
- Create a team (or reuse one you're already on)
- Let you pick who joins the team and the on-call rotation
- Create an on-call schedule
- Create an escalation policy
- Add an alert source
- Fire a test alert
- Open a test incident (with a link to its Slack channel, if Slack is connected)
Anything that already exists is reused, so it's safe to re-run.
Prefer to go one step at a time? Recommended setup looks at your workspace and runs the single most useful next step — create a team, add members, set up a schedule, add an escalation policy, or connect an alert source — and returns you to the menu.
Jump to any individual task:
- Teams & members — create teams, add members from your directory
- On-call — schedules and escalation policies
- Integrations — Slack and alert source handoffs
- Verify — send a test alert or create a test incident
- Inspect — review your current teams, schedules, and coverage
- MCP / IDE — configure the Rootly MCP server for your editor or AI agent
The wizard can write Rootly MCP server config for supported clients: Cursor, Claude Code, Claude Desktop, Windsurf, and Codex.
Every setup step is also available non-interactively as a JSON-in/JSON-out action — handy for automation or AI agents:
rootly-wizard action list # list available actions
rootly-wizard action describe <name> # show an action's inputs
rootly-wizard action get-recommended-next-step
rootly-wizard action one-shot-setup '{"teamName":"Payments"}'Add "dryRun": true to any setup action to preview it without making changes.
- "Authorize with a Rootly API token" keeps appearing — your token may be missing or invalid. Generate a fresh key (Organization Settings → API Keys) and re-enter it.
- Setup steps are skipped or blocked — the token needs write access. Use a Global key with the relevant permissions.
- Nothing happens / wrong screen — make sure you're on Node.js 18+ and running in an interactive terminal.
From a clone of this repo:
node ./src/cli.js # run the wizard locally
npm test # run the test suite(Use node ./src/cli.js rather than npm start for demos — npm start echoes the underlying command before launching.)