Skip to content

The manablox command

manablox is the command line tool that creates, updates and starts your CMS. This page lists every command and every option. For a guided first run, start with Create your CMS instead.

There are two ways, depending on whether you already have a project:

  • To create something new, run it straight from npm without installing it: pnpm dlx @manablox/cli create my-cms or pnpm dlx @manablox/cli frontend my-site (npx @manablox/cli ... works the same).
  • create lets you pick features: designed websites, AI assistance, workflows and webhooks, each a plugin. Nothing is picked unless you pick it. When a picked one is not installed next to the command, create downloads it (with npm, into ~/.cache/manablox/plugins/). Without network access it stops and shows the command that brings the plugin along, for example pnpm dlx --package @manablox/cli --package @manablox/plugin-website manablox create my-cms. A feature you do not pick is never downloaded.
  • Inside a project made by manablox create, the command is already installed. Use the scripts in package.json (pnpm dev, pnpm migrate) or pnpm exec manablox <command> for everything else.

Run the commands in your project folder: that is where manablox looks for the config file and .env.

CommandWhat it does
manablox create [dir]Creates a new CMS project in a folder
manablox plugin ...Lists, adds, removes, switches on and off the features of a project
manablox frontend [dir]Creates a starter website for a space
manablox startStarts the CMS
manablox migrateBrings the database up to date
manablox backup <file>Copies a SQLite database into a file while the CMS runs
manablox migrate-db --to <url>Moves a SQLite database into a Postgres database
manablox syncWrites the workflows, webhooks, credentials and templates declared in code into the database
manablox user createCreates an account, for example the first administrator
manablox space createCreates a space, with starter content and a designed website if you like
manablox website ...Publishes designs and manages site domains (the website plugin)
manablox push-keysPrints a key pair for push notifications
manablox docs generate --out <dir>Writes reference pages about your CMS and its plugins

Plugins can add their own options to space create and create, and their own commands. manablox --help lists them, grouped per plugin. The website plugin, if you pick designed websites, is the one you meet first.

  • An option with a value can be written as --port 3000 or --port=3000.
  • A yes or no option has two forms: --install and --no-install.
  • An option the command does not know stops it with manablox: unknown option '--xyz'; see manablox --help. A typo never goes unnoticed.
  • -h or --help prints the built-in help text for all commands.
  • manablox without a command also prints the help text, but ends with an error code.

start, migrate, backup, migrate-db, sync, user, space, docs and plugin commands such as website read your configuration. They look for it like this:

  1. First they load the file .env from the folder you run the command in, if it exists. A variable that is already set in your terminal wins over the value in .env.
  2. Then they load the config file: the one given with --config <file> (relative to the current folder), or else the first of manablox.config.ts, manablox.config.mts, manablox.config.js or manablox.config.mjs in the current folder.

The config file must export its configuration as the default export (export default defineConfig({ ... })); a named export called config works too.

If no config file is found, you see no manablox.config.ts in <folder>; create one or pass --config <file>, or config file not found: <path> when the file given with --config does not exist. Both usually mean you are not in your project folder.

create, frontend and push-keys read neither file.

Starts the CMS and keeps running until you stop it with Ctrl+C.

Terminal window
pnpm exec manablox start
pnpm exec manablox start --watch
pnpm exec manablox start --config manablox.public.config.ts

In a project made by manablox create, the scripts do this for you: pnpm dev runs manablox start --watch, pnpm start runs manablox start, and pnpm dev:public and pnpm start:public do the same with --config manablox.public.config.ts for the public API.

OptionDefaultMeaning
--config <file>manablox.config.tsThe config file to load
--watchoffRestart whenever the config file or any file it imports changes (for example content-model.ts or your plugins)
--mode <mode>from the config, else managementmanagement runs the admin and the management API, public runs the read-only public API, website (from the website plugin) shows the spaces designed in the admin as websites. Anything else stops with an error
--port <port>from the configThe port to listen on
--host <host>from the configThe network address to listen on, for example 0.0.0.0 for all

When the CMS is ready, the log shows manablox listening (or manablox public api listening) with its address. If the config is not valid, it prints manablox: the configuration is invalid followed by one line per problem, and stops.

Creates the database tables, or brings them up to date after an update of Manablox. Run it once for a new database and after every update. It is safe to run it again: it only does what is missing.

