Install and configure the Video Toolbox CLI to manage your projects from the terminal
The Video Toolbox CLI lets you manage your projects, generate thumbnails, create scripts, and more — all from the terminal.
Install the CLI globally using api2cli:
npx api2cli install videotoolbox
Or if you have api2cli installed:
api2cli install videotoolbox
videotoolbox-cli auth login --email [email protected] --password yourpass
This creates a session token (valid 20 days). For long-lived access, use an API key instead.
API keys are valid for 1 year and ideal for automation or CI/CD:
videotoolbox-cli auth apikey create --name "my-key"
videotoolbox-cli auth set vtb_your_key_hereYou can also create API keys from your profile at Account > API Keys.
Most commands require an active organization:
videotoolbox-cli org set your-org-slug| Command | Description |
|---|---|
auth login | Login with email/password |
auth apikey create | Create a long-lived API key |
auth show | Show current auth status |
auth logout | Remove saved credentials |
org set <slug> | Select active organization |
projects list | List video projects |
projects create | Create a video project |
thumbnails generate | Generate AI thumbnails |
scripts generate | Generate an AI script |
inspirations list | List saved inspirations |
inspirations add | Save a YouTube thumbnail |
credits balance | Check credit balance |
credits transactions | View transaction history |
admin credits add | Add credits (admin only) |
admin coupons create | Create discount coupon (admin) |
All commands support multiple output formats:
videotoolbox-cli projects list --json # JSON output
videotoolbox-cli projects list --format csv # CSV output
videotoolbox-cli projects list --format yaml # YAML output| Variable | Description | Default |
|---|---|---|
VIDEOTOOLBOX_API_URL | API base URL | http://localhost:3000 |