stdout-design_

CLI Reference

Every command and flag in the studio CLI.

Run commands with npx @stdout-design/cli <command> (local install) or studio <command> (global install).

Commands

CommandDescription
studio init [dir]Scaffold a new studio project
studio update [dir]Update an existing project to the latest CLI
studio dev [dir]Start the live preview studio
studio render <template>Render a single template or batch
studio cache statsShow cache statistics
studio cache cleanClear the render cache
studio lintCheck templates for compatibility (not yet implemented)
studio skill installInstall the agent skill for AI coding tools

studio init

Scaffold a new studio project.

studio init [projectDir] [options]

Prop

Type

Skips scaffolding if a studio.config.ts already exists. See Getting Started.

studio update

Update an existing studio project to the latest CLI version adds the CLI dependency if missing and merges default config values into studio.config.ts.

studio update [projectDir] [options]

Prop

Type

studio render

Render a template single, or batch with --data.

studio render <template> [props...] [options]

<template> is the template ID from studio.config.ts. Props are passed as key=value pairs:

studio render bento-feature title="Hello" stat="10k users"

Prop

Type

Examples:

# Single render, all configured presets × locales
studio render stat-card title="50K users"

# Single file, one preset, one locale
studio render stat-card --preset instagram-square --locale en --out-dir out

# Batch from CSV, across two presets and two locales
studio render stat-card --data data/stats.csv --preset instagram-square,x-card --locale en,ar --out-dir out

studio dev

Start the live preview studio (see Live Studio).

studio dev [rootDir] [options]

Prop

Type

--open is accepted but currently a no-op open http://localhost:3030 manually.

-p/--port always wins over any environment variable if you're starting the dev server yourself (not through studio dev) rather than importing startStandaloneServer, it also reads a PORT environment variable when no port argument is given.

studio cache stats

Show cache statistics location, compiled/pixel entry counts, disk usage, and the size limit.

studio cache stats [rootDir] [options]

Prop

Type

studio cache clean

Clear the render cache entirely.

studio cache clean [rootDir] [options]

Prop

Type

See Caching for how the cache works.

studio lint

Check templates for compatibility. Not implemented yet it always exits with code 1 and a message pointing to a future release.

studio skill install

Install the stdout-design agent skill for AI coding agents.

studio skill install [options]

Prop

Type

See AI Agents.

Exit codes

  • 0 success (including a cancelled init).
  • 1 any error, or any failed render in a batch.

On this page