Terminal window
pnpm migrate
OptionDefaultMeaning
--config <file>manablox.config.tsThe config file whose database address is used

When it is done, it prints manablox: migrations applied. If the config has no database address, it stops with manablox: database.url is not set in the config.

In a docker project, the migrate service does this automatically before the CMS starts. To run it by hand there: docker compose run --rm migrate.

Writes a consistent copy of the database into a new file, while the CMS keeps running. It works for SQLite (a database that is a single file, see The database) only; for Postgres it stops with an error, use pg_dump there. It never overwrites a file: if the file exists, it stops. Missing folders are created.

Terminal window
pnpm exec manablox backup backups/2026-01-31.db
OptionDefaultMeaning
--config <file>manablox.config.tsThe config file that holds the database address

When it is done, it prints manablox: database copied to <file>. The messages it can stop with:

MessageCause
backup needs a file to write, e.g. manablox backup backups/cms.dbNo file name was given
<file> exists; backup never overwritesThe file is already there. Pick a new name
backup copies SQLite databases; back Postgres up with pg_dumpThe project uses Postgres

To restore, stop the CMS, replace the database file with the copy (and delete the -wal and -shm files next to it), then start the CMS again. In a docker project, ./scripts/backup.sh and ./scripts/restore.sh do this for you; see Backups.

Moves everything from the SQLite database of your config into a Postgres database, for when the CMS outgrows one file. It creates the tables in Postgres, copies every row, then checks the copy: the number of rows in each table, the activity log’s chain, and a random sample of rows field by field. At the end it prints the settings to change. The database walks through a move.

Terminal window
pnpm exec manablox migrate-db --to postgres://manablox:secret@db.example.com:5432/manablox --force-offline

The CMS must not change anything while the copy runs: stop it and pass --force-offline, or set the whole installation read-only through the control API first, the way a hosting provider does (see Messages, read-only and suspended). While the CMS is in its normal state and --force-offline is missing, the command stops with an error. The Postgres database must be empty.

OptionDefaultMeaning
--to <url>none, requiredThe Postgres database to fill
--replaceoffDelete everything in the Postgres database first, when it is not empty
--force-offlineoffSkip the read-only check, because you stopped the CMS yourself
--app-role <role>the accounts that had rights beforeThe database account the CMS will use, when --to is the owner account; it gets the same rights migrate gives it
--config <file>manablox.config.tsThe config file that holds the SQLite address

If the copy fails halfway, Postgres keeps the empty tables and you can run the command again. If the check finds a difference, the command lists it and ends with code 2. The SQLite file is never changed.

Your config and plugins can declare workflows, webhook endpoints, credential slots and content templates in code (see Workflows and webhooks in code). sync writes them into every space they target, so they appear in the admin.

Terminal window
pnpm exec manablox sync --dry-run
pnpm exec manablox sync
pnpm exec manablox sync --space blog
OptionDefaultMeaning
--config <file>manablox.config.tsThe config file to load
--space <name>all spacesOnly this space, by its technical name. An unknown name stops with no space with the machine name '<name>'
--dry-runoffOnly show what would change, write nothing
--pruneoffDelete what is no longer declared. Without it, such things are only switched off

It prints one line per change, and a count of the unchanged ones at the end. The sign at the start of each line says what happened:

SignMeaning
+created
~updated
-deleted (only with --prune)
oswitched off, or handed back to the editors
!skipped, with the reason after it

If there is nothing to do, it says nothing to do.

Prints a new key pair for web push notifications (the kind a browser shows even when the admin is closed).

Terminal window
pnpm push-keys

It prints four lines, ready to paste into .env: PUSH_VAPID_PUBLIC_KEY, PUSH_VAPID_PRIVATE_KEY and an example PUSH_VAPID_SUBJECT (change the address to yours). Create the keys once and keep them: new keys break the subscriptions browsers already have. It has no options. In a docker project, run it as docker compose run --rm --no-deps api push-keys.

Writes reference pages about your CMS into a folder, as Markdown files: every error message key, every API endpoint, and every hook with what it receives, including those of the plugins in your config. The developer documentation is made this way. It only reads the config and needs no database.

Terminal window
pnpm exec manablox docs generate --out reference-docs

It writes reference/errors.md, reference/http-api.md and extending/hooks.md into the folder; files already there are replaced.

OptionDefaultMeaning
--out <dir>none, requiredThe folder to write into
--config <file>manablox.config.tsThe config whose plugins the pages list

