CLI
Official command-line interface for the VideoGen API.
The VideoGen CLI wraps @videogen/sdk and exposes every public API resource as videogen <resource> <kebab-command>. Commands print JSON to stdout.
Install
Or run once without installing:
Authenticate
Interactive sign-in with Sign in with VideoGen (OAuth 2.1 + PKCE). Opens your browser and caches tokens locally:
For scripts and CI, use an API key instead:
Override per command with --api-key. Credential order: --api-key → VIDEOGEN_API_KEY → cached OAuth token from videogen login. Optional --base-url / VIDEOGEN_BASE_URL (default https://api.videogen.io). Point at DEV/PRERELEASE at runtime with --base-url (one binary for all environments). Optional VIDEOGEN_CLI_CONFIG_DIR overrides the token cache directory.
Quick start
Run a workflow
Pass the request JSON with --body. Add --wait to poll until the run finishes:
Run a tool
Upload a file
--type is a VideoGen file type (IMAGE, VIDEO, AUDIO, PDF, SLIDESHOW), not a MIME type: