This page summarizes the full command surface implemented in src/cli.ts.
Auth
| Command | Purpose | Key options |
|---|---|---|
auth:login |
authenticate with the Salesprompter app | --token, --api-url, --timeout-seconds |
auth:whoami |
show the current identity and session info | --verify |
auth:logout |
remove the local session file | none |
ICP, accounts, and leads
| Command | Purpose | Key options |
|---|---|---|
account:resolve |
normalize a target company into an AccountProfile |
--domain, --company-name, --icp, --out |
icp:define |
create an ICP JSON artifact | --name, --industries, --company-sizes, --regions, --countries, --titles, --required-signals, --keywords, --out |
icp:vendor |
create a vendor-specific ICP template | --vendor, --market, --out |
icp:from-historical-queries:bq |
infer a vendor ICP from historical BigQuery query patterns | --vendor, --market, --tables, --search-kind, --include-function, --out, --report-out |
leads:generate |
generate leads for a target account or fallback seed data | --icp, --count, --domain, --company-name, --out |
leads:enrich |
enrich a lead array | --in, --out |
leads:score |
score enriched leads against an ICP | --icp, --in, --out |
leads:lookup:bq |
build and optionally execute a BigQuery lead lookup | --icp, --table, --limit, --sql-out, --out, --lead-out, --execute |
Sync
| Command | Purpose | Key options |
|---|---|---|
sync:crm |
dry-run sync scored leads into a CRM target | --target, --in |
sync:outreach |
sync scored leads into an outreach target | --target, --in, --campaign-id, --apply, --allow-duplicates |
Warehouse analysis
| Command | Purpose | Key options |
|---|---|---|
queries:analyze:bq |
analyze historical query filters from warehouse tables | --tables, --search-kind, --include-function, --out |
leadlists:funnel:bq |
build an upstream lead-list funnel report | --vendor, --market, --out |
Domain finder
| Command | Purpose | Key options |
|---|---|---|
domainfinder:backlog:bq |
analyze backlog and bottlenecks | --market, --out |
domainfinder:candidates:bq |
fetch real domain candidates from BigQuery | --market, --limit, --out, --sql-out |
domainfinder:input-sql |
generate improved input SQL for the old workflow | --market, --out |
domainfinder:select |
apply deterministic selection logic to candidate rows | --in, --out |
domainfinder:audit |
audit selected decisions and flag risky writebacks | --in, --out |
domainfinder:compare-pipedream |
compare new selection logic to the legacy selector | --in, --out |
domainfinder:audit-existing:bq |
inspect current warehouse-visible chosen domains | --market, --out |
domainfinder:audit-delta |
compare two existing-domain audits | --before, --after, --out |
domainfinder:repair-existing:bq |
generate targeted repair SQL and optionally execute it | --market, --limit, --mode, --out, --trace-id, --execute |
domainfinder:writeback-sql |
generate conservative writeback SQL from decisions | --in, --out, --trace-id |
domainfinder:writeback:bq |
generate writeback SQL and optionally execute it | --in, --out, --trace-id, --execute |
domainfinder:run:bq |
run the full domain-finder pipeline end to end | --market, --limit, --out-dir, --trace-id, --execute-writeback |
Output conventions
Success output is JSON. Use:
--jsonfor compact machine-readable output--quietto suppress successful stdout output
Errors resolve to consistent exit codes:
1runtime error2invalid arguments3auth required or session expired