Overview
Theinstall command downloads and caches Chrome and ffmpeg binaries to ~/.webreel. Both are also automatically downloaded on first use, so this command is optional but useful for:
- Pre-installing dependencies before recording
- Fixing corrupted or incomplete downloads
- Ensuring binaries are ready in CI/CD environments
Syntax
Options
| Option | Type | Default | Description |
|---|---|---|---|
--force | boolean | false | Delete cached binaries and re-download them |
Usage Examples
Install all dependencies
Download Chrome and ffmpeg if not already cached:Force reinstall
Delete cached binaries and download fresh copies:- Binaries are corrupted
- Downloads were interrupted
- You want to update to newer versions
Installed Components
Chrome Headless Shell
- Location:
~/.webreel/chrome-headless-shell/ - Purpose: Used by
webreel recordfor fast, headless recording - Size: ~100-150MB
- Platform: Downloads the correct binary for your OS (Linux, macOS, Windows)
Chrome (Full Browser)
- Location:
~/.webreel/chrome/ - Purpose: Used by
webreel previewfor visible browser debugging - Size: ~150-200MB
- Platform: Downloads the correct binary for your OS
ffmpeg
- Location:
~/.webreel/ffmpeg/ - Purpose: Encodes raw frames into MP4, GIF, or WebM video files
- Size: ~50-80MB
- Platform: Downloads the correct binary for your OS
Download Behavior
Automatic detection
The install command automatically:- Detects your operating system (Linux, macOS, Windows)
- Selects the appropriate architecture (x64, arm64)
- Downloads compatible binaries
Progress indication
During download, you will see progress for each component. Downloads run in parallel to save time.Caching
Once downloaded, binaries are cached and reused:- Subsequent runs of
webreel recordorwebreel previewuse cached versions - No re-download unless you use
--force - Cache persists across terminal sessions
Environment Variable Overrides
You can skip downloads by pointing to existing binaries:Chrome Headless Shell
Chrome Full Browser
ffmpeg
All overrides
If all three are set:When to Use
Pre-installation for CI/CD
Run install before recording to avoid download delays:Fix corrupted downloads
If recording fails with binary errors:Offline preparation
Download binaries while online, then record offline:Docker images
Pre-install in Dockerfile to speed up container startup:Error Handling
Download failures
If a download fails:- Reports which components failed
- Exits with code 1
- Leaves successfully downloaded components cached
Insufficient disk space
Total required space: ~300-400MB If disk is full, you will see OS-level errors. Free up space and retry.Cache Management
Cache location
All binaries are stored in:Clear cache
To remove all cached binaries:Update binaries
Currently, webreel does not auto-update. To get newer versions:Chrome and ffmpeg are open-source and downloaded from official distribution channels. No webreel account or authentication is required.
Related Commands
webreel record- Record videos (auto-installs if needed)webreel preview- Preview in browser (auto-installs if needed)