CLI commands

Every salla theme command for a React theme, with its options.

Look here when you need a flag. Every command starts with salla theme; salla theme --help prints the live list.

CommandAliasNeeds loginPurpose
createc, importOnly for your own store or the GitHub stepCreate a theme and start it.
devOnly for your own store (--store) and --editorRun the theme locally.
doctorNoCheck Node, pnpm and git.
previewp, watchYesRun locally and open the theme editor.
publishpubYesPush and submit for review.
listlYesList your themes.
deletedYesDelete one of your themes.

create

salla theme create [-t react] [-n <name>] [-s <store>] [-y]

See Create a theme.

dev

salla theme dev [-p <port>] [-s [store]] [--no-open] [-e]
OptionDefaultMeaning
-p, --port5173First port to try. The next free one is used if busy.
-s, --store [store]the store in .envBind a store. No value: ask.
--no-openopensDo not open the browser.
-e, --editoroffSame as preview.

See Run it locally.

doctor

salla theme doctor

See Prerequisites.

preview

salla theme preview [-s <store>] [-E] [-o] [-b <browser>]

See Theme editor.

publish

salla theme publish

See Publish.

list and delete

salla theme list prints your themes (id, name, status). salla theme delete asks which one to delete. Deleting cannot be undone.

Twig-only commands

salla theme serve and salla theme sync belong to the legacy Twig workflow. In a React theme they stop and point you to salla theme dev, because a React theme serves and reloads itself.

Files the CLI writes

FileByContent
.envcreate, dev, previewVITE_STORE_DOMAIN. Git-ignored.
package.json, twilight.json, server config, README.mdcreateThe theme's new name.
.git/createInitial commit, plus an origin remote if the GitHub step ran.

Environment variables

VariableMeaning
SALLA_THEME_TEMPLATEA local .tgz or folder to create from instead of the published starter.

Next: The Vite plugin

On this page