Skip to content

Installation

affer ships as prebuilt Go binaries wrapped in the @affer-dev/cli npm package.

  • Node.js 18 or newer (for the npm wrapper)
  • macOS (arm64, x64), Linux (arm64, x64), or Windows (x64)

Install globally so affer is available in any repository:

Terminal window
npm i -g @affer-dev/cli

If you prefer a local project dependency or a one-off run:

Terminal window
# Local project install
npm i @affer-dev/cli
# Run without installing globally
npx @affer-dev/cli

The npm wrapper downloads the native Go binary for your OS and CPU architecture (14 MB on darwin-arm64 and linux-arm64; 15 MB on darwin-x64, linux-x64, and win32-x64).

Run affer doctor to check your binary, config path, and provider credentials:

Terminal window
affer --version
affer doctor