CLI

The splash command line: 10 commands over the MCP server, for scripts and terminals.

Updated

Set up #

The CLI is a thin client of the MCP server. Run it from a checkout of the repository:

export SPLASH_URL=<admin origin>
export SPLASH_MCP_TOKEN=<site token>
yarn splash context

SPLASH_MCP_TOKEN is a site token from Agenti e accessi MCP (Agents & MCP access) in the admin sidebar, under Persone e accessi (see MCP server). Keep it in the environment: never put it in a batch file, a script or a shell argument.

Everyday commands #

yarn splash discover tree.
yarn splash outline <pageId>
yarn splash apply batch.json --dry-run
yarn splash apply batch.json
yarn splash import-markdown <pageId> <nodeId> page.it.md --locale it
yarn splash undo <requestId>

apply reads a libretto.batch file (or - for stdin). An identical retry reuses its requestId; a changed batch needs a new one. Failures exit nonzero and print structured JSON on stderr.

Usage

splash [--url ORIGIN] context | discover [QUERY] | resources URI... | outline PAGE_ID | components | apply FILE|- [--dry-run] | undo REQUEST_ID | status REQUEST_ID | import-markdown PAGE_ID NODE_ID FILE|- [--locale CODE] [--dry-run] | OPERATION [INPUT_JSON] [--dry-run]

Set SPLASH_MCP_TOKEN to a site token from Agents & MCP access (People & access in the admin sidebar); SPLASH_URL selects the app origin.

CommandArguments
context—
discover[QUERY]
resourcesURI...
outlinePAGE_ID
components—
applyFILE|- [--dry-run]
undoREQUEST_ID
statusREQUEST_ID
import-markdownPAGE_ID NODE_ID FILE|- [--locale CODE] [--dry-run]
OPERATION[INPUT_JSON] [--dry-run]

Generated from the operation registry and the MCP tool catalogue (source 42bf970730c291ba).

Something wrong on this page? Write to docs@librettocms.com.

Libretto docs

Colophon. These docs are a Libretto site: 68 pages in two languages, 20 guide pages imported from Markdown and 41 reference pages generated from the operation registry. Set in Softcore, with code in IBM Plex Mono. Its outline:

/ Libretto docs /start Get started /start/request-access Request access /start/workspace Your workspace /start/first-site Your first site /start/invite-a-client Invite a client /start/connect-claude Connect Claude to Libretto /build Build /build/first-page Build a page /build/layers-and-canvas Layers and canvas /build/site-components Site components /design-system Design system /design-system/tokens Colours, space and themes /design-system/components Components and variants /design-system/fonts Typography and fonts /motion Motion /motion/scenes Scenes and recipes /motion/image-sequences Image sequences /motion/reduced-motion Reduced motion /publish Publish /publish/languages Site languages /publish/versions Publish and versions /publish/members-and-forms Members and forms /publish/domains Domains /handover Hand a site to a client /glossary Glossary /agents Agents and API /agents/mcp MCP server /agents/cli CLI /agents/batches Batches /agents/errors Errors and findings /agents/operations Operations /search Search