Theme CLI
Edit and preview themes from your own editor.
The theme CLI downloads a theme to your computer, uploads your changes and gives you a preview link. It needs Node.js 20 or newer.
Install
npm install -g https://docs.paidgoods.com/cli/paidgoods-theme.tgzThis adds two command names: paidgoods-theme and the shorter dc-theme.
Sign in
- In the dashboard, open Developers → API keys and create a key with Storefront → Edit themes and theme files.
- Run
paidgoods-theme login. - Enter your store ID (shown under Connection details on the same page) and paste the key.
The CLI saves both in ~/.config/dc-theme/config.json, readable only by you.
Commands
| Command | What it does |
|---|---|
paidgoods-theme list | Lists your themes and their IDs |
paidgoods-theme create --name "My theme" | Creates a theme. Add --template aurora (or essential, meridian, pulse, keystone, halo, vector) to start from a built-in one |
paidgoods-theme pull --theme <id> | Downloads the theme to ./themes/<id> |
paidgoods-theme push --theme <id> | Uploads your changes. Files you deleted locally are deleted from the theme too; add --keep-remote to keep them |
paidgoods-theme watch --theme <id> | Uploads every save and prints a preview link that reloads by itself |
paidgoods-theme preview --theme <id> | Prints a preview link |
paidgoods-theme apply --theme <id> | Makes the theme live on your store |
--dir <folder> works with pull, push and watch to use another folder. paidgoods-theme --help lists every option.
You can also upload a ZIP or use the storefront themes API.