recomentionDocs

Customer CLI

Sign in, check AI visibility, and read reports from a terminal.

The recomention customer CLI uses the public API and your API key. It requires Node.js 20 or later.

The package is recomention on npm; its source is at github.com/recomention/cli (MIT).

npx recomention login
npx recomention reports
npx recomention check acme.com \
  --description 'Team scheduling software' --category 'meeting scheduling'

Login reads a hidden API key prompt and verifies the key before saving it with owner-only permissions. reports lists your existing reports; neither command spends anything. Check starts a paid report: it needs a product description and buyer category (in a terminal it asks for any you leave off), shows the plan and funding source, then asks for confirmation and starts nothing until you answer yes. The default Full report uses one agency credit. Quick and Deep require explicit --funding byok and an Agent plan with your own keys; provider charges vary, and the API cannot quote a total beforehand. Card purchases are handled in the dashboard.

For scripts, explicitly accept the displayed funding charges:

npx recomention check acme.com --plan full \
  --description 'Team scheduling software' --category 'meeting scheduling' \
  --yes --no-wait --json
npx recomention status REPORT_SLUG
npx recomention report REPORT_SLUG --open
npx recomention reports --json
npx recomention kit REPORT_SLUG
npx recomention rankings
npx recomention rankings meeting-scheduling --json
npx recomention whoami
npx recomention logout
npx recomention --help

Without --yes, non-interactive starts are refused. Ctrl-C stops waiting and prints how to resume; it does not cancel the report. A request ID permits a retry with --idempotency-key and identical fields without spending twice. Explicit --competitor input is not supported by the current API and is refused before starting.

Reports show “named in N of M answers”, skipped engines and reasons, and simulated labels. --json returns the API envelope for scripts. The start envelope lacks a simulation flag; read status or report to check that flag. Kits export Markdown into ./recomention-kit/REPORT_SLUG/; --output changes the parent directory and --json writes to stdout. Existing kit directories are preserved.

RECOMENTION_API_KEY overrides the saved login. RECOMENTION_BASE_URL selects a different API origin; HTTPS is required except for loopback tests. Provider keys are read only from environment variables and sent only for explicit BYOK starts. NO_COLOR is respected. whoami verifies authentication but cannot show a name or email because the API has no identity endpoint.

Exit codes: 0 success, 1 API/network/local error, 2 usage or confirmation refused, 3 authentication, 4 report failed. See --help for all options.

Projects, saved questions and Track

recomention projects --json
recomention prompts <projectId> --json
recomention prompts add <projectId> "best scheduling software for teams" --idempotency-key questions-edit-0001
recomention prompts rm <projectId> <promptId> --idempotency-key questions-edit-0002
recomention track <projectId> --json
recomention visits <projectId> --days 30 --json
recomention links --days 30 --page 1 --json
recomention backlinks <projectId> --json
recomention keywords <projectId> --json
recomention fixes <projectId> --json
recomention connections <projectId>
recomention connect <projectId> linkedin
recomention revenue <projectId> --days 30
recomention ads <projectId>

These commands spend nothing. Question edits change saved next-run setup without changing historical report questions. Reuse the printed idempotency key and the same fields on retries. Unknown question dates and measurements are null; skipped engines stay separate from measured answers. Existing series or credit reruns may repeat earlier questions, as the dashboard explains.

visits, links, backlinks, keywords and fixes read only what is stored: they never refresh backlinks or run keyword research (both spend and stay in the dashboard). Days before the first counted visit, and values a source did not report, are null rather than zero. A feature that is off on the server answers with an error that says so, never an empty list. fixes marks the fixes you ticked done on the dashboard.

connect <projectId> <platform> prints a single-use link that expires in 10 minutes. Open it yourself, signed in: it opens your project's Connections tab with that platform selected and connects nothing until you approve the platform's consent. It opens only for the account that made it. connections never shows tokens.

revenue shows the Revenue by source page's numbers: conversions your site reported (values as sent, not verified), by source, and Link Studio conversions your server verified, kept apart; per currency, never converted, with a rate only where its visits or clicks were measured. ads shows connected Google and Meta ads accounts and the campaign reporting the dashboard last fetched (dates, fetched time, completeness); it never calls Google or Meta.

Google Search campaigns

recomention ads list <projectId>
recomention ads draft <projectId> --file campaign.json --json > draft.json
recomention ads create <projectId> --file draft.json --confirm
recomention ads enable <projectId> <campaignId> --confirm-spend
recomention ads pause <projectId> <campaignId>

Early access — owner-only until Google verifies campaign management. These run campaigns in your own Google Ads account (your account pays Google; the CLI charges nothing). ads list shows your campaigns (state, lifetime cap, dates, provider receipt), the month budgets, the selected Google Ads account and the approved drafts a campaign may use. ads draft checks a campaign exactly as the dashboard's Campaigns page does and asks Google to validate it, creating nothing; the file holds connectionId, draftId, draftVersion, name, headlines, descriptions, finalUrl (your own HTTPS domain, no utm_* parameters), keywords, geoTargetIds, firstDay, lastDay (whole days in the ad account's time zone), lifetimeCap and maxCpc in USD, and nonPolitical: true. ads create --confirm creates it paused and holds its lifetime cap against the month's budget; the printed idempotency key makes an interrupted create safe to rerun. Nothing serves until ads enable --confirm-spend. ads pause always works. Server switches, caps, your monthly budget and Google's review rules all still apply, and a refusal says which one stopped it. Drafting, creating and enabling need an API key you allowed to run ad campaigns: tick "Allow this key to run ad campaigns" for that key in Account → Developers (off for every key by default; without it the API answers 403). Listing and pausing never need it. Agents can enable only campaigns they created; a campaign made on the dashboard is enabled there. Only a confirmed state counts as done (PAUSED after create or pause, ENABLED after enable): if the provider's answer was lost (UNKNOWN), the command says the outcome is unconfirmed (for a pause, that the campaign may still be spending), tells you to check Google Ads, and exits 1.

On this page