Viral Engine CLI

AI image and video generation
from your terminal

321 commands across every product area. Built for CI, automation, scripts, and autonomous agents. Generate with Nano Banana 2, GPT Image 2, Flux, Kling 3.0, Veo 3.1 and more from a shell, with the same brand Styles your team saved in the app.

~/projects
# install
$ npm install -g viral-engine-cli
+ viral-engine-cli@1.x
# auth
$ ve login
Logged in as sam@viralengine.art (4,210 credits)
# generate
$ ve images generate "matte black water bottle, wet stone, side lighting" -m nano-banana-pro -n 4
Generated 4 images. Saved to gallery. 320 credits.
# animate the best one
$ ve videos generate -i ./bottle.png --provider kling-3.0 -f 9:16 -d 5
Job queued. Follow it with ve jobs watch <id>. 400 credits.

Why a CLI

When the dashboard is the wrong tool

CI and CD

Generate fresh hero images on every PDP update. Refresh your social feed nightly. Replace stale ad creative on a cron.

Bulk and batch

Pipe a CSV of products into a script that generates 4 variations each. The dashboard is fine for one. The CLI is for one thousand.

Agent loops

Pair with Claude or GPT-4 tool-use to build self-running creative pipelines. The CLI is intentionally agent-friendly: clean JSON, predictable shapes.

Surface

43 top-level commands, 321 commands

ve images generate

25 image models

ve videos generate

9 video engines, 22 options

ve images enhance

Magic Prompt, pipeable

ve gallery

Search and export

ve credits

Balance and billing

ve agents

Brand Styles and agents

ve conversations

Chat History, distill to a Style

ve agent

Talk to the Action Agent

ve videos voiceover

Voice Lab TTS (voice swap: ve videos voice-convert)

ve vsl

VSL Studio prompts and projects

ve workflows

List, create and edit workflows

ve jobs

Async jobs

Run ve --help for the complete catalog.

Questions

CLI FAQ

npm install -g viral-engine-cli. The binary is available as both ve and viral-engine. Configure with ve login. Config is stored at ~/.viral-engine/config.json.
321 commands under 43 top-level commands, covering every product area: all 25 image models, all 9 video engines (22 options), voice, agents and Styles, chat History, gallery, credits, projects, VSL prompts, workflow definitions (runs happen in the app), funnels, leads, automation and jobs.
Yes. Set VIRAL_ENGINE_TOKEN in CI secrets. JSON output mode (--json) returns parseable structure. Exit codes are CI-friendly.
Yes. Pair with Claude or GPT-4 tool-use to build self-running pipelines. Predictable command shapes and clean JSON make it agent-friendly. See also the in-app Action Agent.
Yes. The CLI is free. You only pay credits for the underlying generation at the same rates as the dashboard.

MCP server included

Use it from Claude Code, Claude Desktop, Cursor, Codex or Windsurf

The CLI ships an MCP server with every tool: images, video, music, campaigns, the gallery, your credits. One command registers it with your AI, and the server hands your AI the guide it needs: which model for which job, how to prompt, what each thing costs, and the rule that it states the price before spending.

1. Install + log in

$ npm i -g viral-engine-cli
$ ve login

2. Give it to your AI

$ ve mcp install claude-code
// or claude-desktop, cursor, codex, windsurf
$ ve skill install
// the guide as a Claude Code skill (--cursor, --codex too)

Restart the app and ask your AI to check your credits. Tools include generate_image, generate_video, generate_music, sync_to_music, research_campaign, gallery_list, check_credits and more; ve mcp config prints the JSON for any other host, and ve guide prints the guide. The CLI updates itself in the background (ve update does it now).

Generate from your shell in three commands

$ npm i -g viral-engine-cli
$ ve login
$ ve images generate "your idea here"
Get a token, free