Skip to content

CLI Reference

Complete reference documentation for the Renku command-line interface.

These options apply to all commands:

OptionDescription
--help, -hShow help for any command
--version, -vShow CLI version

Initialize a new Renku workspace and storage configuration.

Usage:

Terminal window
renku init --root-folder=/path/to/storage
renku init --root=/path/to/storage # Short form

Options:

OptionRequiredDescription
--root-folder, --rootYesStorage root directory for builds and blueprints

Creates:

  • ~/.config/renku/cli-config.json - Storage configuration (fixed location)
  • {rootFolder}/builds/ - Directory for movie outputs
  • {rootFolder}/catalog/blueprints/ - Bundled blueprint templates

Example:

Terminal window
renku init --root-folder=/Users/alice/renku-projects

Create a new movie or continue an existing one.

Usage (new movie):

Terminal window
renku generate [<inquiry-prompt>] \
--inputs=<path> \
--blueprint=<path> \
[--dry-run] \
[--non-interactive] \
[--up-to-layer=<n>]

Usage (continue existing):

Terminal window
renku generate --movie-id=<id> [--inputs=<path>] [options]
renku generate --last [options]

Options:

OptionDescription
--inputs, --inPath to inputs YAML file (required for new movies)
--blueprint, --bpPath to blueprint YAML file (required for new movies)
--movie-id, --idContinue a specific movie by ID
--lastContinue the most recent movie
--dry-runExecute without calling providers (mock run)
--non-interactiveSkip confirmation prompts
--up-to-layer, --upStop after specified layer (live runs only)

Behavior:

For new movies:

  1. Validates inputs and blueprint
  2. Generates a new movie ID
  3. Creates builds/movie-{id}/ directory
  4. Executes the workflow

For continuing movies:

  1. Loads existing manifest
  2. Detects changed inputs (dirty tracking)
  3. Regenerates only affected artifacts
  4. Updates the friendly view

Examples:

Terminal window
# New movie with inputs file
renku generate --inputs=./my-inputs.yaml --blueprint=./audio-only.yaml
# New movie with inline prompt
renku generate "Explain black holes" --inputs=./inputs.yaml --blueprint=./audio.yaml
# Continue specific movie
renku generate --movie-id=movie-a1b2c3d4 --inputs=./updated-inputs.yaml
# Continue most recent movie
renku generate --last
# Dry run to validate
renku generate --inputs=./inputs.yaml --blueprint=./blueprint.yaml --dry-run
# Generate up to layer 1 only
renku generate --inputs=./inputs.yaml --blueprint=./blueprint.yaml --up-to-layer=1

Remove the friendly view and build artifacts for a movie.

Usage:

Terminal window
renku clean --movie-id=<id>

Options:

OptionRequiredDescription
--movie-id, --idYesMovie ID to clean

Example:

Terminal window
renku clean --movie-id=movie-a1b2c3d4

Export a generated movie to MP4 video format.

Usage:

Terminal window
renku export --movie-id=<id> [options]
renku export --last [options]

Options:

OptionDefaultDescription
--movie-id, --id-Movie ID to export
--last-Export the most recent movie
--width1920Video width in pixels
--height1080Video height in pixels
--fps30Frames per second

Requirements:

  • Blueprint must include a TimelineComposer producer
  • Movie must have a Timeline artifact

Output:

  • builds/{movieId}/FinalVideo.mp4
  • movies/{movieId}/FinalVideo.mp4 (symlink)

Examples:

Terminal window
# Export with defaults (1920x1080 @ 30fps)
renku export --movie-id=movie-a1b2c3d4
# Export most recent movie
renku export --last
# Export with custom resolution
renku export --last --width=3840 --height=2160 --fps=24

List available models for producers in a blueprint.

Usage:

Terminal window
renku producers:list --blueprint=<path>

Options:

OptionRequiredDescription
--blueprint, --bpYesPath to blueprint YAML file

Output:

  • Lists all producers with their available models
  • Shows pricing information where available
  • Warns about missing API tokens

Example:

Terminal window
renku producers:list --blueprint=./video-only.yaml

Output:

Producer model configurations:
VideoProducer (4 video models)
Provider Model Price
replicate bytedance/seedance-1-pro-fast 480p: $0.015/s
replicate google/veo-3.1-fast $0.10/s
fal-ai veo3-1 -
AudioProducer (2 audio models)
Provider Model Price
replicate minimax/speech-2.6-hd $0.0001/token
⚠️ Missing API tokens:
- fal-ai: FAL_KEY not set

List all available blueprint files.

Usage:

Terminal window
renku blueprints:list

Output:

  • Scans {root}/catalog/blueprints/
  • Displays all .yaml files with metadata

Example output:

Available Blueprints:
1. audio-only.yaml
- Audio-Only Narration
- Generates script and audio narration
2. video-only.yaml
- Video-Only Generation
- Generates script and video clips
3. image-to-video.yaml
- Image-to-Video Transitions
- Creates videos from image sequences

