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

# add

> Add a flow to the repo: its DemoScript, its receipt and its exports.

```bash theme={null}
npx demoman add <flow> --to <path>[:<aspect>] [--gif <path>[:<aspect>]] [--report <path>] [--quality share|high|full] [--deliver commit|files]
```

Adds a flow to the repo, so a refresh records it again. Run it in the repo,
naming one of its flows by id or exact name. It writes:

* `.demoman/flows/<name>.json`, the flow's [DemoScript](https://demoman.io/docs/reference/demoscript.md)
* each export, at its path
* `.demoman/receipts/<name>.json`, which describes the page as each step
  settled, and the `<name>.screens/` folder of those screens, which a
  refresh compares against

With `--deliver files`, only the DemoScript is written. Commit everything it
wrote. A logo from outside the repo is copied to
`.demoman/flows/logos/`. The walkthrough is
[Add to your repo](https://demoman.io/docs/get-started/add-to-repo.md).

| Flag | |
| - | - |
| `--to <path>[:<aspect>]` | An MP4 to write, repeatable; the aspect is `auto`, `16:9` or `9:16`, the video's own by default |
| `--gif <path>[:<aspect>]` | A GIF to write, repeatable |
| `--report <path>` | Where to write the run report |
| `--quality <quality>` | The MP4s' quality: `share` (the default, small to commit), `high` or `full` |
| `--deliver commit\|files` | `commit` (the default) commits the exports. `files` commits only the DemoScript (and a logo or wallpaper); each path is a plain file name, written under refresh's `--out-dir` |

`keep`, the command's old name, still runs.

It refuses, writing nothing, a flow a new video cannot reproduce: see
[Refusals](https://demoman.io/docs/reference/refusals.md#adding-a-flow).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.