Skip to content
Docs
Browse documentationCommand line (CLI)

Command line (CLI)

Install the videodraft CLI, sign in, and generate video, images, audio, and 3D assets from your terminal or from CI.

On this page

Install and sign in#

The official CLI is published on npm as videodraft under the MIT license. It requires Node 20.18.1 or newer. A Homebrew tap and a curl installer are in progress, so npm is the supported channel today.

Install

Sign in once in your browser. For CI, set VIDEODRAFT_API_KEY to a token from app.videodraft.ai/mcp-keys and skip the login step. Credentials live in ~/.config/videodraft/config.json, and videodraft logout revokes and clears them.

Authenticate

Generate assets#

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 anything.

Examples

  • Every command takes --json, and exit codes are stable enough to branch on.
  • Async jobs are first-class: submit, then poll for the result.
  • videodraft costs prices a model before you run it.

Teach a coding agent to use it#

The CLI ships an agent skill covering model choice, references, async polling, and costs. Installing it means Claude Code, Codex, and Cursor know how to produce video without being told each time. The CLI detects which agents you have and writes the skill only where it belongs.

Install the skill