AFFIXIO
Developer tool
AffixIO CLI
Prove, verify, and generate Merkle-backed codes from the terminal. One-line install, hub browser login, local vault at ~/.affix/codes/.
curl -fsSL https://www.affix-io.com/cli/install.sh | bash
-
Run
affix login. The CLI shows a device code and opens your browser. -
Sign in at affix-io.com/cli/verify and approve the code for this machine.
-
Run
affixfor interactive mode, or call commands directly from your shell.
Capabilities
Built for operators who live in the terminal
Prove, verify, and generate codes without leaving your shell. Every output is Merkle-audited through the hub proxy.
- API
-
Prove and verify
Call Noir circuits on api.affix-io.com. Health checks, auth validation, and proof verification without leaving the shell.
- Codes
-
Merkle QR and barcodes
Generate through the hub proxy with Merkle audit on every create. SVG by default,
--pngfor raster output. Any https URL. - Vault
-
Local code storage
Files saved to
~/.affix/codes/with configurable output locations. List, open, scan, and remove from the vault. - Auth
-
Verify device login
No manual API key copy. Approve a device code at /cli/verify and receive an
aio_key on this machine.
AffixIO Engineering · Wales, UK. CLI v1.2.3 ships from this page. Commands tested against the live verify endpoint and service status. Updated 13 July 2026.
Reference
Command reference
All commands available after affix login. Run affix alone for interactive mode.
Auth
affix loginBrowser activation via /cli/verify. Credentials in ~/.affix/credentials.json.
affix logoutRemove local credentials from this machine.
affix whoamiShow the signed-in account.
API
affix healthCheck api.affix-io.com health.
affix circuitsList available Noir circuits.
affix prove [--circuit <id>]Demo prove. Default circuit: ticket_local_resident.
affix verify <proof>Verify a proof string against the API.
Codes
affix qr <url|text> [--png]Merkle-backed QR. Pass --png for SVG and PNG output.
affix qr ticket --event <slug> [--scans N]Ticket QR with scan limits.
affix barcode <data> [--type code128]Barcode generation with Merkle audit.
affix scan <id|token>Merkle-audited scan against a stored or raw code.
affix codesList the local vault.
affix open <id>Open SVG or PNG in your default app.
Config
affix location add <name> <path>Register a custom output directory for generated files.
affix location listShow saved output locations.
affixInteractive REPL after sign-in.
Questions
Where are credentials stored?
Locally at ~/.affix/credentials.json with restrictive file permissions. The verify page issues a dedicated API key labelled for your CLI session.
Do I need a separate API key?
No manual key copy. After approval at /cli/verify the CLI receives an aio_ key automatically. Manage keys from the account hub.
Where are QR and barcodes stored?
Generated files live in ~/.affix/codes/ with an index at index.json. SVG by default. Pass --png for a PNG copy.
Can I point output to another folder?
Use affix location add desktop ~/Desktop/codes then --location desktop, or --out /path for a one-off path.
What if the device code expires?
Codes last ten minutes. Run affix login again to generate a fresh code.
Building an application integration? Start with the quickstart or the Node.js SDK.