CLI
Official command-line interface for the VideoGen API.
The VideoGen CLI is a self-contained binary that wraps the VideoGen API. The commands stay in sync with the API because they are generated from the same OpenAPI spec as the SDKs.
Install
Install globally with npm:
Or, on macOS and Linux, with Homebrew:
Both put a videogen command on your PATH. To run it once without installing, use npx:
Prefer a standalone binary with no package manager? Download a prebuilt release for macOS, Linux, or Windows from GitHub Releases.
Authenticate
Set your API key from app.videogen.io/developers as an environment variable:
A .env file in the working directory is also loaded automatically. You can override the key per command with the --token flag.
Quick start
List the available commands:
Every API resource is a subcommand (videogen <resource> <method>). List the methods on a resource:
Run a tool
Provide request parameters as individual flags or as a single JSON body with --json. Tool runs are asynchronous, so the CLI prints a toolExecutionId:
Poll the execution until it reaches a terminal status:
Output formats
Commands print JSON by default, so you can pipe results into jq or other tooling. Use --format to switch to table, yaml, or csv:
Common flags
These global flags work on every command: