> ## Documentation Index
> Fetch the complete documentation index at: https://rive.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rive CLI

> Create, preview, inspect, and publish Rive graphics from the command line, without opening the Editor.

export const YouTube = ({id, timestamp}) => {
  const videoSrc = timestamp ? `https://www.youtube.com/embed/${id}?start=${timestamp}` : `https://www.youtube.com/embed/${id}`;
  return <iframe width="100%" height="400" src={videoSrc} title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen />;
};

The Rive CLI brings Rive into your terminal. Build `.riv` files for your app or game and `.rev` files that open in the Rive Editor, with a live preview running locally as you work.

Pair the CLI with your coding agent of choice to build a scene from scratch, or modify and inspect an existing Rive graphic from your account. You describe the graphic, the agent writes the scene in [Rive Markup Language (RML)](/docs/runtimes/advanced-topic/rml), and you watch the result take shape and steer it as it goes.

```bash theme={null}
rive create myproject   # scaffold a project
rive myproject          # preview window, rebuilds as you edit
```

<YouTube id="G2TGQF57eoY" />

## What it enables

* **Build with RML.** Build entire Rive scenes using Rive Markup Language (RML). The CLI
  parses this to compile a local preview, and can build `.riv` assets from it.
* **Check what you built.** Confirm a scene compiles, inspect what it actually
  contains, and look up any type in the Rive object model.
* **Pair with a coding agent.** A new project comes with instructions an agent
  reads, so it knows how to look things up and check its own work. See
  [AI Agents](/docs/cli/agents).
* **Render and test without a window.** Capture frames as images, drive a scene
  with simulated input and data, and run script tests
* **Keep your work in version control.** A project is a folder of text and assets,
  so it diffs and reviews with the rest of your code.

<Note>
  Coming soon: Syncing Rive graphics from CLI with files in your editor.
</Note>
