Getting Started
Installation & Setup
AssetFlow CLI is lightweight, framework-agnostic, and runs 100% locally. Follow the steps below to integrate offline optimization into your development workflow.
Option 1: Run instantly via npx (Recommended)
The absolute fastest way to test AssetFlow CLI or run diagnostics on your project is using npx. This runs the command without a permanent global installation.
npx
npx assetflow-cli doctorOption 2: Global Installation
To make the CLI commands globally available in your terminal, choose and execute the command corresponding to your package manager:
npmNode Package Manager
npm
npm i -g assetflow-clipnpmPerformant npm
pnpm
pnpm add -g assetflow-cliyarnYarn package manager
yarn
yarn global add assetflow-clibunBun JS runtime
bun
bun add -g assetflow-cliVerify Installation
Verify that the installation was successful and the CLI can be reached by checking its current installed version:
bash
assetflow --version