Skip to content

Growth Genie CLI

Read your Growth Genie AI visibility, tracked prompts and the answers ChatGPT, Claude, Perplexity and Google’s AI gave, and add or stop prompts, from a terminal, a script or an AI agent.

Terminal window
npx @growthgenie/cli login
npx @growthgenie/cli visibility acme.com

Or install it once: npm install -g @growthgenie/cli, then run growthgenie. It needs Node.js 20 or later and has no dependencies.

Terminal window
growthgenie login # read only
growthgenie login --write # also add, stop and group prompts

Your browser opens at Growth Genie: sign in, choose the workspaces the CLI may read and approve Growth Genie CLI (verified by Growth Genie). On a computer without a browser, add --no-browser, open the address it prints on any computer, and paste back the address the browser ends on. growthgenie logout signs out on this computer. The CLI appears in Growth Genie under Settings → Connected AI clients; disconnecting it there signs it out everywhere.

The sign-in is kept in ~/.config/growthgenie/cli.json ($XDG_CONFIG_HOME/growthgenie if set, %APPDATA%\growthgenie on Windows), readable only by you. The access token renews itself.

Command What it does
projects The projects you approved, with their IDs.
visibility <project> [--country GB] [--topic <topic>] Today’s visibility score, and for each prompt whether each engine named you.
prompts <project> [--topic <topic>] Tracked prompts, and how much of your plan they use.
topics <project> Topics and how many prompts each has.
answer <project> <prompt-id> <engine> [--day YYYY-MM-DD] [--full] One engine’s answer, word for word, with every brand it ranked and the sources it cited.
gaps <project> [--keywords] [--country GB] Content gaps from the last Gaps scan: page ideas from what AI tools searched where no answer named you. With --keywords, Google keywords holding one of your site’s own phrases that your competitors rank for and you don’t, with the phrase and, where you rank below 20, your own position.
gap <project> <content|keyword> <country> <key> One gap in full: the searches with counts per AI tool, a quote, the cited pages and who ranks for it on Google; or each competitor’s Google position and page, your phrase and position, and the other spellings it covers.
add-prompt <project> <text> [--topic <topic>] [--country US] Start tracking a question. A stopped one comes back with its history.
remove-prompt <project> <prompt-id> Stop tracking a prompt. Its history is kept.
create-topic <project> <name> Create a topic.
move-prompt <project> <prompt-id> <topic|none> Move a prompt into a topic, or out of one.
tools The MCP tools your sign-in can use.
call <tool> '<json>' Call any tool and print its JSON result.
status, login, logout Your sign-in on this computer.

<project> is a project ID, a domain (acme.com) or a name. <topic> is a topic ID or name. <engine> is chatgpt, claude, perplexity, ai-overviews or ai-mode. Lists show one page; add --all for everything.

Every command takes --json and then prints the tool’s structured result, the same JSON the Growth Genie MCP server returns:

Terminal window
growthgenie visibility acme.com --json | jq '.data.score'
growthgenie prompts acme.com --all --json | jq -r '.data.items[] | select(.status == "active") | .text'

Errors go to stderr as one line, and the exit code says what happened:

Code Meaning
0 Done.
1 Growth Genie refused or failed (the message gives the error code).
2 Wrong command or arguments.
3 Sign-in needed: run growthgenie login (or login --write to change prompts).

Limits and brief outages are retried after the delay Growth Genie asks for. Changes carry an idempotency key, so a retry never applies twice.

The CLI is for computers that keep their sign-in: your laptop, a server, an agent’s machine. Refresh tokens change on every use and a reused one ends the sign-in, so don’t copy cli.json into short-lived CI runners.

The package is @growthgenie/cli on npm, MIT licensed. It is a client of the MCP server: anything it does, an MCP client can do too, under the same scopes and limits.