CLI
Official command-line interface for the VideoGen API.
The VideoGen CLI is a Node command that wraps the official @videogen/sdk and exposes every public API resource as a subcommand.
Install
Install globally with npm:
That puts a videogen command on your PATH. To run it once without installing, use npx:
Authenticate
Set your API key from app.videogen.io/api as an environment variable:
You can override the key per command with --api-key.
Quick start
List the available commands:
Every API resource is a subcommand (videogen <resource> <kebab-op>). List the methods on a resource:
Run a tool
Provide request parameters as a JSON body with --body, or pipe JSON on stdin. Tool runs are asynchronous, so the CLI prints a toolExecutionId:
Poll the execution until it reaches a terminal status:
Output formats
Commands print JSON to stdout, so you can pipe results into jq or other tooling:
Common flags
These global flags work on every command:
Path params are kebab flags (e.g. --workflow-run-id, --project-id, --file-id). Body-heavy POSTs accept --body '<json>' or a JSON object on stdin.