Appearance
CLI
FreshSource: BIBLE.md (CLI subcommands 16, cli.mjs 407 lines)
Ghost Engine has 16 CLI subcommands exposed via node cli.mjs <subcommand>. CLI parity with the HTTP API.
All subcommands
| Subcommand | What it does |
|---|---|
start | Start the engine on :4700 |
health | Health check |
ctr | Fire a single CTR round |
campaign | Run a campaign from config file |
rank | Check rank for a keyword |
warmup | Run warmup batch |
schedule | Manage schedules (create, list, cancel) |
accounts | Account ops (list, show, import, army-status, ready, quarantine, unquarantine) |
gmail-login | Login one or first N Gmail accounts |
setup | Import accounts from registry plus cookies |
cookies | Cookie ops (refresh, refresh-batch, status) |
cascade | Run cascade across 9 platforms |
social | Post to a platform |
mobile | Mobile (ADB) ops |
routes | List all 704 routes |
version | Show version |
Examples
Start engine
bash
node cli.mjs startCTR
bash
node cli.mjs ctr \
--keyword "junk removal dallas" \
--domain "journeyjunkremoval.com" \
--city "Dallas" \
--state "TX"Campaign
bash
node cli.mjs campaign --config campaigns/dallas-junk-removal.jsonRank check
bash
node cli.mjs rank \
--keyword "junk removal dallas" \
--domain "journeyjunkremoval.com" \
--state "TX"Schedule
bash
node cli.mjs schedule create \
--campaign "dallas-junk-removal" \
--clicks-per-day 50 \
--start-hour 8 \
--end-hour 22 \
--strategy "natural" \
--timezone "America/Chicago"
node cli.mjs schedule list
node cli.mjs schedule cancel SCHED_IDAccounts
bash
node cli.mjs accounts list
node cli.mjs accounts list --status active --client journey-junk --phase 2
node cli.mjs accounts show <accountId>
node cli.mjs accounts army-status
node cli.mjs accounts ready --min-health 50
node cli.mjs accounts quarantine <accountId> --reason "flagged"
node cli.mjs accounts unquarantine <accountId>
node cli.mjs accounts import --registry <path> [--dry-run] [--overwrite]Gmail login
bash
node cli.mjs gmail-login <accountId>
node cli.mjs gmail-login --first=5Setup (first-time)
bash
node cli.mjs setup \
--registry C:\Users\jennb\browser-sender\data\account-identity\registry.json \
--cookies C:\Users\jennb\browser-sender\data\login-resultsDry run:
bash
node cli.mjs setup --registry ... --cookies ... --dry-runRoutes (debug)
bash
node cli.mjs routes