Creates an account that signs in to the admin with its email and password. Run it after the database is up to date (pnpm migrate). manablox create runs it for you when you let it create the administrator.

Terminal window
pnpm exec manablox user create --email you@example.com --name "Your Name"
MANABLOX_USER_PASSWORD='a long secret password' pnpm exec manablox user create --email ci@example.com

In a docker project, run it in the migrate container: docker compose run --rm migrate user create --email you@example.com.

The first account is always a superadmin: it may do everything, in every space, and it becomes the owner of every space that exists already. Once it exists, the admin shows its sign-in page instead of the setup assistant, and nobody can sign up there any more. Later accounts are created here or under Settings > Users.

The password is not an option, so it never lands in your shell history. The command reads it from the MANABLOX_USER_PASSWORD environment variable, or asks for it twice in the terminal (“Password” and “Repeat the password”). It needs 12 to 200 characters. If an account with the email exists already, the command changes nothing, says so and still succeeds.

OptionDefaultMeaning
--email <email>requiredThe email to sign in with. Stored in lowercase
--name <name>AdministratorThe name shown in the admin
--role <role>superadminsuperadmin or editor. The first account is a superadmin either way
--config <file>see aboveThe config file to read
MessageCause
no password; set MANABLOX_USER_PASSWORD or run this in a terminal to be askedNo environment variable and no terminal to ask in, for example in a script
the password needs 12 to 200 charactersThe password is too short or too long

Creates a space the same way the admin does, in the database of your project. Run it after the database is up to date (pnpm migrate). manablox create runs it for you when you let it create a first space.

Terminal window
pnpm exec manablox space create --name "My site"
pnpm exec manablox space create --name "Acme Blog" --template blog --website designed --theme editorial --design journal
pnpm exec manablox space create --name Docs --locales en,de --url https://docs.example.com

In a docker project, run it in the migrate container: docker compose run --rm migrate space create --name "My site".

With --owner, that account owns the space. Without it, the space has no owner yet, and the first account you create becomes the owner of every space. If a space with the same technical name exists already, the command changes nothing, says so and still succeeds, so a setup script can run it twice.

OptionDefaultMeaning
--name <name>requiredThe name of the space, 1 to 200 characters
--machine-name <name>made from the nameThe technical name: a lowercase letter first, then letters, digits, - or _. Acme Blog becomes acme-blog
--url <url>noneThe address of the website. Without it the space has no frontend, for example one that only holds data for workflows and webhooks. See A space without a website
--locales <list>enThe languages, comma separated, for example en,de. The first one is the default language
--template <id>noneFill the space as a website type: business (company website with services, a team, testimonials, questions and a contact form), landing (product or landing page with features, numbers, pricing and questions), portfolio (projects, a project grid, a gallery and a contact form), blog (posts, pages and a blogroll), basic (Page and Article types with a Teaser block) or custom (the sections from --blocks). Every type adds published example pages and a main menu; see Spaces
--blocks <list>hero,text,media-text,gallery,quote,call-to-actionThe sections of the custom type, comma separated, and implies it: hero, text, media-text, image, gallery, quote, features, stats, faq, pricing, testimonials, team, contact, call-to-action. The site designs have a design for each
--starter / --no-starter--no-starterThe same as --template basic, or an empty space
--plan <file>noneA JSON file with content types to add after the template: { "types": [...] }, with types that reference each other by name, the way the admin’s AI designer proposes them. The file is checked first; if a type cannot be created, no space is made
--owner <email>noneThe account that owns the space. An unknown email stops with no account with the email ...
--plugin-data <id>=<json>noneData for a plugin that takes part in creating spaces, for example --plugin-data 'hello={"greeting":"Hi"}'. Give it once per plugin. It cannot be combined with that plugin’s own options, such as --website designed
--config <file>see aboveThe config file to read

The website plugin adds these options:

OptionDefaultMeaning
--website <kind>externaldesigned: apply the theme from --theme, switch the space to a designed site and use the host of --url as its domain (see A website without code). external: you build the website yourself on the public API
--theme <id>neutralWith --website designed. Professional: neutral, corporate, minimal, practice. Creative: bold, studio, playful, noir. Personal: editorial, journal, blossom, terminal
--design <id>the theme group’s firstWith --website designed: a complete site design (layout, menus, sections and page layouts), published at once. Any design works with any theme. Professional: atlas, harbor, ledger, summit. Creative: spotlight, gallery, poster, stage. Personal: journal, sunny, readme, postcard. none keeps only the theme

