zshot/cliDownload

npm

npm install -g @zshot/cli

Installs ZShot for Linux x86_64 and arm64 with glibc 2.35 or newer directly from the npm registry. For macOS and other packages, see Download.

Cloud workspaces and containers

Pass --container on each run:

zshot --container https://zshot-cli.com/example_assets/hello_zshot/ -f shot.png

To use an existing license, run zshot --license-lease in the workspace and confirm the code on a licensed machine.

ZShot loads pages from the workspace’s own network. Give the workspace full network access, or allow each site it loads and zshot-licensing.com.

Workspaces often default to UTC and the C locale. Set TZ and LANG, or pass --emulate-timezone and --accept-language per run.

System libraries

On Debian and Ubuntu:

apt-get install -y libasound2 libdbus-1-3 libexpat1 libnspr4 libnss3 fontconfig-config dbus

See DEPENDENCIES.txt in @zshot/linux-x64 or @zshot/linux-arm64 for other distributions. ZShot reports any missing libraries on startup failure.

Packages

PackageContents
@zshot/cliThe zshot CLI launcher
@zshot/linux-x64, @zshot/linux-arm64Binary, FFmpeg, fonts, and resources
@zshot/cef-linux-x64, @zshot/cef-linux-arm64Chromium Embedded Framework library

npm installs the two packages for the host architecture as optional dependencies of @zshot/cli, so --omit=optional leaves the launcher without a binary. No install scripts run.

Cache

Each version links its files into $XDG_CACHE_HOME/zshot/npm/ on first run, defaulting to ~/.cache/zshot/npm/. Set ZSHOT_NPM_CACHE to override the directory.