Skip to content

Command line

AI video from your terminal.

The official VideoDraft CLI generates video, images, voice, music, and 3D assets from the command line. Built for humans and for coding agents: JSON output everywhere, stable exit codes, and async jobs as a first-class idea.

Install
npm, or npx with no install at all
Requires
Node 20.18.1 or newer
License
MIT, source on GitHub
Credits
One balance, shared with Studio and the Mac app

Install and sign in.

Install globally to put videodraft on your PATH, or skip the install and let npx fetch the current version each time. Then sign in once in your browser.

Install reference

Headless and CI

Set VIDEODRAFT_API_KEY to a token from the keys page and skip the login step entirely. Credentials otherwise live in ~/.config/videodraft/config.json, and videodraft logout revokes and clears them.

CI

Generate anything, download it, move on.

A standalone image, clip, voiceover, track, or 3D model is a complete deliverable and does not need a project. Add --estimate to price a job before you spend.

Command reference
Examples

Built for scripts

Every command takes --json, exit codes are stable enough to branch on, and async jobs are submit-then-poll rather than a blocking wait.

Or a whole production

videodraft create runs idea to script to storyboard to timeline to an exported MP4, checking cost with you along the way.

Teach your coding agent to use it.

The CLI ships an agent skill covering model choice, references, async polling, and costs. Install it and Claude Code, Codex, and Cursor know how to produce video without being told each time.

About the skill
Install the skill

One command, three agents

The CLI detects which agents you actually have and writes the skill only where it belongs. Inside VideoDraft ADE this is already done for you: the app bundles its own copy and hands every chat the exact path to it.

Same tools, two front doors.

The CLI and the MCP connector share auth, tools, and one credit balance. Pick the one that fits how you want to work.

MCP docs

Use the CLI for scripts

Batches, pipelines, CI, and anything you want to run the same way twice, with output you can parse.

Read the CLI docs

Use the connector to talk

Same tools, same credits, but conversational. Connect Claude, ChatGPT, Codex, or Cursor and ask for what you want in plain language.

Connect your agent

CLI questions

The full reference

Install and sign-in options, the generate commands, cost estimates, async jobs, and the agent skill.

Read the CLI docs

npm install -g videodraft

Free and MIT licensed. Published on npm as videodraft.