Set up and run the StateSet iCommerce engine locally (CLI install, DB init, demo data, sync). Use when bootstrapping an environment, running `stateset-doctor`, or starting `stateset-autonomous`.
Set up local iCommerce runtime, CLI tooling, and optional sync.
stateset-doctor to validate connectivity, schema, and credentials.stateset --db ./store.db "list customers" or stateset-doctorcd /home/dom/stateset-icommerce/cli && npm install && npm link--apply for writes and stateset-doctor for checks.list_customers, list_products, list_orders (all commerce tools available after setup).bash /mnt/skills/user/commerce-engine-setup/scripts/seed-demo.shbash /mnt/skills/user/commerce-engine-setup/scripts/verify-setup.shstateset-autonomous start --db ./.stateset/commerce.dbstateset-doctor, list_customers, list_products, list_orders — no --apply needed.seed-demo.sh, stateset-autonomous start, DB init — requires --apply.cd /home/dom/stateset-icommerce/cli && npm install && npm link
bash /mnt/skills/user/commerce-engine-setup/scripts/seed-demo.sh
stateset-doctor --db ./store.db
stateset-autonomous start --db ./.stateset/commerce.db
{"status":"ok","db":"./store.db","sync":"disabled","autonomous":"stopped","cli_version":"1.4.0","tables":12,"customer_id":"cust_001","email":"[email protected]"}
stateset-doctor checks (connectivity, schema version, API key validity).npm link or install @stateset/cli globally.lsof on the .db path.SEQUENCER_URL in .env.--db path exists and the customers table with id and email columns is initialized.SETUP_CLI_NOT_FOUND: The stateset CLI is not linked; re-run npm link or install globally.SETUP_DB_LOCKED: Database file is locked by another process; close competing connections.SETUP_SEQUENCER_UNREACHABLE: Cannot connect to the sequencer; verify Docker services and SEQUENCER_URL.