If the host of --url belongs to another space already, the space is still created and the message tells you to add a domain under Settings, API hosts. --website designed needs the website plugin in the config, as in every project made with manablox create.

Writes a complete, runnable CMS project into a new folder: config files, a .env with freshly generated secrets, and a Docker Compose file. See Create your CMS for a walk-through and A tour of your project for the files it writes.

Terminal window
pnpm dlx @manablox/cli create my-cms
pnpm dlx @manablox/cli create my-cms --yes
pnpm dlx @manablox/cli create my-cms --preset docker --proxy caddy --admin-domain cms.example.com --public-domain content.example.com --acme-email you@example.com

Every option you do not give is asked in the terminal. With --yes, or when there is no terminal (for example in a script), nothing is asked and the defaults are used.

They come in this order. Questions that do not apply to your earlier answers are left out.

QuestionAsked whenDefault
Where should the instance be created?No folder was givenmy-cms
Project nameAlwaysThe folder name
Which database?No --database givenPostgres
How will this instance run?No --preset or --proxy given, or --preset docker without --proxyLocal development (Docker behind Caddy with --preset docker)
Add a public delivery instance?AlwaysYes
Which features does this instance get?No --features given, and not every feature named with --website, --no-ai and the likeNone (only the features you name with a switch are left out of the list or picked in it)
Domain of the admin and management APIDocker with Caddy or nginxcms.example.com
Domain of the public delivery APIDocker with Caddy or nginx, with the public APIcontent.example.com
Email for TLS certificate noticesDocker with Caddyops@example.com
Port of the admin and management APILocal, or Docker with ports published3000
Port of the public delivery APISame, with the public API3100
Port to publish Postgres onLocal, with Postgres5432
Port to publish Valkey onLocal6379
Where do uploads live?AlwaysOn disk
How does this instance send mail?AlwaysMailpit for local, No mail for Docker
Create the administrator account now?No --admin, --no-admin, --admin-email or --admin-name givenYes
Email of the administratorCreating the administratoradmin@example.com
Name of the administratorCreating the administratorAdministrator
Create a first space?No --space, --no-space or other --space-... option givenYes
Name of the first spaceCreating a spaceMy site
Port of the site processWith designed websites, local or Docker with ports published3200
How is its website built?Creating a space, with designed websitesDesigned site
Which theme does the site start with?A designed siteNeutral
Which design does the site start with?A designed siteThe theme group’s first
Address of the websiteCreating a spaceThe site process (http://localhost:3200), https://www.example.com behind Caddy or nginx, or http://localhost:3005 for your own frontend. Answer none for a space without a website
What does the space start with?Creating a spacePreconfigured (or Empty space)
What kind of website is it?A preconfigured spaceBasic setup (or Company website, Product or landing page, Portfolio, Personal blog, Pick your blocks)
Which sections are the pages built from?Pick your blocksHero, text, media and text, gallery, quote and call to action
Install dependencies now with pnpm?AlwaysYes
Initialise a git repository?AlwaysYes
Start Postgres and Valkey, migrate and run pnpm dev once everything is installed? (local; with SQLite it names only Valkey) or Build and start the Docker stack once everything is installed? (docker)When installingNo
Password of the administrator, then Repeat the passwordCreating the administrator and starting, without MANABLOX_USER_PASSWORDnone

The answers to “Which database?” are Postgres and SQLite. The answers to “How will this instance run?” are Local development, Docker behind Caddy, Docker behind nginx, and Docker, ports published.

“Which features does this instance get?” is a list you tick with the space bar and confirm with Enter: Designed websites, AI assistance, Workflows and Webhooks. Picking none gives the core CMS: spaces, content types, content, media, users and roles, environments, publishing, approvals, notifications and the delivery APIs. Some features work together when both are picked (the hint says which): AI adds a step to workflows and designs to websites, webhooks start workflows. You can add or remove any of them later with manablox plugin.

OptionDefaultMeaning
[dir] or --dir <dir>asked, else my-cmsThe folder to create. It must be empty or not exist yet
--name <name>the folder nameThe name in package.json and of the Docker Compose project. Lowercase letters, digits, -, _ and .
--preset <preset>locallocal: Docker runs only Postgres and Valkey (with SQLite only Valkey), the CMS runs on your computer. docker: every part in containers, for a server
--proxy <proxy>caddyDocker only; giving it without --preset picks docker. caddy: a web server with automatic HTTPS certificates. nginx: a web server with certificates you provide. none: no web server, the ports are published for one you run yourself
--database <database>postgrespostgres: a Postgres server, run by Docker in both presets; the public API connects with its own read-only database user. sqlite: the whole database is one file (data/manablox.db, or the database volume in the docker preset), so no database server runs at all. SQLite allows one writer, so run only one management instance. The backup scripts use manablox backup
--public / --no-public--publicAdd the separate, read-only public API for your websites, or leave it out
--features <list>asked, else noneThe features, exactly these, comma separated: website, ai, workflows, webhooks, or none for the core alone. Cannot be combined with the switches below
--admin-domain <host>cms.example.comCaddy and nginx: the domain of the admin. A prefix http:// means no HTTPS, for a trial
--public-domain <host>content.example.comCaddy and nginx: the domain of the public API, same rules
--acme-email <email>ops@example.comCaddy: where certificate notices are sent
--admin-port <port>3000Without a web server: the port of the admin and the management API
--public-port <port>3100Without a web server: the port of the public API
--postgres-port <port>5432Local with Postgres: the port Postgres is reachable on from your computer
--valkey-port <port>6379Local: the port Valkey is reachable on
--storage <driver>locallocal: uploads are saved on disk. s3: in an S3-compatible bucket, whose keys go into .env
--mail <driver>mailpit (local), none (docker)smtp, mailpit, gmail, microsoft, resend, sendgrid, postmark, mailgun or none. See Sending email
--admin / --no-admin--adminCreate the first account, a superadmin, which then owns the first space. With --start it is created as soon as the database is ready. Otherwise “Next steps” shows the manablox user create command, which asks for the password
--admin-email <email>admin@example.comThe email of the administrator. Giving --admin-email or --admin-name means --admin
--admin-name <name>AdministratorThe name of the administrator. With --start the password is asked in the terminal or read from MANABLOX_USER_PASSWORD. With --yes and neither, a random password is generated and shown once, under “Administrator”, at the end. The password is never written to a file
--space / --no-space--spaceCreate a first space. With --start it is created as soon as the database is ready. Otherwise “Next steps” shows the manablox space create command to run after pnpm migrate (docker: after docker compose up -d)
--space-name <name>My siteThe name of the first space. Giving any --space-... option means --space. With --admin the administrator owns it
--space-url <url>see the question aboveThe address of the website. A designed site answers on its host
--no-space-urloffCreates the first space without a website, for data only
--space-locales <list>enThe languages, comma separated. The first one is the default. Never asked
--space-template <id>basicThe first space’s website type: business, landing, portfolio, blog, basic or custom
--space-blocks <list>noneThe sections of the custom type, as --blocks of manablox space create
--space-starter / --no-space-starter--space-starterThe basic template, or an empty space
--manablox-version <range>the version of this commandThe version range of the @manablox/* packages. Never asked
--install / --no-install--installRun pnpm install after writing the files
--git / --no-git--gitRun git init after writing the files
--start / --no-start--no-startStart right away. Local: starts Postgres (not with SQLite) and Valkey, migrates, creates the administrator and the first space and runs pnpm dev. Docker: builds the image, starts every container and creates the administrator and the first space
--forceoffWrite into a folder that is not empty
--yesoffAsk nothing and use the defaults for everything not given

Each feature has a switch of its own, and the website plugin also has options. A feature’s options only work when the feature is picked.

The website plugin adds these:

OptionDefaultMeaning
--website / --no-websitenot pickedInclude the website plugin: the designer in the admin and the site process that shows the spaces you design as websites (see A website without code)
--site-port <port>3200Without a web server, and in a local project: the port of the site process
--space-website <kind>designeddesigned: a website you design in the admin. external: your own website on the public API
--space-theme <id>neutralWith a designed site: any --theme id of manablox space create
--space-design <id>the theme group’s firstWith a designed site: any --design id of manablox space create, or none

The AI plugin adds this:

OptionDefaultMeaning
--ai / --no-ainot pickedInclude the AI plugin: the AI settings, the magic wands and the designing from a description (see AI): the package, its line in manablox.plugins.ts and AI_ALLOWED_HOSTS in .env

The workflows plugin adds this:

OptionDefaultMeaning
--workflows / --no-workflowsnot pickedInclude the workflows plugin: the Workflows section (see Workflows)

The webhooks plugin adds this:

OptionDefaultMeaning
--webhooks / --no-webhooksnot pickedInclude the webhooks plugin: the Webhooks section, and with workflows, workflows started by incoming webhooks (see Webhooks)

Values are checked before anything is written. In the questions, a wrong answer shows the problem and asks again; on the command line it stops the command.

MessageCause
--name '...' is not a valid package nameUppercase letters, spaces or other characters in the name
--preset must be one of local, docker, not '...'A value that is not in the list (the same for --proxy, --database, --storage and --mail)
--admin-port '...' is not a portA port must be a whole number from 1 to 65535
--admin-domain '...' is not a host nameA domain like cms.example.com, optionally with http:// in front
--acme-email '...' is not an email addressNot an email address
--start needs the dependencies installed; drop --no-install--start and --no-install together
--space-theme belongs to the website plugin, which is left out; pick it with --websiteA website option (here --space-theme) without the website picked. With --no-website or --features the message says to drop --no-website or add website to --features
--features: 'shop' is not one of website, ai, workflows, webhooks (or none for the core alone)An unknown feature in --features
--features and --no-website both pick the features; use one--features together with a feature switch
the password needs 12 to 200 charactersMANABLOX_USER_PASSWORD holds a password that is too short or too long
--space-url '...' is not a URLThe address must start with http:// or https://
... is not empty; pass --force to write into it anywayThe folder already has files in it

If pnpm install, git init or a start step fails, the files stay written and the command tells you what to run yourself. At the end it prints “Next steps” with the commands for your setup. With --start on a local project, it hands over to pnpm dev in the same terminal.

Adds, removes, switches on and off the features of an existing project. Run it in the project folder.

Terminal window
pnpm exec manablox plugin list
pnpm exec manablox plugin install ai
pnpm exec manablox plugin install website workflows
pnpm exec manablox plugin uninstall webhooks
pnpm exec manablox plugin disable ai --space blog
CommandWhat it does
plugin listShows every feature you can add, the plugins the project has installed and configured, and, when the database answers, whether their database changes are applied and whether they are switched on for the whole CMS
plugin install <name>...Adds features: website, ai, workflows, webhooks, or the npm package of another Manablox plugin. It asks the plugin’s own questions (the website asks for the site port), adds the package, writes the plugin’s parts into your project files, installs the packages and updates the database. Adding a feature that is there already changes nothing
plugin uninstall <name>...Removes features again, after asking you to confirm. What the feature stored stays in the database: installing it again brings it all back. A feature another one needs cannot be removed first
plugin enable <name>, plugin disable <name>Switches a feature on or off for the whole CMS, or with --space <name> for one space. The feature stays installed; switched off, it is hidden and does nothing
OptionDefaultMeaning
--yesoffAsk nothing: install takes the defaults, uninstall does not ask to confirm (needed without a terminal)
--install / --no-install--installRun the project’s package manager (pnpm, npm, Yarn or Bun, whichever the project uses)
--migrate / --no-migrate--migrateUpdate the database after installing, when it is reachable. In a docker project the migrate service does it on the next docker compose up
--strictoffStop with an error when a file lacks its place for a part (see below)
--space <name>noneenable, disable: one space, by its technical name
--config <file>manablox.config.tsThe config file

The command changes only the parts it marked: every place a feature can add to has a comment such as # manablox:slot env in the file, and each feature’s part sits between manablox:plugin <name> >>> and <<< comments. Edit around them as you like. Where one of these comments is missing, the command writes nothing into that file and shows the part and the file it belongs in, so you can add it yourself.

After installing or removing a feature, restart the CMS (pnpm dev restarts on its own). In a docker project run ./scripts/lockfile.sh and docker compose up -d --build.

Commands of the website plugin, for a project whose config includes it (made with designed websites, or after manablox plugin install website). They work on the database of your config, like the admin.

Terminal window
pnpm exec manablox website publish-all --space blog
pnpm exec manablox website domains list --space blog
pnpm exec manablox website domains add www.example.com --space blog --primary
pnpm exec manablox website domains verify www.example.com --space blog
pnpm exec manablox website domains remove www.example.com --space blog
CommandWhat it does
publish-allPublishes every design draft of the space at once, like Publish all in the admin
domains listLists the space’s site domains, which one is primary and whether each is verified
domains add <hostname>Adds a site domain and prints the DNS TXT record that verifies it
domains verify <hostname>Checks the domain’s DNS records now. Ends with code 2 while it is not verified
domains remove <hostname>Removes the site domain
OptionDefaultMeaning
--space <name>the only spaceThe space, by technical name or id. Needed when there are several
--primary / --no-primary--no-primarydomains add: make it the primary domain
--config <file>see aboveThe config file to read

pnpm exec manablox website --help prints the same list.

Writes a starter website that reads your content from the public API: it finds pages by their web address, draws blocks with one component each, and has a /preview page for the admin’s visual editor. See The starter website for what you get.

Terminal window
pnpm dlx @manablox/cli frontend my-site
pnpm dlx @manablox/cli frontend my-site --framework astro --yes
pnpm dlx @manablox/cli frontend my-site --url https://content.example.com --editor-origin https://cms.example.com

As with create, missing options are asked, and --yes or a missing terminal uses the defaults.

QuestionAsked whenDefault
What should the frontend be built with?No --framework givenAstro
Where should the frontend be created?No folder givenmy-site
Project nameAlwaysThe folder name
URL of the delivery APIAlwayshttp://localhost:3100
The admin’s origin, for the visual editor’s preview channelAlwayshttp://localhost:3000
Write components for a space’s content and block types?No --model or related option givenYes, from the management API
URL of the management API, API keyComponents from the management APIhttp://localhost:3000
Which space should the components be written for?The key can read several spacesthe first
Which types should get a component?Components are writtenAll types
Space idAlwaysempty, or the space picked above
Port of the dev serverAlwaysdepends on the framework
Install dependencies now with pnpm?AlwaysYes
Initialise a git repository?AlwaysYes

If the content model cannot be read (wrong address, wrong key), you can try again or go on without it; you then get an example “teaser” block instead. For the “delivery API” answer, the public API must be running; for the management API you need an API key from Settings > API keys in the admin (see API keys).

OptionDefaultMeaning
[dir] or --dir <dir>asked, else my-siteThe folder to create
--framework <name>astroplain (Vite and TypeScript, rendered in the browser), astro (Astro, rendered on the server), react-ssr (React, rendered on the server), vue-ssr (Vue, rendered on the server)
--name <name>the folder nameThe name in package.json
--url <url>http://localhost:3100The public API the website reads from
--editor-origin <url>http://localhost:3000The address of the admin. The preview page only accepts messages from there
--space-id <id>emptyLeave empty for the public API, which serves exactly one space
--port <port>3003 plain, 3005 astro, 3006 vue-ssr, 3007 react-ssrThe port of the website’s dev server
--model <source>asked; none with --yes or without a terminalWhere to read your content types from: management (with an API key), delivery (the public API at --url, no key) or none (just the example block)
--api-url <url>http://localhost:3000The management API, for --model management
--api-key <key>noneAn API key that may read the space. Implies --model management; required for it with --yes or without a terminal
--space <name>the only oneThe space by technical name or id. Needed when the key can read several spaces
--types <list>allThe content and block types to write components for, as all or a comma-separated list like page,teaser
--manablox-version <range>the version of this commandThe version range of the @manablox/* packages
--install / --no-install--installRun pnpm install afterwards
--git / --no-git--gitRun git init afterwards
--forceoffWrite into a folder that is not empty
--yesoffAsk nothing and use the defaults

URLs must start with http:// or https://; a slash at the end is removed. Giving --api-key, --api-url or --space without --model means management; giving only --types means delivery.

The addresses end up in the website’s .env (MANABLOX_URL, MANABLOX_ADMIN_ORIGIN, MANABLOX_SPACE_ID, with a VITE_ prefix for plain), where you can change them later.

When a command ends, it reports a number to the terminal or script that ran it. 0 means success.

CodeMeaning
0Success, or the help text was asked for
1Something went wrong: an unknown command or option, a wrong value, an invalid config, or an error while running. The message starts with manablox:
2sync --dry-run: there is something to change. migrate-db: the check found a difference in the copy. website domains verify: the domain is not verified yet. A script can stop on this
130create or frontend was cancelled with Ctrl+C during the questions. It prints manablox: cancelled, nothing was written

create --start on a local project ends with the exit code of pnpm dev, which it runs at the end.