Skip to content

Commands

Every command and option in the Paysum CLI.

paysum <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. PAYSUM_API_KEY does the same.
--api <url>API origin, default https://paysum.io. Also PAYSUM_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
PAYSUM_API_KEYKey to use instead of the saved one.
PAYSUM_API_URLAPI origin.
PAYSUM_CONFIG_DIRWhere credentials are stored.
NO_COLORTurn off colored output.