CLI reference
The snolla command scaffolds a site, runs it locally without a database, inspects and moves
its content, and manages the deployments that serve it.
npm install -g @snolla/cli
snolla --help
Commands that talk to a running installation (pull, push) need a link to it first — see
link. Every command that reads or writes a tree takes --dir and defaults to the
current directory; every command on this page that reports takes --json for machine-readable output.
| Command | What it does |
|---|---|
init |
Scaffold a new site |
dev |
Run the site locally — front end and engine, no database |
gen |
Turn a template into mock data, or mock data into a template |
lint |
Check theme, templates and fixtures for conformance |
link |
Connect a directory to a running installation |
pull / push |
Move content between a directory and that installation |
site |
Export, import or move a whole site between databases |
assets |
Verify the files a site move promises, and find unclaimed ones |
tenant |
create, list, credentials, limits, deprovision — the sites a deployment serves |
node |
status, reconcile — compare and fix how a deployment spreads its sites over nodes |
init
Scaffolds a per-site application.
snolla init my-site --stack tailwind
| Option | Meaning |
|---|---|
--stack <css> |
Theme CSS stack: sass (default, with Bootstrap) or tailwind |
--theme <name> |
Active theme name (default: default) |
--target <target> |
Build target: snolla (default, served by the platform) or static |
--site-id <uuid> |
Site identifier (default: a random UUID) |
--dir <path> |
Target directory (default: ./<site>) |
--force |
Scaffold into a directory that is not empty |
-y, --yes |
Accept the defaults, ask nothing |
dev
Runs the site locally: the front end with hot reload, the engine from fixtures, no database.
snolla dev --open
| Option | Meaning |
|---|---|
--theme <name> |
Pin the active theme |
--port <n> |
Front-end port (default 5173) |
--engine-port <n> |
Engine port (default 5000) |
--dir <path> |
Site directory (default: current) |
--open |
Open the browser |
gen
The two directions between a template definition and fixture rows.
snolla gen mocks pageTemplate --count 5 --out fixtures/pages.json
snolla gen template fixtures/pages.json --kind pageTemplate
gen mocks <template> writes fixture rows from a template definition.
| Option | Meaning |
|---|---|
--dir <path> |
Site directory (default: current) |
--count <n> |
How many rows (default 1) |
--seed <s> |
Seed for a deterministic fill |
--no-faker |
Defaults by type only, no sample values |
--out <path> |
Write to a file instead of standard output |
gen template <fixture> infers a draft template definition from a fixture. The inference is
lossy by design — review and refine the result before using it.
| Option | Meaning |
|---|---|
--dir <path> |
Site directory (default: current) |
--kind <kind> |
Template kind (default pageTemplate) |
lint
Checks the theme, templates and fixtures for conformance, Liquid syntax, integrity and cross-artifact consistency.
snolla lint
| Option | Meaning |
|---|---|
--dir <path> |
Site directory (default: current) |
link
Connects a directory to a running installation: signs in as an administrator and stores the
credential in .snolla/link.json inside that directory. pull and push use it.
snolla link --endpoint http://localhost:4731 --email admin@example.com
| Option | Meaning |
|---|---|
--endpoint <url> |
Base URL of the Admin API, e.g. http://localhost:4731 |
--email <email> |
Administrator email |
--password <password> |
Administrator password (omitted: you are prompted) |
--dir <path> |
Directory to link (default: current) |
pull
Brings a remote site down into the local directory convention.
snolla pull --settings --pages --themes
| Option | Meaning |
|---|---|
--settings |
Site settings into _site.json |
--pages |
Content pages and page templates into fixtures/ |
--themes |
Themes and layouts into themes/ |
--site <id> |
Remote site identifier |
--out <dir> |
Output directory (default: current) |
--dir <path> |
Directory holding .snolla/link.json (default: current) |
push
Sends the local tree up to the linked installation.
snolla push --pages --dry-run
| Option | Meaning |
|---|---|
--settings |
_site.json to the site |
--pages |
fixtures/ pages and templates |
--themes |
themes/ to themes and layouts |
--only <slug> |
Restrict to one entity by its name on disk |
--dry-run |
Log the intended calls, make no network call |
--yes |
Allow pushing to an endpoint that is not localhost |
--dir <path> |
Directory holding .snolla/link.json (default: current) |
site
Moves a site between databases as a typed bundle — never a database dump.
snolla site export --from-dsn "$DSN" --site <site-id> --dir ./bundle
snolla site move --from-dsn "$A" --to-dsn "$B" --site <site-id>
site exportwrites a bundle:--from-dialect,--from-dsn,--site,--dir,--source-mode(sharedorsingle, defaultsingle),--replace,--with-assets,--skip-derived(leave regenerable variants behind),--allow-missingand--allow-orphaned(write the bundle and list the gaps instead of refusing).site importwrites a bundle into a target:--to-dialect,--to-dsn,--dir,--site,--target-mode,--replace,--provision,--with-assets.site moveis export, import and a proof that the site landed: source and target options together, plus--require-site-id,--to-storage-providerand--to-storage-base.
assets
The file half of a site move.
snolla assets check --dir ./bundle
snolla assets orphans --dialect postgres --site my-site
| Command | What it does |
|---|---|
check |
Proves a storage backend holds every object the bundle promises, with the same bytes (--dir) |
orphans |
Counts stored objects that no record names (--dialect, --dsn, --site, --json); nothing is deleted |
tenant and node
Provisioning a site, listing what a deployment serves and reconciling its nodes belong to the
operations side: they act on the deployment's own database, not on a site directory. Both are snolla
commands, documented in full in Sites and nodes on a deployment.
Notes
- Commands that have not landed yet are absent from this page on purpose:
snolla --helplists the current surface, and this page describes only what a reader can run today. - Every write command that can be destructive has a
--dry-run, andpushrefuses a non-localhost endpoint without--yes.