What is the Affonso CLI?
The Affonso CLI (@affonso/cli) is a command-line interface for the Affonso affiliate marketing platform. It gives you full control over affiliates, referrals, commissions, payouts, and program settings — directly from your terminal.
Every command supports
--json output, making the CLI a perfect tool for AI agents that need to parse responses and chain commands together.Who is it for?
Developers
Manage your affiliate program without leaving the terminal — list affiliates, approve applications, track commissions, and configure settings.
AI Agents
Agents like OpenClaw, Paperclip, Claude, and GPT can use shell tools to build automated affiliate workflows with structured JSON output.
Installation
Quick start
Authenticate
Log in with your Affonso account via OAuth:This opens your browser for secure authentication via OAuth 2.1 with PKCE. Tokens are stored locally in
~/.config/affonso/auth.json.Next steps
Authentication
Set up OAuth login or API key authentication
Commands
Full reference for all available commands
AI Agents
Use the CLI as a tool for AI agents
