This is the complete command set of @whereamimentioned/cli, the wam binary (wamctl is an alias for machines where wam is taken). Every command's --help ends with a copy-pasteable example, and this page follows the same order as wam --help. The conventions shared by every command (stdout versus stderr, --json, configuration precedence, credential storage) are on the configuration page and are not repeated below.
Global options
Available on every command, before or after the subcommand.
| Option | Meaning |
|---|---|
--json |
One JSON document on stdout (NDJSON when following a scan). Suppresses human formatting and implies --non-interactive. A stability contract, not a debug aid. |
-q, --quiet |
Suppress progress, spinners and non-essential stderr. Errors still print. |
--color, --no-color |
Force ANSI colour on or off. Off by default when NO_COLOR is set, stdout is not a TTY or TERM=dumb. Ignored under --json. |
--non-interactive |
Never prompt. Automatic when stdout is not a TTY, CI is set, --json is passed, or an AI agent is detected. |
-y, --yes |
Answer yes to confirmations. Required for any command that spends credits or creates something when the CLI cannot ask. |
--debug |
Request ids, config sources and HTTP status lines on stderr. Never the token. |
--org <slug> |
The organization for this invocation. Required on an account-wide key when no other source sets it. |
--workspace <slug> |
The workspace for this invocation. |
--token <token> |
The credential for this invocation. Prefer WAM_TOKEN; arguments leak into shell history. |
--api-url <url> |
The API origin, for staging. Default https://whereamimentioned.com. |
--profile <name> |
The credential and config profile. Default default. |
-V, --version |
Print the version and exit 0. |
-h, --help |
Print help and exit 0. |
Exit codes
Every command exits with one of these. Nothing above 125 is used, because the shell reserves 126, 127 and 128 and above.
| Code | Meaning | Typical cause |
|---|---|---|
| 0 | Success | |
| 1 | Generic failure | A server 500, a network failure, a follow that timed out, a scan id that was not found |
| 2 | Usage error | Unknown flag, missing argument, bad value, no workspace or organization resolved, a confirmation needed in a non-interactive context |
| 3 | Auth required or expired | No credential, a revoked or expired key, insufficient scope or role, the plan gate, an organization or workspace the key cannot see |
| 4 | Insufficient credits | HTTP 402 from scan creation, or scan estimate reporting sufficient: false |
| 5 | Rate limited | HTTP 429 |
| 6 | Scan failed | The scan reached failed while being followed |
| 7 | Threshold not met | --fail-under was set and the score was below it |
| 8 | Scan already running | HTTP 409 scan_already_running and --no-follow was passed |
| 9 | Conflict | HTTP 409 conflict: the priced terms moved, or an Idempotency-Key was reused with different terms |
| 10 | Ceiling reached | HTTP 409 at a limit that waiting does not clear: the plan's workspace cap, or the 25 organizations one account may own |
| 11 | No paid organization | HTTP 403 feature_not_available from wam org create: the account owns no organization on a paid plan |
wam auth
Sign in, sign out, or show who you are.
wam auth login
Create an API key through an approval page and store it. Three flows; the default opens your browser.
wam auth login [--device] [--token] [--account-wide] [--name <label>]
[--scopes <csv>] [--expires <days>] [--no-browser]
| Option | Meaning |
|---|---|
--device |
The device-code flow, for SSH sessions, containers, WSL and Codespaces. Prints a URL and a code such as BQDX-7F2M, valid for ten minutes, and polls every five seconds. |
--token |
Read an existing API key from stdin (or prompt for it) instead of running a browser flow. |
--account-wide |
Mint a key that reaches every organization your account belongs to. Prints what that means and asks before the browser opens. |
--name <label> |
The key name shown in the dashboard. Default: your hostname followed by CLI. |
--scopes <csv> |
Requested scopes, from workspaces:read, workspaces:write, scans:read, scans:write, reports:read, prompts:read, prompts:write, competitors:read, competitors:write, orgs:write. Default: the five read scopes plus scans:write. The approval page can narrow the set. |
--expires <days> |
30, 90, 365 or never. Default 90. The approval page can lower it, not raise it. |
--no-browser |
Print the URL instead of opening a browser. |
The default flow starts a listener on 127.0.0.1 on a random port, opens /cli/authorize on the API origin and waits up to five minutes. You pick the organization, approve, and the key comes back over the loopback as a PKCE code exchange: no client secret, nothing to paste. On success it prints Signed in., the organization, the key's name and prefix, and where it was stored. Spends nothing.
Exits 0 on success; 1 on Sign-in timed out; 2 on a bad flag value; 0 with Cancelled. No key was created. if you answer no to the account-wide question.
wam auth logout
wam auth logout [--all]
Revokes the key on the server (DELETE /api/v1/keys/self), then clears the local credential. --all also revokes every other key you created through the CLI. Works even when the organization's plan has lapsed. Spends nothing.
wam auth status
Alias: wam whoami.
wam auth status
Shows the key kind, the organization (and how it was resolved), your role (and the ceiling, when it caps you), the plan, the credit balance with an estimate of scans remaining at the plan's maximum scan size, the key's prefix and last four characters with its name, its scopes, when it expires, which credential store holds it and the current default organization and workspace. On an account-wide key, how many organizations it reaches. Never prints the token.
Under --json: { key, org, actor, plan, credits, organizations?, local: { storage, profile, org, workspace, configSources } }, where key, org, actor and plan are the GET /api/v1/me body, credits is the GET /api/v1/credits body, and organizations is present only on an account-wide key.
Exits 3 with Not signed in when no credential resolves.
wam config
Read and write the user configuration. Never touches wam.json.
| Command | What it does |
|---|---|
wam config list |
Every key with its resolved value and the source it came from (flag, env, ./wam.json, ~/.config/..., default). Under --json: { key: { value, source } }. |
wam config get <key> |
One resolved value, raw, with no formatting. Nothing is printed when it is unset. |
wam config set <key> <value> |
Write to the active profile of the user config. Keys: org, workspace, apiUrl, failUnder. |
wam config unset <key> |
Remove it from the user config. |
wam config path |
The config files that were consulted, in precedence order. |
An unknown key is exit 2 naming the valid ones. apiUrl here is the only sanctioned place for a persistent server override.
wam org
Organizations. Both commands need an account-wide key; an organization key gets exit 3.
wam org list
wam org list [--limit <n>] [--cursor <cursor>]
Every organization the key reaches: ORG (slug), NAME, TIER, YOUR ROLE, WORKSPACES. Not gated on a paid plan, so it is the command to run when everything else answers exit 3: it shows which organizations have lapsed. Spends nothing. Under --json: the GET /api/v1/organizations page.
wam org create
wam org create <name> --type <brand|agency> [--idempotency-key <key>]
Creates an organization on your account. Requires an account-wide key with orgs:write, and the account must already own a paid organization (otherwise exit 11 with the billing page). The new organization is not usable until a person subscribes at the URL this prints. An organization cannot be deleted from the CLI or the API, so this asks first; where it cannot ask, --yes is required. The Idempotency-Key is derived from the name, type, UTC date and CI run id so a retry returns the same organization; --idempotency-key overrides it (1 to 128 characters from A-Z a-z 0-9 _ . : -). Spends nothing.
Exits 9 when the key was reused with a different name or type; 10 at the 25-organization ceiling.
wam workspace
wam workspace list
wam workspace list [--limit <n>] [--cursor <cursor>]
The resolved organization's workspaces: ORG, WORKSPACE, BRAND, REGION, PROMPTS (enabled of total), LAST SCAN, SCORE. Spends nothing. Under --json: the GET /api/v1/workspaces page.
wam workspace use
wam workspace use <org/workspace>
Sets the default organization and workspace in the user config, after checking both exist. Prints Default workspace set to acme/acme-main. and the file written. Under --json: { ok, org, workspace, profile, path }.
wam workspace create
wam workspace create <name>
Creates a workspace in the resolved organization and prints the slug it was given. Spends nothing, but asks first because a workspace cannot be deleted from the CLI or the API. Sends no Idempotency-Key (the API accepts none here), so a retried create makes a second workspace: do not wrap it in a retry and do not schedule it. The new workspace has no brand profile; the dashboard finishes setup. Exits 10 at the plan's workspace cap.
wam scan
wam scan estimate
wam scan estimate
Prices the next scan of the workspace and starts nothing.
Workspace acme-main (acme)
Prompts 6
Models GPT-5.5, Claude Sonnet 5, Gemini 3.5 Flash, Perplexity Sonar
Cost 24 credits (grounded)
Balance 48 now, 24 after
Run it with: wam scan run
Every number and name is printed as the server returned it. Under --json: the POST .../scans/estimate body verbatim, quote included. When the balance is short, the body is still the stdout document, the shortfall and the billing page go to stderr, and the exit code is 4.
wam scan run
wam scan run [--wait] [--yes] [--fail-under <n>] [--timeout <seconds>]
[--poll <seconds>] [--no-follow] [--idempotency-key <key>]
The one command that spends credits. It always estimates first, prints the cost block above even with --yes and even under --quiet or --json, then asks This spends real credits. Run the scan? (y/N). The default is no; anything other than y or yes cancels with exit 0 and nothing spent. Where it cannot ask, --yes is required or it exits 2 having started nothing. The create call carries the quote from the estimate, so the price you saw is the price you pay; if a term moved in between, exit 9 tells you to estimate again.
| Option | Meaning |
|---|---|
--wait |
Follow the scan to done or failed, then print the result. |
--fail-under <n> |
Exit 7 when the resulting AI visibility score is below n (0 to 100). Implies --wait. Falls back to failUnder in wam.json. |
--timeout <seconds> |
Stop following after this long and exit 1 with the scan id. Default 1800. The scan keeps running. |
--poll <seconds> |
Seconds between polls. Default 10, minimum 5. |
--no-follow |
When a scan is already running for the workspace, exit 8 instead of following it. |
--idempotency-key <key> |
Override the derived key (organization, workspace, UTC date and CI run id). A retried CI step replays the same scan instead of starting a second one. |
Without --wait it prints the scan id, the cost and the balance, and Follow it with: wam scan status <id> --wait. With --wait, a progress line on stderr (12 of 24 answers (total may still grow); raw counts, never a percentage, because the total grows while the scan runs), then a summary: the score, presence rate, share of voice, citation share, one line per model, credits spent, balance after and the duration.
Under --json without --wait: the POST .../scans body. With --wait: NDJSON, one {"type":"progress", ...} object per poll (the scan status body), then one terminal {"type":"result", id, status, creditsSpent, balance, score, presenceRate, sov, brandCitationShare, perModel, durationMs}, or {"type":"error", ok: false, error, exitCode} if the run fails while streaming. The threshold does not change the result object; it changes the exit code.
A scan that finishes with a score of 0 and a presence rate of 0 prints a warning on stderr with the scan page URL, because an all-zero report is more often a brand profile problem than a true absence.
wam scan status
Alias: wam scan watch <scanId> is wam scan status <scanId> --wait.
wam scan status <scanId> [--wait] [--timeout <seconds>] [--poll <seconds>]
Status, progress, credits reserved and spent, score, timestamps and error of one scan. With --wait, follows it. Spends nothing. Under --json: the GET /api/v1/scans/{id} body, or the NDJSON stream with --wait.
<scanId> is the full id or an unambiguous prefix of it: the ID column of wam scan list prints the first eight characters, and that pastes back. A prefix is resolved client side against the workspace's scan list, so it needs a workspace; a full id does not. One match proceeds; none is exit 1; several is exit 2 listing the candidates.
wam scan list
wam scan list [--limit <n>] [--cursor <cursor>] [--status <queued|running|done|failed>]
[--from <date>] [--to <date>]
The workspace's scans, newest first: DATE, ID (first eight characters), STATUS, MODE, PROMPTS, MODELS, CREDITS, SCORE. A page of this is the score trend. Spends nothing. Under --json: the GET .../scans page.
wam scan evidence
wam scan evidence <scanId> [--limit <1..100>] [--cursor <cursor>] [--model <id>]
[--mentioned <true|false>] [--low-confidence <true|false>] [--full]
The answers behind a scan: for each, the prompt, the model, whether the brand was mentioned and where, the sentiment, the other brands present in order, the citations and the judge's confidence. Prompts and answers are shortened for the terminal unless --full; the API itself returns at most 1,200 characters of an answer and 25 citations, so --full never shows more than the API does. Default 20 per page. Spends nothing. Under --json: the GET /api/v1/scans/{id}/answers page.
wam scan evidence <id> --mentioned false is the fastest answer to "which questions are we losing".
wam report
wam report get
wam report get [--scan <scanId>] [--format <json|csv|pdf>] [-o <file>] [--fail-under <n>]
The report of a scan: by default the latest completed scan of the workspace, or the one named with --scan (a full id or an unambiguous prefix). Prints the score and its components, the per-model block, share of voice against each competitor, the most cited domains with their bucket, and the top recommendations.
| Option | Meaning |
|---|---|
--format |
json (default), csv or pdf. CSV and PDF are file downloads and need a plan that includes them (exit 3 otherwise, naming the allowed formats). |
-o, --output <file> |
Write to a file and print a summary to stderr. Required for pdf. |
--fail-under <n> |
Exit 7 when the score is below n. Falls back to failUnder in wam.json for the JSON format. Never starts a scan. |
Spends nothing. Under --json: the ReportData object, or with -o for a binary format { ok, scanId, format, path, bytes }. A report requested while the scan is still running is exit 1 with Follow it with: wam scan status <id> --wait.
wam competitor
wam competitor list
wam competitor list [--limit <n>] [--cursor <cursor>]
NAME, DOMAIN, ALIASES. Spends nothing.
wam competitor add
wam competitor add <name> [--domain <domain>] [--alias <alias>]...
Tracks a competitor from the next scan on. --alias is repeatable. Nothing is fetched from the domain. A duplicate name or domain in the workspace is exit 9. Spends nothing. Editing and removing competitors is done in the dashboard.
wam prompt
wam prompt list
wam prompt list [--enabled <true|false>] [--source <generated|template|custom>]
[--stage <awareness|research|comparison|purchase|branded>]
[--limit <n>] [--cursor <cursor>]
ID (short), STAGE, SOURCE, ON, TEXT, and a footer such as 12 of 150 prompts enabled. Tier cap is 150 per workspace on this plan. Spends nothing.
wam prompt add
wam prompt add <text> [--stage <stage>] [--persona <persona>] [--disabled]
Adds a custom prompt (8 to 400 characters). Default stage research. --disabled adds it switched off. Exit 3 at the plan's prompt cap, with Disable or remove one first: wam prompt list. Spends nothing.
wam prompt enable, wam prompt disable
wam prompt enable <id>
wam prompt disable <id>
Switch a prompt on or off. Takes the full id or the short id the list shows. A disabled prompt costs nothing in the next scan. Spends nothing.
wam prompt remove
wam prompt remove <id>
Removes a prompt. Asks first unless --yes. A prompt that is already gone counts as removed (exit 0). Spends nothing.
wam site
Seven checks on any site that need no account, no key and no configuration. The site is fetched by the whereamimentioned server, never by the CLI, so the checks see it from the public internet and cannot reach a private address. Every URL may be given with or without a scheme. All spend nothing, and all accept --json for the full structured result.
| Command | What it tells you |
|---|---|
wam site check-crawlers <url> |
Which known AI crawlers the site's robots.txt allows, with the rule and line that decided each. |
wam site validate-llms-txt <url> |
A 0 to 100 score for an existing llms.txt, findings with line numbers, stats, broken links and whether llms-full.txt exists. |
wam site generate-llms-txt <url> [--full] [-o <file>] |
Crawls the site and writes an llms.txt (--full: llms-full.txt with page content). |
wam site generate-sitemap <url> [-o <file>] |
Crawls the site and writes a sitemap.xml. |
wam site validate-schema <url> |
Validates the page's JSON-LD: a score, per-entity findings, microdata and RDFa counts. |
wam site check-meta <url> [--keyword <keyword>] |
The page's title, meta description and opening paragraph: widths, where desktop and mobile truncate, findings. |
wam site analyze-chunks <url> |
How the page chunks for retrieval: per-heading sections, findings, a score and the top fixes. |
The two generators write the generated file to stdout and every count and notice to stderr, so > llms.txt and > sitemap.xml produce clean files; with -o they write the file and print a summary instead. Exit 2 when the server refuses the URL (a private address, a site that did not answer, or a robots.txt that disallows the crawler) and 5 at the per-IP limits (30 checks and 10 crawls per hour).
wam mcp
The installer for the MCP server.
wam mcp url
wam mcp url [--readonly] [--scope <org|workspace|none>]
Prints the MCP endpoint URL for the resolved organization and workspace, and nothing else, so it composes into other commands. --scope pins the URL to the organization, the workspace or neither; the default is the narrowest that resolves. --readonly appends /readonly, which drops every tool that writes. WAM_MCP_URL overrides the endpoint for staging. Needs no key.
wam mcp install
wam mcp install --client <client> [--readonly] [--scope <org|workspace|none>] [--global] [--print]
Adds the server to an AI client's configuration. --client is one of claude-code, cursor, vscode, windsurf, zed, warp, opencode, amp, jetbrains.
| Client | Project file | User file | Top-level key |
|---|---|---|---|
cursor |
.cursor/mcp.json |
~/.cursor/mcp.json |
mcpServers |
vscode |
.vscode/mcp.json |
VS Code's user mcp.json |
servers |
windsurf |
none | ~/.codeium/windsurf/mcp_config.json |
mcpServers |
zed |
none | ~/.config/zed/settings.json |
context_servers |
warp |
.warp/.mcp.json |
~/.warp/.mcp.json |
mcpServers |
opencode |
opencode.json |
~/.config/opencode/opencode.json |
mcp |
amp |
.amp/settings.json |
~/.config/amp/settings.json |
amp.mcpServers |
jetbrains |
.junie/mcp/mcp.json |
~/.junie/mcp/mcp.json |
mcpServers |
claude-code |
runs claude mcp add |
Rules the command follows:
- The existing file is merged, never overwritten, and a backup named
<file>.wam-backup-<timestamp>is written next to it first. A file with comments or trailing commas is left alone and the snippet is printed instead. - A project-scoped file receives
"Bearer ${WAM_TOKEN}"and never the token itself, plus a reminder to export the variable. Only--globalwrites the literal token, after a confirmation (--yesanswers it). Windsurf and Zed have no project file and always use the user-level one. --printwrites the snippet to stdout and touches nothing: the way to install into a client the command does not know.claude-coderunsclaude mcp adddirectly, never through a shell. On Windows that needs the nativeclaude.exe; the npmclaude.cmdshim is detected and the command prints the snippet instead.- Restart the client afterwards; the command names it.
Under --json: { ok, client, target, path, written, backup, url, topLevelKey, snippet }, or for claude-code { ok, client, written: false, executed, url, command }.
wam completion
wam completion <bash|zsh|fish|powershell>
Prints a shell completion script on stdout; installation instructions go to stderr.
eval "$(wam completion zsh)" # this shell
echo 'eval "$(wam completion zsh)"' >> ~/.zshrc # keep it
wam completion fish > ~/.config/fish/completions/wam.fish
wam completion powershell | Out-String | Invoke-Expression
bash needs the bash-completion package; zsh needs compinit to have run.