@joggai/smartvideo-cli
v0.0.7
Published
SmartVideo CLI — create, preview, and render HTML video compositions
Readme
smartvideo
CLI for creating, previewing, and rendering HTML video compositions.
Install
npm install -g smartvideoOr use directly with npx:
npx smartvideo <command>Requirements: Node.js >= 22, FFmpeg
Commands
init
Scaffold a new SmartVideo project from a template:
npx smartvideo init my-video
cd my-videopreview
Start the live preview studio in your browser:
npx smartvideo preview
# Studio running at http://localhost:3002
npx smartvideo preview --port 4567render
Render a composition to MP4:
npx smartvideo render ./my-composition.html -o output.mp4lint
Validate your SmartVideo HTML:
npx smartvideo lint ./my-composition
npx smartvideo lint ./my-composition --json # JSON output for CI/tooling
npx smartvideo lint ./my-composition --verbose # Include info-level findingsBy default only errors and warnings are shown. Use --verbose to also display informational findings (e.g., external script dependency notices). Use --json for machine-readable output with errorCount, warningCount, infoCount, and a findings array.
compositions
List compositions found in the current project:
npx smartvideo compositionsbenchmark
Run rendering benchmarks:
npx smartvideo benchmark ./my-composition.htmldoctor
Check your environment for required dependencies (Chrome, FFmpeg, Node.js):
npx smartvideo doctorbrowser
Manage the bundled Chrome/Chromium installation:
npx smartvideo browserinfo
Print version and environment info:
npx smartvideo infodocs
Open the documentation in your browser:
npx smartvideo docsupgrade
Check for updates and show upgrade instructions:
npx smartvideo upgrade
npx smartvideo upgrade --check --json # machine-readable for agentsDocumentation
Full documentation: CLI reference
Related packages
@smartvideo/core— types, parsers, frame adapters@smartvideo/engine— rendering engine@smartvideo/producer— render pipeline@smartvideo/studio— composition editor UI
