KimaAI adds the wp kimaai command to WP-CLI, WordPress’s command line. With it you can test the chatbot, sync your content, run quality checks and look at the usage without opening the admin, or from a script, a deployment or a cron job.
Set it up
- Make sure WP-CLI works on your server:
wp --infoanswers with its version. - Go to your WordPress folder, or add
--path=<folder>to each command. - List the commands with
wp help kimaai. - Try the chatbot as a visitor would:
wp kimaai chat "When are you open on Sunday?". - See the options of any command with
wp help kimaai <command>, for examplewp help kimaai vectors sync.
How it works
The commands come in groups:
| Command | What it is for |
|---|---|
wp kimaai chat | Chat with the chatbot through the same steps as on your site: settings, knowledge base and tools. |
wp kimaai run | One request to an AI environment of Connections: a chat answer, an image or an embedding. |
wp kimaai vectors | The knowledge base: sync posts, search and inspect the index, check its health and freshness, manage collections. |
wp kimaai eval | Run the quality checks and show their history. |
wp kimaai gaps report | The questions visitors ask, in clusters, ranked by negative feedback and volume. |
wp kimaai usage report | The tokens the chatbot used per day and in the current month. |
wp kimaai mcp token | Create, list and revoke tokens for the MCP server. |
wp kimaai db | The state of KimaAI’s database tables, and their migrations. |
- Commands that answer with the chatbot, embed content or run quality checks send requests to your AI provider, which cost tokens as they do on the site.
wp kimaai mcp token createprints the token once, as the admin does. WP-CLI’s--userchooses the user the token acts as.- Every command, with its options and examples, is in the WP-CLI reference.
Related
- WP-CLI reference: every subcommand with its options.
- MCP server: the tokens
wp kimaai mcp tokenmanages. - Quality evaluation: the checks
wp kimaai eval runruns. - Embeddings: the sync
wp kimaai vectors syncruns.