Skip to content
OpenStock
OpenStock

Get started

Theme CLIInstall and sign in

Workflow

Develop a themeSyncing and conflictsCI and automation

Reference

Commands
Dashboard
  1. CLI
  2. Reference

Commands

Every command and option in the OpenStock CLI.

openstock <command> [options]

Commands#

CommandWhat it doesOptions
loginSign in with a store API key. Prompts unless --key or the env var is set.
logoutForget the saved key for this folder’s store (or the current one).--store <id>
whoamiShow the store, its URL, the key’s scopes and the theme folder.
init [folder]Download the theme into a new folder named after the store.--force
pullBring server changes down. Keeps local edits unless forced.--force
statusList local changes since the last sync.
pushUpload local changes as drafts. Stops on conflicts unless forced.--force
watchPush on every save and print a self-reloading preview link.--open
previewPrint a fresh preview link for the current drafts.--open
publishPush, build on the server and make the drafts live.--yes, --no-push, --open
versionsList published versions and mark the live one.
openOpen the storefront in your browser.

Aliases: dev for watch, deploy for publish, ls for versions, info for whoami.

Global options#

OptionDescription
--key <sk_…>Use this key for one command. OPENSTOCK_API_KEY does the same.
--api <url>API origin, default https://openstock.dev. Also OPENSTOCK_API_URL.
-o, --openOpen the preview or storefront in your browser.
-f, --forceOverwrite on conflicts; let init use a folder that is not empty.
-y, --yesPublish without asking.
-h, --help / -v, --versionShow help or the installed version.

Environment#

VariableDescription
OPENSTOCK_API_KEYKey to use instead of the saved one.
OPENSTOCK_API_URLAPI origin.
OPENSTOCK_CONFIG_DIRWhere credentials are stored.
NO_COLORTurn off colored output.

Was this page helpful?

PreviousCI and automationNextMCP server
© 2026 OpenStockTermsPrivacy