Repository navigation
Getting Started
This page takes you from zero to a deployed Layout: install the CLI, get a storefront project, sign in and run your first deployment.
| Requirement | Details |
|---|---|
| Node.js | Version 14 or later (engines.node is >=14.0.0). npm or yarn. |
| Selldone account | Sign up at selldone.com. Deploying Layouts requires a premium account; see Deployment Workflow. |
| A free local port | The login callback listens on http://localhost:3777. |
| A web browser | Used for the OAuth2 sign-in page. |
| A storefront project | A folder with manifest.json and a build-production script that writes to dist/. The Storefront project has both. |
| GitHub CLI (optional) | Only needed for the New action, which clones the Storefront project with gh. |
npm install -g selldone-cliOther options: npm install selldone-cli --save-dev or yarn add selldone-cli --dev. The CLI changes often, so
update it before each session:
npm update -g selldone-cliOption A: let the CLI create it. Run selldone in an empty working folder and choose New:
mkdir layouts && cd layouts
selldone
# ? Please select an action: NewThe New action:
- Stops if a
storefrontfolder already exists in the current directory. - Detects your package manager or asks you to pick npm or yarn.
- Checks for the GitHub CLI (
gh). If it is missing, it tries to install it (apt-geton Linux,brewon macOS,wingeton Windows) and asks you to reopen the terminal and run the command again. - Runs
gh auth loginif you are not signed in to GitHub. - Runs
gh repo clone selldone/storefront, enters thestorefrontfolder and runs<package manager> installand<package manager> setup. - Asks for a unique package name (12–64 characters, lowercase letters, digits,
-and.) and a Layout name (8–255 characters), then writes them tomanifest.jsonwith version0.0.1.
Option B: clone it yourself.
git clone https://github.com/selldone/storefront.git
cd storefront
yarn install
yarn setupThen edit manifest.json. See Deployment Workflow for the field rules.
Deploying signs you in automatically, but you can sign in first:
selldone
# ? Please select an action: LoginYour browser opens the Selldone login page. After you approve, the CLI may ask for your six-digit 2FA code and then
prints You are logged in as: <name> (<email>). Details are on the Authentication page.
From the project root (the folder that contains manifest.json):
selldone deployThe CLI validates the manifest, checks the version with Selldone, asks you to confirm by typing yes, runs
build-production, zips dist/ into dist.zip and uploads it.

When you see DONE!, open the printed link (https://selldone.com/developer/layouts/<layout_id>) or go to the
Layouts dashboard to manage the new version.
- Make your changes.
- Increase
versioninmanifest.json(for example0.0.1to0.0.2). Every deployment needs a new version. - Run
selldone deployagain.
- Commands: every command and menu action.
- Packaging Layouts: make sure your build matches the Layout contract.
- FAQ: fixes for common errors.
- Storefront wiki: build and customize the storefront itself.