Install Flux

Use the prebuilt release unless you are developing Flux itself.

#macOS or Linux

curl -fsSL https://raw.githubusercontent.com/sumitesh9/code/node-cli/scripts/install.sh | bash

#Windows PowerShell

irm https://raw.githubusercontent.com/sumitesh9/code/node-cli/scripts/install.ps1 | iex

#Windows Command Prompt

curl -fsSL https://raw.githubusercontent.com/sumitesh9/code/node-cli/scripts/install.cmd -o install.cmd && install.cmd && del install.cmd

The installer adds flux to your PATH automatically. Open a new terminal, then verify the installation:

flux --version
flux --help

If flux is still not found, your shell probably has not picked up the updated PATH yet. First open a fresh terminal window or start a new shell. If that still does not work, add the install directory to PATH manually:

  • macOS or Linux default install directory: ~/.local/bin
  • Windows default install directory: %LOCALAPPDATA%\\flux

#Update Flux

flux update

To install a specific release, pass the version explicitly:

flux update 0.3.0

Set FLUX_NO_UPDATE=1 to disable automatic update checks.

#Develop Flux from source

This route requires Node.js 22 or newer, pnpm 9 or newer, and Git:

git clone https://github.com/sumitesh9/code.git
cd code
corepack enable
pnpm install
pnpm start

Use the repository's pnpm-lock.yaml rather than mixing package managers. Run pnpm link --global if you want this checkout to provide the global flux command.

Next: connect a model provider.