Installation
The pageflare CLI is a single self-contained binary. Pick the installation method that fits your environment.
npm (all platforms)
Section titled “npm (all platforms)”The npm package wraps the native binary and works on macOS, Linux, and Windows. Node.js 20 or later is required.
npm install -g @pageflare/cliInstall once globally and the pageflare command is available everywhere. This is the recommended method for JavaScript/Node.js projects that already use npm.
Homebrew (macOS / Linux)
Section titled “Homebrew (macOS / Linux)”brew install pageflareHomebrew keeps the binary up to date via brew upgrade. This is the simplest path on macOS.
curl installer (Linux / macOS)
Section titled “curl installer (Linux / macOS)”The install script detects your OS and architecture, downloads the correct binary, and places it in /usr/local/bin.
curl -fsSL https://get.appz.dev/pageflare/install.sh | shThis is the preferred method for Linux servers and CI runners where you want a fast, dependency-free install.
To install to a custom directory, set PAGEFLARE_INSTALL_DIR:
PAGEFLARE_INSTALL_DIR=$HOME/.local/bin curl -fsSL https://get.appz.dev/pageflare/install.sh | shDocker
Section titled “Docker”The official Docker image is available on Docker Hub. Useful for CI pipelines and containerized workflows.
docker run --rm -v $(pwd)/dist:/site pageflare/cli /site --in-placeOr use it as a base in a multi-stage build:
FROM pageflare/cli AS optimizerCOPY dist/ /site/RUN pageflare /site --in-placeOS-specific notes
Section titled “OS-specific notes”brew install pageflare
# or: npm install -g @pageflare/climacOS: Homebrew or npm are both good choices. If Gatekeeper blocks the binary after a manual install, run xattr -d com.apple.quarantine /usr/local/bin/pageflare.
Linux: The curl installer and npm both work. For Docker-based CI, the curl installer avoids the Node.js dependency. See the CI/CD guide for example workflows.
Windows: npm is the recommended installation method on Windows. WSL2 users can use the curl installer inside WSL.
Verify the installation
Section titled “Verify the installation”pageflare --versionYou should see output like:
pageflare 1.0.0Updating
Section titled “Updating”| Method | Update command |
|---|---|
| npm | npm update -g @pageflare/cli |
| Homebrew | brew upgrade pageflare |
| curl | Re-run the install script |
| Docker | docker pull pageflare/cli:latest |
Uninstalling
Section titled “Uninstalling”| Method | Uninstall command |
|---|---|
| npm | npm uninstall -g @pageflare/cli |
| Homebrew | brew uninstall pageflare |
| curl / manual | rm /usr/local/bin/pageflare |
| Docker | docker rmi pageflare/cli |
Next steps
Section titled “Next steps”- Quick Start — run your first optimization.
- CLI Commands — full reference for all flags and options.