@thor-commerce/cli
v0.1.1
Published
Developer CLI for Thor Commerce apps
Readme
Thor Commerce CLI
Developer tooling for Thor Commerce apps.
npm install -g @thor-commerce/cli@latestDevelop an app locally
Run this inside a Thor app created by create-thorcommerce-app:
thor devThe command authenticates with Thor Commerce, starts the project's dev
script, waits for http://localhost:3000, temporarily points this developer's
embedded app at the local server, and opens
https://admin.thorcommerce.io/apps/{appSlug}.
The override is scoped to the authenticated developer and app. It is renewed while the command runs and removed on shutdown. A server-side expiry restores the deployed URL if the CLI exits unexpectedly.
Options:
thor dev --port 4000
thor dev --url http://localhost:4000
thor dev --no-open
thor dev -- --host 0.0.0.0The package manager is inferred from the project's lockfile. Supported package managers are pnpm, npm, Yarn, and Bun.
Update app configuration
thor updateThis preserves the existing create-thorcommerce-app workflow for creating a
new app version with updated scopes, application URI, webhook path, or webhook
topics.
