Scaffold agentic CLI scripts for every service in your stack — automatically, from your live environment.
Built by eComX — the Context-First AI development methodology for serious ecommerce operators.
An AI-agent workflow that reads your connected services from /setup-environment and generates a fully-functional CLI script for each one. Every API endpoint becomes a terminal command. No dashboard clicking — everything is scriptable and agent-callable.
Philosophy: Every API endpoint your brand touches should be queryable from the terminal. Your AI agents should never need to open a browser.
When you're done, you have:
- 📁 A
scripts/directory with one CLI per service - 🔗 Full read/write access to every connected API
- 🤖 Agent-ready commands your BIOS and Axiom workflows can call directly
- 📊 A unified dashboard pulling metrics from all services
- 🛡️ Built-in rate limiting, pagination, and error handling
| Category | Services |
|---|---|
| 🛒 E-Commerce | Shopify (products, orders, customers, themes, content, discounts) |
| 📢 Marketing & Ads | Meta Ads, Meta Social (Facebook + Instagram), Google Ads |
| 📧 Email Marketing | Klaviyo (campaigns, flows, segments, profiles) |
| 📊 Analytics | GA4 (traffic, events, conversions, audiences) |
| 💳 Payments | Stripe (charges, subscriptions, invoices, payouts) |
| 📬 Communication | Gmail (inbox, send, drafts, labels) |
| 📱 SMS | Twilio (send, calls, phone numbers, usage) |
| 🎧 Customer Support | Gorgias (tickets, CSAT, macros) |
| 📒 Accounting | QuickBooks (invoices, P&L, balance sheet) |
| 🔍 Monitoring | Sentry (issues, releases, error rates) |
| 🎨 Design | Figma (files, components, exports), Notion (databases, pages) |
Need a service not listed? Use --add custom — the agent will research the service's API, discover endpoints, and scaffold the CLI automatically.
/setup-environmentcompleted — credentials must be in Keychain- Node.js ≥ 18
- An AI agent that can run workflows (Claude, Cursor, Antigravity, etc.)
# Clone the repo
git clone https://github.com/ecomxco/setup-cli.git
cd setup-cli
# Open WORKFLOW.md in your AI agent and run:
/setup-cliYour agent will detect every connected service, scaffold CLIs with full endpoint coverage, and verify each one works.
- Detect Services — Reads your
.env.local(generated by/setup-environment) and identifies every connected service - Authenticate Native CLIs — Runs auth flows for 1st-party tools (
gh,vercel,supabase,shopify,wrangler) - Initialize Project — Creates
package.jsonand installs per-service SDKs - Scaffold Custom CLIs — Generates
scripts/{service}.jsfrom the endpoint registry with full read/write coverage - Validate — Runs a smoke test on every generated CLI to verify connectivity
- Generate Dashboard — Creates
scripts/dashboard.jsaggregating metrics from all services - Document — Updates
ENVIRONMENT.mdwith full CLI command reference
| Command | What It Does |
|---|---|
/setup-cli |
Full setup — scaffold CLIs for all connected services |
/setup-cli --add shopify |
Add one service from the built-in registry |
/setup-cli --add custom |
Agent researches a new service and scaffolds the CLI |
/setup-cli --verify |
Smoke test all generated CLIs |
For each connected service, a scripts/{service}.js file with:
- Full endpoint coverage — every read and write operation the API supports
- Pagination — automatic cursor/offset handling for large datasets
- Rate limiting — built-in backoff and retry for API rate limits
- Output formatting —
--json,--csv,--tableflags on every command - Dry-run —
--dry-runflag on all write operations - Error handling — human-readable error messages with actionable suggestions
# Pull all Shopify orders (JSON output, paginated)
node scripts/shopify.js orders --status any --limit 250 --json
# Get Klaviyo campaign performance (table format)
node scripts/klaviyo.js campaigns --last 30 --table
# Preview a Meta Ads campaign pause (dry run)
node scripts/meta-ads.js pause-campaign --id 12345 --dry-run
# Full briefing from unified dashboard
node scripts/dashboard.js --days 30Once your CLIs are set up:
→ /setup-data-warehouse # Pull live data into your local warehouse
→ /setup-bios # Generate your 33 BIOS intelligence specs
→ /plan-project # Begin building with full contextSee CONTRIBUTING.md for how to add new services or improve CLI templates.
See SECURITY.md for our responsible disclosure policy.
- 📖 Full workflow: WORKFLOW.md
- 💬 Questions: ecom-x.com/call
- 🐛 Issues: GitHub Issues
MIT — © 2026 eCom XP LLC