CLI
@hypervideo-dev/cli is a command-line tool for video background removal and processing automation.
Installation
bash
npm install -g @hypervideo-dev/cliAuthentication
bash
# Interactive browser login (recommended)hypervideo login
# Manual API key setuphypervideo config set hc_your_key_here
# View current keyhypervideo config get
# Log outhypervideo logoutThe CLI stores your API key in ~/.hypervideo/config.json.
Video Background Removal
bash
# Basic usagehypervideo video remove-bg input.mp4 -o output.webp
# Specify formathypervideo video remove-bg input.mp4 -f apng -o output.apnghypervideo video remove-bg input.mp4 -f webm -o output.webmhypervideo video remove-bg input.mp4 -f stacked-alpha -o output.mp4
# With optionshypervideo video remove-bg input.mp4 -f webp -q 40 -o output.webphypervideo video remove-bg input.mp4 -f webm -t 30 -o output.webmOptions
| Flag | Description | Default |
|---|---|---|
-f, --format | Output format | webm |
-o, --output | Output file path | auto-generated |
-t, --tolerance | Background sensitivity (0-100) | 30 |
-q, --quality | WebP/APNG quality (0-100) | 60 |
--fps | Frame rate (1-60) | 24 |
--chroma-key | Manual color (r,g,b) | auto-detect |
Config Commands
bash
# Set API keyhypervideo config set hc_your_key
# Get current API keyhypervideo config get
# Show config file pathhypervideo config path