Skip to main content
The Kit CLI is a command-line tool for the Kit API v4. It installs a kit command that reads and writes a Kit account: subscribers, tags, forms, sequences, broadcasts, webhooks, and more. You sign in once, then run a command where you would otherwise write a script.
The CLI is open source under the MIT license at github.com/Kit/kit-cli, and it’s free to use on every Kit plan.
The CLI is pre-1.0. Commands and flags may still change between releases, so pin a release if a script depends on exact behavior. See Quickstart.

Who it’s for

  • Developers who want to query or change a Kit account without writing auth, pagination, and retry code first.
  • Scripts and scheduled jobs such as a nightly subscriber sync, a weekly stats export, or a bulk import, run from cron or CI with an API key.
  • AI coding agents such as Claude Code, which can run kit commands in a shell. The CLI ships a Claude Code skill for this. See Automation and AI agents.

CLI, MCP, or API?

All three reach the same Kit account data. They differ in who drives them and where they run.
  • Use the CLI when you want the same result every time: a script, a scheduled job, a data pull piped into another tool, or an agent that should run a known command instead of working the task out on each run.
  • Use the Kit MCP when a creator wants to work with their account in conversation, inside an AI client such as Claude or ChatGPT, with no terminal and nothing to install.
  • Use the API when you’re building an app or integration, including anything for the Kit App Store.
The CLI and the Kit MCP also behave differently with broadcasts. The Kit MCP only saves drafts. The CLI can schedule a broadcast with --send-at, and asks for confirmation before it does.

What it covers

The CLI has commands for the Kit API v4, grouped the way kit --help lists them: kit api sends a raw request to any v4 path, for endpoints without a dedicated command or when you want full control over the parameters. The webhooks commands use the current webhooks resource. Legacy webhooks have no dedicated command. Run kit <command> --help for the flags on any command. The README is the full command reference.

Safe by default

  • Commands that delete, unsubscribe, act in bulk, or schedule a broadcast ask for a yes before they change anything. See confirmation prompts.
  • Other writes run right away. Adding a tag, for example, can start an automation that sends email. Every command acts on your real Kit account.
  • Usage data and error reports are off unless you opt in. TELEMETRY.md lists exactly what is sent.

Support

Contact Kit Support for help with the CLI, such as a problem installing it, signing in, or running a command. You don’t need a GitHub account. If you use GitHub, you can also open an issue to report a bug or suggest a command. Issues are public, so don’t paste API keys, OAuth tokens, or subscriber email addresses into them. To report a security vulnerability, follow SECURITY.md and don’t open a public issue.

Next steps

Quickstart

Install the CLI, sign in, and run your first commands.

Automation and AI agents

Run the CLI from scripts and CI, and set up the Claude Code skill.