LogoFlux Docs
Commands

flux install

Install one or more dependencies in your project using Flux.


Overview

The flux install command adds new dependencies to your project. It’s optimized for speed and works with zero external cache, using Flux's custom dependency graph resolver.


Usage

Terminal
flux install [package-name...]

Examples

Install Specific Packages

Terminal
flux install react react-dom

This installs react and react-dom and adds them to your dependencies in package.json.

Install All Dependencies

Terminal
flux install

Installs all dependencies listed in your package.json file.


Options

OptionDescription
--devInstall as a devDependency
--exactSave exact versions (no ^ or ~)
--no-saveDon’t update package.json
--prefer-offlineUse local cache only (if available)

How It Works

Resolves dependencies

Flux calculates the optimal graph and fetches only the required versions of each package.

Files are placed directly in your node_modules with no symlink chaos.

Updates package.json and flux.lock

Ensures consistent, repeatable installs across environments.


Performance Tip

Flux skips unnecessary steps like global cache lookups, which makes it faster than npm, yarn, and pnpm in most cases — especially on CI or fresh installs.