CLI

CLI

EntryGo ships an agent-friendly bootstrap CLI.

On this page

#Install and initialize

bash
npx entrygo init

The CLI will:

  • install @entrygo/sdk
  • add ENTRYGO_API_KEY= to .env
  • generate entrygo.client.ts
  • test setup status
  • print the next required setup step

#First-run bootstrap

On a brand new EntryGo instance:

bash
npx entrygo bootstrap --name "Acme Supply" --email ops@acme.com

This command:

  • creates the first account
  • creates the first API key
  • writes ENTRYGO_API_KEY into .env
  • prints the next required setup step

In development, bootstrap is open only while the instance has no accounts. In production, bootstrap requires ENTRYGO_BOOTSTRAP_TOKEN.

Official first-run flow:

bash
npx entrygo init
npx entrygo bootstrap --name "Acme Supply" --email ops@acme.com
npx entrygo verify

#Verify installation

bash
npx entrygo verify
npx entrygo verify --json

entrygo verify reports:

  • whether ENTRYGO_API_KEY exists
  • whether the API key is valid
  • whether an account was resolved
  • whether setup status can be read
  • whether warehouse, broker, product, and order prerequisites are ready
  • what the next required step is

#Environment

bash
export ENTRYGO_BASE_URL="http://localhost:3000/api"
export ENTRYGO_API_KEY="shpbndl_live_..."

#Commands

bash
entrygo init
entrygo bootstrap --name "Acme Supply" --email ops@acme.com
entrygo verify
entrygo setup-status
entrygo products sync ./products.json
entrygo orders sync ./orders.json
entrygo exports demo --order ord_123
entrygo exports plan --account acc_123 --warehouse wh_123 --broker br_123 --orders ord_123
entrygo exports execute --account acc_123 --batch batch_123
entrygo exports inspect batch_123