Trusted by 40,000+ developersUse @kapso/cli to work with your WhatsApp numbers, messages, conversations, templates, webhooks, and workflows from the terminal, in scripts, or in CI.
Every command works against your Kapso project, from your laptop or a CI job. Lists and lookups print JSON by default, so scripts and coding agents can read the output.
$kapso whatsapp conversations list --phone-number "+14152304567" --status active --output human
$kapso whatsapp templates list --status PAUSED --output human
Paste the prompt into your coding agent, or run the commands yourself.
Your agent installs the CLI, checks the login, and asks before creating keys.
>Set up the Kapso CLI for this project. Follow the steps at kapso.com/whatsapp-cli and ask me before creating any keys.
Needs Node.js 20.19 or later.
One global package. It also runs with npx.
npm install -g @kapso/cli
Opens the browser. In CI, set KAPSO_API_KEY instead.
kapso login
Shows your project, numbers, and what to do next.
kapso status
npm install -g @kapso/cliCoding agents can read this page and set themselves up. Or copy the instructions and paste them into any agent.
You are reading https://kapso.com/whatsapp-cli. Kapso is the WhatsApp API for developers. Its CLI, @kapso/cli, works with the WhatsApp numbers, conversations, messages, templates, webhooks, and workflows in the user's Kapso project. Follow these steps to set it up and use it from a shell.
Check Node.js.
Run node --version. The CLI needs 20.19 or later. If it is older, tell the user and stop.
Install the CLI. Run:
npm install -g @kapso/cli
Ask the user first if global installs are not normal on this machine; npx @kapso/cli works too.
Authenticate.
If KAPSO_API_KEY is set, the CLI uses it. Otherwise ask the user to run kapso login, which opens their browser. Never log in, create keys, or approve access on their behalf.
Verify before you continue.
Run kapso status and confirm it shows the user as authenticated, with a project. If it does not, stop and tell the user what it printed.
Read before you write.
Lists and lookups print JSON by default; add --output human for a summary. Run read commands first, and confirm with the user before sending messages or changing templates, webhooks, or workflows.
Mind the working directory.
kapso pull, push, and link create kapso.yaml, workflows/, functions/, and .kapso/ in the current directory. Run them from the project root.
Manage WhatsApp numbers and check their health, send and list messages, inspect conversations, manage templates and phone-number webhooks, create customers and setup links, search logs, and pull or push Kapso workflows and functions.
Yes. Set KAPSO_API_KEY and project-scoped commands use the API key directly, with no browser login.
Use the CLI for terminal-native automation, scripts, diagnostics, and CI. Use Kapso WhatsApp MCP when an MCP-capable agent should call WhatsApp tools directly.
Yes. Kapso is a Meta Business Partner and uses the official WhatsApp Business Platform, so your numbers and messages go through Meta directly.
The free plan includes a sandbox number and 2,000 messages a month.