Show detailed information about a blueprint.

Usage:

Terminal window
renku blueprints:describe <path-to-blueprint.yaml>

Output:

  • Blueprint metadata (name, description, version, author)
  • Required and optional inputs
  • Artifacts produced
  • Loops defined
  • Producers used

Example:

Terminal window
renku blueprints:describe ./catalog/blueprints/video-only/video-only.yaml

Validate blueprint structure and references.

Usage:

Terminal window
renku blueprints:validate <path-to-blueprint.yaml>

Validates:

  • YAML syntax
  • Required fields
  • Module/producer references
  • Connection validity
  • Loop definitions

Example:

Terminal window
renku blueprints:validate ./my-blueprint.yaml

Open the viewer for a movie.

Usage:

Terminal window
renku viewer:view --movie-id=<id>
renku viewer:view --last

Options:

OptionDescription
--movie-id, --idMovie ID to view
--lastView the most recent movie
--viewerHostOverride viewer host (optional)
--viewerPortOverride viewer port (optional)

Behavior:

  • Starts the viewer server if not running
  • Opens the movie page in your browser

Examples:

Terminal window
renku viewer:view --movie-id=movie-a1b2c3d4
renku viewer:view --last

Start the viewer server in the foreground.

Usage:

Terminal window
renku viewer:start

Stop the background viewer server.

Usage:

Terminal window
renku viewer:stop

Renku reads credentials from environment variables or .env files:

Terminal window
# OpenAI (required for script generation)
OPENAI_API_KEY=sk-...
# Replicate (required for most media generation)
REPLICATE_API_TOKEN=r8_...
# Optional providers
FAL_KEY=...
ELEVENLABS_API_KEY=...

The CLI checks for .env files in:

  1. Current working directory
  2. CLI installation directory

OpenAI:

  • Used for script generation and prompt creation
  • Requires gpt-4o or similar model access

Replicate:

  • Used for video, audio, and image generation
  • Supports many model variants
  • Pay-per-use pricing

fal.ai:

  • Alternative provider for video/image models
  • Some unique model offerings

Renku (built-in):

  • OrderedTimeline - Timeline composition
  • No API key required

Fixed location for CLI configuration:

~/.config/renku/cli-config.json

Contents:

{
"storage": {
"root": "/path/to/workspace",
"basePath": "builds"
}
}
{workspace}/
├── builds/
│ └── movie-{id}/
│ ├── blobs/ # Content-addressed blob storage
│ │ └── {hash-prefix}/ # Files stored by hash
│ ├── events/
│ │ ├── inputs.log # Input events (JSONL)
│ │ └── artefacts.log # Artifact events (JSONL)
│ ├── manifests/
│ │ └── {revision}.json # Artifact metadata
│ ├── runs/
│ │ └── {rev}-plan.json # Execution plan
│ └── current.json # Pointer to current manifest
├── catalog/
│ └── blueprints/
│ └── *.yaml # Blueprint files
└── movies/
└── movie-{id}/ # Friendly view (symlinks)
└── *.mp3, *.mp4, etc.

Movie IDs are 8-character prefixes of UUIDs:

  • Generated: a1b2c3d4-5678-9abc-def0-123456789abc
  • Stored as: movie-a1b2c3d4

Missing API Credentials:

Error: OPENAI_API_KEY not found

Solution: Export the environment variable or add to .env file.

Invalid Blueprint Path:

Error: Blueprint file not found: /path/to/blueprint.yaml

Solution: Use absolute path or path relative to current directory.

Missing Required Input:

Error: Required input 'InquiryPrompt' not found in inputs.yaml

Solution: Add all required inputs from the blueprint to your inputs file.

Module Reference Error:

Error: Module not found: ./modules/missing-module.yaml

Solution: Check that module paths are relative to the blueprint file location.

Provider Configuration Error:

Error: Invalid sdkMapping for Replicate producer

Solution: Ensure all required fields are mapped in the producer’s sdkMapping.

Enable verbose logging:

Terminal window
DEBUG=renku:* renku generate --inputs=./inputs.yaml --blueprint=./blueprint.yaml
Terminal window
# Validate blueprint structure
renku blueprints:validate ./my-blueprint.yaml
# Check available models and missing tokens
renku producers:list --blueprint=./my-blueprint.yaml
# Test without API calls
renku generate --inputs=./inputs.yaml --blueprint=./blueprint.yaml --dry-run

CategoryExtensions
Blueprints.yaml
Inputs.yaml
Prompts.md, .txt
Artifacts.txt, .json, .png, .jpg, .mp3, .wav, .mp4
SettingDefault
Config path~/.config/renku/
Storage basebuilds/
Environmentlocal
Export width1920
Export height1080
Export FPS30