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 doctor

Option 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-cli
pnpmPerformant npm
pnpm
pnpm add -g assetflow-cli
yarnYarn package manager
yarn
yarn global add assetflow-cli
bunBun JS runtime
bun
bun add -g assetflow-cli

Verify Installation

Verify that the installation was successful and the CLI can be reached by checking its current installed version:

bash
assetflow --version