# baz.studio — complete API / CLI reference Generated from the baz CLI v0.8.14. The CLI is the API. --- --- title: "baz.studio API" description: "The baz CLI is the Bazaar API — programmatic motion-graphics video generation from your terminal, scripts, and agents." --- Bazaar turns `brand + skill + context + goal` into rendered motion-graphics videos. There is no separate REST surface to learn: **the `baz` CLI is the API**. Everything the product can do — projects, prompting the autonomous agent, scene-level code edits, media generation, voiceovers, exports — is exposed as a command, with JSON output for programmatic use. ## Install ```bash npm install -g bazaar.it ``` ## Authenticate ```bash baz auth login baz auth status ``` ## Quickstart ```bash # Create a project and generate a video with the autonomous agent baz project create "Product launch teaser" baz prompt "30s launch teaser for our analytics dashboard, dark theme, bold typography" # Check progress and export baz status baz export ``` ## Agent mode Set `BAZ_AGENT=1` to make every command emit compact JSON — built for scripts, CI, and AI agents: ```bash BAZ_AGENT=1 baz scenes list baz prompt --stream-json --events-only "Add a pricing scene" ``` For machine-readable capability discovery, use `baz capabilities --json`. ## Reference The [CLI reference](/docs/cli) documents every command with options, defaults, and examples. It is generated directly from the CLI's own help system, so it always matches the published version. For LLMs and agents: [/llms.txt](/llms.txt) is an index of these docs, and [/llms-full.txt](/llms-full.txt) contains the complete reference in one file. --- --- title: "CLI Reference" description: "Complete reference for the baz CLI v0.8.14. The CLI is the Bazaar API." --- The `baz` CLI is the programmatic interface to Bazaar — everything the agent and Studio can do is exposed as a command. Install it with: ```bash npm install -g bazaar.it ``` This reference is generated from the CLI itself (v0.8.14), so it always matches the published behavior. Set `BAZ_AGENT=1` to get JSON output suited for agents and scripts. ## Global options | Option | Description | | --- | --- | | `-v, --version` | Show version | | `-i, --interactive` | Start interactive REPL mode | | `--json` | Output as JSON | | `--compact` | Compact JSON output (no whitespace, saves tokens) | | `--verbose` | Show detailed output | | `--config ` | Custom config file path | | `--api-url ` | Override API URL | | `--project-id ` | Override active project | | `--no-suggestions` | Suppress next-step suggestions | ## Commands | Command | Description | | --- | --- | | [`baz auth`](/docs/cli/auth) | Manage authentication | | [`baz project`](/docs/cli/project) | Manage projects | | [`baz prompt`](/docs/cli/prompt) | Send a prompt to the autonomous agent | | [`baz scenes`](/docs/cli/scenes) | Manage scenes in active project | | [`baz export`](/docs/cli/export) | Export video from active project | | [`baz media`](/docs/cli/media) | Manage media files in your project | | [`baz logs`](/docs/cli/logs) | Query recent project/runtime logs | | [`baz status`](/docs/cli/status) | Show project overview and timeline | | [`baz review`](/docs/cli/review) | Get current project state for external agent evaluation | | [`baz context`](/docs/cli/context) | Manage project context (goals, requirements, references) | | [`baz capabilities`](/docs/cli/capabilities) | Describe CLI capabilities and protocol support | | [`baz loop`](/docs/cli/loop) | Iterate prompt → review in a basic OODA loop | | [`baz state`](/docs/cli/state) | Get a machine-friendly snapshot of current project state | | [`baz verify`](/docs/cli/verify) | Verify current project against criteria | | [`baz mcp`](/docs/cli/mcp) | Expose MCP-style tool manifest for agent integrations | | [`baz template`](/docs/cli/template) | Browse and apply templates | | [`baz share`](/docs/cli/share) | Create and manage share links for projects | | [`baz model`](/docs/cli/model) | View and configure AI models for generation | | [`baz preview`](/docs/cli/preview) | Render a single frame to PNG — visual feedback for agents | | [`baz balance`](/docs/cli/balance) | Show account balance, spending, and pricing guide | | [`baz blitz`](/docs/cli/blitz) | Manage Blitz setup, queue, and content drops | | [`baz brand`](/docs/cli/brand) | Manage reusable brand profiles | | [`baz calibration`](/docs/cli/calibration) | Create, launch, inspect, and review persisted calibration runs | | [`baz skills`](/docs/cli/skills) | Manage Claude Code / Codex skills for Baz | | [`baz skill`](/docs/cli/skill) | Manage Baz-native reusable skills | | [`baz resource`](/docs/cli/resource) | Compile external resources into Bazaar video context and run them through the existing generator | | [`baz studio`](/docs/cli/studio) | CLI-first Studio workflows for brand evidence, runs, and claim pages | --- --- title: "baz auth" description: "Manage authentication" --- ```bash baz auth [options] [command] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | ## baz auth login Configure API key for authentication ```bash baz auth login [options] [api-key] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | ## baz auth register Create a new account and store an API key ```bash baz auth register [options] ``` | Option | Description | | --- | --- | | `--email ` | Email for the new account | | `--name ` | Optional display name | | `-h, --help` | display help for command | ## baz auth status Show current authentication status ```bash baz auth status [options] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | ## baz auth logout Clear stored credentials ```bash baz auth logout [options] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | --- --- title: "baz project" description: "Manage projects" --- ```bash baz project [options] [command] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | ## baz project create Create a new project ```bash baz project create [options] ``` | Option | Description | | --- | --- | | `--name ` | Project name | | `--description ` | Project description | | `--format ` | Video format: landscape, portrait, square Default: `landscape`. | | `--no-activate` | Don't set as active project | | `-h, --help` | display help for command | ## baz project list List all projects ```bash baz project list [options] ``` | Option | Description | | --- | --- | | `--limit ` | Number of projects to show Default: `20`. | | `--all` | Show all projects (no limit) | | `-h, --help` | display help for command | ## baz project use Set active project ```bash baz project use [options] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | ## baz project current Show active project ```bash baz project current [options] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | ## baz project format Change project format by duplicating to a new project with target format ```bash baz project format [options] ``` | Option | Description | | --- | --- | | `--source ` | Source project ID (defaults to active project) | | `--no-activate` | Don't set duplicated project as active | | `-h, --help` | display help for command | ## baz project duplicate Duplicate a project (optionally changing format) ```bash baz project duplicate [options] [id] ``` | Option | Description | | --- | --- | | `--name ` | Rename the duplicated project | | `--format ` | Target format: landscape, portrait, square | | `--no-activate` | Don't set duplicated project as active | | `-h, --help` | display help for command | ## baz project settings View or change project settings (format, dimensions) ```bash baz project settings [options] ``` | Option | Description | | --- | --- | | `--aspect ` | Set aspect ratio: 16:9, 9:16, 1:1 | | `--format ` | Set format: landscape, portrait, square | | `-h, --help` | display help for command | ## baz project validate Validate project timeline structure ```bash baz project validate [options] ``` | Option | Description | | --- | --- | | `-h, --help` | display help for command | ## baz project delete Delete a project ```bash baz project delete [options] ``` | Option | Description | | --- | --- | | `--force` | Skip confirmation | | `-h, --help` | display help for command | --- --- title: "baz prompt" description: "Send a prompt to the autonomous agent" --- ```bash baz prompt [options] [text] ``` | Option | Description | | --- | --- | | `--mode ` | Generation mode: agent (default), agent-max, multi-scene Default: `agent`. | | `--max` | Shorthand for --mode agent-max | | `--project ` | Alias for global --project-id | | `--file ` | Read prompt from file | | `--image ` | Attach an image file (can be used multiple times) | | `--url ` | Attach a URL for the agent to analyze (can be used multiple times) | | `--no-stream` | Disable streaming output | | `--verbose` | Show agent's full response text | | `--stream-json` | Output events as newline-delimited JSON (for bots like Maya) | | `--events-only` | With --stream-json, only emit structured events (skip text/thinking tokens) | | `--spar` | Spar planning mode: brainstorming only, no composition mutations | | `--plan` | Deprecated alias for --spar | | `--requirements ` | Deterministic requirements to verify against (duration, scenes, format) | | `--save-context` | Save provided URL/image references to reusable project context | | `--context-label