Skip to Content
RemotionUI

CLI Reference

remotion-ui commands for init, add, doctor, and custom registries.

Commands

CommandDescription
init [name]Scaffold a new Remotion project
init --existingBootstrap remotion-ui.json in an existing Remotion project
add <name...>Install components and dependencies
doctorDiagnose config, aliases, and Remotion version
listList registry components and installed status
update <name...>Pull registry changes into files you haven't edited
diff <name>Compare installed files vs registry
search -q <query>Search the registry
view <name>View registry item metadata
build [registry.json]Build a custom registry to public/r/

Every command accepts --json. Commands that read the registry also accept -r, --registry-url <url> and --preset <preset>.

Flags by command

CommandFlags
init [name]-y, --yes, --existing, --agent-skill, --no-agent-skill, --json
add <name...>-r, --registry-url, --preset, -y, --yes, --json
doctor--json
list-r, --registry-url, --json
search-q, --query, --lane, --tier, -r, --registry-url, --json
view <name>-r, --registry-url, --preset, --json
update <name...>-r, --registry-url, --preset, -y, --yes, --json
diff <name>-r, --registry-url, --preset, --json
build [registry.json]-o, --output, --preset, --json

Diagnose setup

Doctor
$ npx remotion-ui@latest doctor

Checks remotion-ui.json, tsconfig path aliases, install directories, and Remotion version alignment.

Existing Remotion project

Existing project
cd your-remotion-app npx remotion-ui@latest init --existing npx remotion-ui@latest add social-clip

init --existing writes remotion-ui.json and installs the agent skill into .claude/skills/remotionui-agent/. Pass --no-agent-skill to skip it.

New project

New project
npx remotion-ui@latest init my-video cd my-video && npm run dev npx remotion-ui@latest add social-clip

New projects skip the agent skill unless you pass --agent-skill.

Composition registration

When a registry item carries composition metadata, add patches Root.tsx for you: it inserts the import and a <Composition /> entry with the item's id, durationInFrames, fps, width, and height. If an id is already present, the file is left untouched, so re-running add or update never duplicates entries.

Filter the registry

Search filters
npx remotion-ui@latest search -q caption npx remotion-ui@latest search --lane atoms npx remotion-ui@latest search --tier core --lane reels

Lanes: atoms, signals, vectors, spatial, blocks, cuts, reels. Tiers: core, advanced.

Script output

Pass --json to any command for machine-readable output. Useful for agents and CI.

JSON output
npx remotion-ui@latest doctor --json npx remotion-ui@latest search -q social --json npx remotion-ui@latest view social-clip --json npx remotion-ui@latest list --json npx remotion-ui@latest add social-clip --json npx remotion-ui@latest diff fade-in --json

Error codes

With --json, failures print a structured envelope on stdout and exit non-zero:

Error shape
{ "ok": false, "error": { "code": "CONFIG_NOT_FOUND", "message": "No remotion-ui.json found in /path/to/project. Run \"remotion-ui init\" first." } }
CodeMeaning
CONFIG_NOT_FOUNDNo remotion-ui.json (or no package.json during init --existing) in the working directory
CONFIG_INVALIDremotion-ui.json failed schema validation
REGISTRY_ITEM_NOT_FOUNDNo registry item with that name
REGISTRY_FETCH_FAILEDNetwork or HTTP failure reaching the registry
REGISTRY_ITEM_INVALIDFetched item failed schema validation
REGISTRY_INDEX_INVALIDFetched index failed schema validation
TEMPLATE_NOT_FOUNDProject template missing from the CLI package
TARGET_EXISTSTarget directory already exists
INVALID_ARGSMissing or malformed command arguments
DEPENDENCY_SPEC_INVALIDA dependency string could not be parsed
UNKNOWNAnything not mapped to a specific code

Remotion version compatibility

Registry items may declare a supported Remotion range:

compat
{ "name": "map-flight", "compat": { "remotion": "^4.0.0" } }

At install time, add reads the Remotion version from your package.json and warns when the range is not satisfied. The install still proceeds. The check is advisory, and it only runs at install time, not continuously. doctor reports your installed Remotion version alongside config and alias checks.

Component props

Prop metadata is published per component as JSON, for agents and tooling that need signatures without reading source:

Prop metadata
https://remotionui.com/ai/components/lower-third.json

Each entry carries name, type, required, default, and description, plus usage snippets and related components. See AI Usage for the full set of agent-readable endpoints.

Workflow: staying up to date

Diff
$ npx remotion-ui@latest diff fade-in
Update
$ npx remotion-ui@latest update fade-in

add and update record a hash of every file they write in remotion-ui-lock.json. On update, a file that still matches its recorded hash is replaced with the registry version; a file you have edited is skipped and listed, so you can review it with diff or overwrite it with --yes. Commit the lockfile so the rest of your team gets the same behavior.

Custom registry

Build registry
$ npx remotion-ui@latest build ./registry.json -o ./public/r

Config: remotion-ui.json

Config
{ "preset": "default", "aliases": { "primitives": "@/remotion/primitives", "scenes": "@/remotion/scenes", "compositions": "@/compositions", "lib": "@/remotion/lib", "hooks": "@/remotion/hooks" } }

Telemetry

The CLI sends one anonymous event per command so we can see which commands and components get used and which ones fail.

Each event contains exactly four fields:

FieldExample
commandadd
components["social-clip"]: registry names passed to add, update, view or diff. Empty for other commands, and always empty with --registry-url, so private registry names are never sent.
oktrue if the command succeeded
cliVersion0.11.0

No file paths, project names, flags, machine ids or account data are sent, and the IP address is used only for rate limiting and is not stored. The request gives up after 1.5 seconds, and failures are ignored, so telemetry never slows down or breaks a command. The first run prints a one-line notice.

Turn it off with either variable:

Opt out
export REMOTION_UI_TELEMETRY=0 # or the cross-tool standard export DO_NOT_TRACK=1

Nothing is sent when a CI environment variable is set (CI, GITHUB_ACTIONS, GITLAB_CI, BUILDKITE, CIRCLECI and others). To see the exact event without sending it, run with REMOTION_UI_TELEMETRY_DEBUG=1; it prints to stderr.

On this page