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

# CLI

> The vidjutsu command line: sign up, upload, edit and render from your terminal.

`vidjutsu` is the command line for VidJutsu Cloud. Every command prints the API's JSON on stdout; progress and prompts go to stderr, so it pipes cleanly into `jq` and scripts.

## Install

```sh theme={null}
npm i -g vidjutsu
```

Or a standalone binary for macOS and Linux (no Node needed), installed to `~/.local/bin`:

```sh theme={null}
curl -fsSL https://vidjutsu.ai/install.sh | sh
```

Check it with `vidjutsu --version`. This page covers version 2.4.0, which adds [shot list templates](https://docs.vidjutsu.ai/guides/shot-list-templates.md), reading one shot, and `init --template`. Update older installs with `npm i -g vidjutsu@latest`.

## Sign in

```sh theme={null}
vidjutsu login                    # or: vidjutsu login --email you@example.com
```

It emails you a code, asks for it, and saves a new API key to `~/.config/vidjutsu/cloud.json` (readable only by you). A new account has no credits yet: the command prints a checkout link to add a card and fund your wallet. `vidjutsu logout` forgets the saved key.

## Environment

| Variable | |
| - | - |
| `VIDJUTSU_API_KEY` | Use this key instead of the saved one. Handy in CI. |
| `VIDJUTSU_API_URL` | API origin. Default `https://api.vidjutsu.ai`. |
| `VIDJUTSU_CLIENT` | The name history and the editor's Activity show for your edits, for example `Claude Code`. Default: your API key's name. |
| `XDG_CONFIG_HOME` | Where the saved key lives (default `~/.config`). |

## Commands

### Account

| Command | |
| - | - |
| `vidjutsu login [--email <address>]` | Sign up or sign in with an emailed code; saves an API key. |
| `vidjutsu logout` | Forget the saved key. |
| `vidjutsu account` | Your account id and status. |
| `vidjutsu usage` | Your wallet balance and this month's usage. |
| `vidjutsu entitlements` | Your limits. |
| `vidjutsu keys` | List your API keys. |
| `vidjutsu keys create <name>` | Create an API key (its secret is shown once). |
| `vidjutsu keys revoke <key_id>` | Revoke an API key. |
| `vidjutsu billing checkout` | A Stripe Checkout link to add a card and start the monthly plan. |
| `vidjutsu billing top-up [--amount <usd>]` | A Stripe link to add credits to your wallet (\$10 by default and minimum). Plain `vidjutsu billing` does the same. |
| `vidjutsu billing auto-top-up --on [--threshold <usd>] [--amount <usd>]` | Turn on auto-reload for usage past the allowance. `--off` turns it off. See [Auto top-up](https://docs.vidjutsu.ai/pricing.md#auto-top-up). |
| `vidjutsu billing portal` | A Stripe link to update your saved card or see receipts. |
| `vidjutsu wallet` | Your balance, saved card, auto top-up and this month's spend. |

### Media

| Command | |
| - | - |
| `vidjutsu upload <file> [--name <name>] [--project <project>]` | Upload a file straight to storage and add it to your library. `--project` shows the upload in that project's editors. |
| `vidjutsu ingest <https-url> [--name <name>] [--project <project>]` | Add media from a link. |
| `vidjutsu url <hash> [--ttl <seconds>]` | A time-limited download link. |
| `vidjutsu preview <hash> [--project <project>] [--no-wait]` | Make a file's [preview](https://docs.vidjutsu.ai/guides/uploads.md#previews-and-transcripts) (or read it, if it exists), waiting for the job. |
| `vidjutsu transcript <hash> [--project <project>] [--no-wait]` | Make a file's transcript (or read it), waiting for the job. |

### Projects

| Command | |
| - | - |
| `vidjutsu projects [--limit <n>] [--cursor <next_cursor>]` | Your projects, most recently changed first. |
| `vidjutsu init <project> [--template <id>]` | Create a project. Its shot list starts with the template's columns (default `talking_head`). |
| `vidjutsu show <project> [--revision <revision>]` | Its timeline, and who is in it right now. |
| `vidjutsu head <project>` | Its head revision, without the timeline. |
| `vidjutsu edit <project> <ops.json \| -> [--summary <line>]` | Apply edit operations from a file, or `-` for stdin. The JSON is a list of operations, or `{"operations": [...], "expected_head": "..."}`. |
| `vidjutsu words <project> [--pause <seconds>]` | The words and pauses on the edited timeline ([cut by the script](https://docs.vidjutsu.ai/guides/agents.md#cut-by-the-script)). |
| `vidjutsu search <project> <words...> [--limit <n>]` | Find spoken words in every file of the project. |
| `vidjutsu files <project>` | Every file in the project, where it is used and where it came from. |
| `vidjutsu level <project> --tracks <a1,a2> [--target <lufs>] [--dry-run]` | [Level](https://docs.vidjutsu.ai/guides/audio.md#level-clips) the clips on audio tracks. |

### History

| Command | |
| - | - |
| `vidjutsu history <project> [--limit <n>] [--before <next>]` | Every revision and shot list change, newest first. |
| `vidjutsu undo <project> <revision> [--change <index>] [--expected-head <revision>]` | Undo a revision, or one change of it, as a new revision. |
| `vidjutsu restore <project> <revision> [--expected-head <revision>]` | Bring back an earlier revision's timeline. |

### Shot list

| Command | |
| - | - |
| `vidjutsu shot-list <project> [--scene <id>] [--resolve]` | The [shot list](https://docs.vidjutsu.ai/guides/shot-list.md): columns, scenes, shots and the files filed under each. `--resolve` adds each shot's fields with file links. |
| `vidjutsu shot-list shot <project> <shot>` | [One shot](https://docs.vidjutsu.ai/guides/shot-list-templates.md#read-one-shot) with every column's value and fresh file links. |
| `vidjutsu shot-list edit <project> <ops.json \| -> [--expected-revision <n>]` | Apply shot list operations. Without `--expected-revision` it uses the current one. |
| `vidjutsu shot-list import <project> <episode.json \| -> [--replace]` | Bring an [episode plan](https://docs.vidjutsu.ai/guides/import-descript.md#bring-in-an-episode-plan) in as the shot list. |
| `vidjutsu templates [list \| save <file.json> \| delete <template>]` | [Shot list templates](https://docs.vidjutsu.ai/guides/shot-list-templates.md). `save` takes `{name, columns}` or `{name, project}`. |

### Layouts and sound

| Command | |
| - | - |
| `vidjutsu layouts` | The built-in and saved [layout presets](https://docs.vidjutsu.ai/guides/layouts.md). |
| `vidjutsu layouts save <preset.json \| ->` | Save a preset (`{name, screen, camera}`). |
| `vidjutsu layouts delete <layout_id>` | Delete a saved preset. |
| `vidjutsu layout <project> <preset> [--from <time>] [--to <time>]` | Lay out the screen and camera with a preset, over a range or the whole video. |
| `vidjutsu studio-sound <project> [--media <id,id>] [--no-wait]` | Turn on [Studio Sound](https://docs.vidjutsu.ai/guides/studio-sound.md) and wait for it. |

### Look and check

| Command | |
| - | - |
| `vidjutsu frame <project> <time...> [--height 360\|720\|1080] [--revision <r>] [--no-wait]` | [Stills of the cut](https://docs.vidjutsu.ai/guides/look-and-check.md) at timeline times. Waits and prints each still's link. |
| `vidjutsu check <project> [--sections <file.json>] [--revision <r>] [--no-wait]` | [Measure the cut](https://docs.vidjutsu.ai/guides/look-and-check.md#check-the-cut): gaps, black, silence, loudness and gains. |
| `vidjutsu import <project> <export.fcpxml\|.edl> --files <ingested.json> [--format fcpxml\|edl]` | Open a [Descript export](https://docs.vidjutsu.ai/guides/import-descript.md) as a new project. |

### Working together

| Command | |
| - | - |
| `vidjutsu events <project> [--after <seq>]` | Change notices since a sequence number. |
| `vidjutsu events <project> --follow` | The [live stream](https://docs.vidjutsu.ai/guides/live-updates.md): one JSON event per line, reconnecting as needed. |
| `vidjutsu working-on <project> <text> [--clips <id,id>] [--from <time> --to <time>] [--scene <id>]` | Say what you're about to do. `--clear` clears it. |
| `vidjutsu presence <project> [--playhead <time>] [--from <time> --to <time>]` | Say where you are. `--clear` clears it. |
| `vidjutsu comments <project>` | The project's comments. |
| `vidjutsu comment <project> <text> (--at <time> \| --from <time> --to <time> \| --reply-to <id>) [--quote <words>]` | Comment on a moment or a range, or reply. |
| `vidjutsu comments resolve\|reopen\|delete <project> <comment_id>` | Resolve, reopen or delete a comment. |

### Publishing

| Command | |
| - | - |
| `vidjutsu accounts` | Your connected [social accounts](https://docs.vidjutsu.ai/guides/publishing.md#connect-an-account). |
| `vidjutsu accounts connect <tiktok\|instagram\|youtube> [--return-to app\|page]` | Print a sign-in link: open it in a browser to connect the account. |
| `vidjutsu accounts approval <social_account_id> --on\|--off` | Turn [approval before posting](https://docs.vidjutsu.ai/guides/publishing.md#approval-before-posting) on or off. |
| `vidjutsu accounts disconnect <social_account_id>` | Disconnect an account. |
| `vidjutsu post schedule (--job <job_id> \| --hash <hash> [--type video\|image]) --accounts <id,id> [--caption <text> \| --caption-file <file>] [--at <time>] [--options <file.json>] [--key <key>]` | [Post](https://docs.vidjutsu.ai/guides/publishing.md#schedule-a-post) a finished render or a stored file, now or at `--at` (an ISO time with a zone). `--options` is `{"<social_account_id>": {...}}` ([platform options](https://docs.vidjutsu.ai/guides/publishing.md#platform-options)). |
| `vidjutsu posts [--state <state>] [--limit <n>] [--cursor <next_cursor>]` | Your posts, newest first. Same as `vidjutsu post list`. |
| `vidjutsu post get <post_id>` | One post and where it is on each account. |
| `vidjutsu post reschedule <post_id> --at <time \| now>` | Move a post that hasn't gone out yet, or post it now. |
| `vidjutsu post approve <post_id>` | Approve a post that is `pending_approval`. |
| `vidjutsu post cancel <post_id>` | Cancel a post that hasn't gone out yet. |
| `vidjutsu post stats <post_id>` | [The numbers](https://docs.vidjutsu.ai/guides/publishing.md#read-the-numbers) each platform reports for it. |

### Renders

| Command | |
| - | - |
| `vidjutsu render <project> [--json <body>] [--no-wait] [--out <file>]` | Render. Waits for the job unless `--no-wait`; `--out` saves the file. `--json` takes the [render options](https://docs.vidjutsu.ai/guides/rendering.md#options), for example `'{"height": 2160}'`. |
| `vidjutsu render <project> --captions [--captions-position top] [--captions-size small\|large] [--captions-background none]` | Render with [captions](https://docs.vidjutsu.ai/guides/captions.md) burned in. No extra charge. |
| `vidjutsu captions <project> [--format srt\|vtt] [--revision <r>] [--out <file>]` | The cut's [captions](https://docs.vidjutsu.ai/guides/captions.md) as a file. Free. |
| `vidjutsu status <job_id>` | Any job. |
| `vidjutsu cancel <job_id>` | Cancel a render job. |
| `vidjutsu download <job_id> [--out <file>]` | Save a finished render (default `<job_id>.mp4`). |

Times are seconds (`12`, `12.5`) or fractions (`1001/30000`).

`vidjutsu --help` lists them all.

## Errors

A failed call prints `error: <message> (<code>, HTTP <status>)` to stderr and exits 1. When the fix is a payment or a plan change, it also prints the link that fixes it: `fix it here: https://...`.

## Example

```sh theme={null}
vidjutsu upload take1.mov | jq '{media, audio}' > take1.json
vidjutsu init launch
vidjutsu edit launch ops.json
vidjutsu render launch --json '{"height": 2160, "loudness": -14}' --out launch-4k.mp4
```


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