CLI (acc)
Install the CLI
Requirements
- Node.js 18.18.2 or later (
node --version) - npm (bundled with Node.js)
Install
npm install -g @alternatefutures/accVerify the installation:
acc --version
acc --helpRenamed from af
The CLI was renamed from af to acc in 2026. If you have the old
@alternatefutures/cli package installed, remove it with
npm uninstall -g @alternatefutures/cli to avoid confusion - the old af
binary no longer matches the current platform.
Authenticate
acc login # browser flow: approves this CLI session from the web app
acc login --email # email code flow, no browser neededConfirm you are logged in:
acc whoamiNon-interactive use (CI, agents)
Create a personal access token and export it instead of logging in:
acc pat create --name ci-runner
export AF_TOKEN=<token>
export AF_PROJECT_ID=<project-id>
acc whoami --jsonUpdating
npm update -g @alternatefutures/accTroubleshooting
command not found: acc- your global npm bin directory is not onPATH. Runnpm bin -gand add that directory to your shell profile.- Login loops or auth errors - run
acc logoutthenacc loginagain; checkacc whoamiafterwards. - Corporate proxies - the CLI talks HTTPS to
alternatefutures.aihosts; make sure they are reachable.