Installation
affer ships as prebuilt Go binaries wrapped in the @affer-dev/cli npm package.
Requirements
Section titled “Requirements”- Node.js 18 or newer (for the npm wrapper)
- macOS (
arm64,x64), Linux (arm64,x64), or Windows (x64)
Install with npm
Section titled “Install with npm”Install globally so affer is available in any repository:
npm i -g @affer-dev/cliIf you prefer a local project dependency or a one-off run:
# Local project installnpm i @affer-dev/cli
# Run without installing globallynpx @affer-dev/cliBinary sizes
Section titled “Binary sizes”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).
Verify the install
Section titled “Verify the install”Run affer doctor to check your binary, config path, and provider credentials:
affer --versionaffer doctor