Skip to content

Developer CLI & Workflows

The zirzir CLI gives developers and AI agents terminal access to the full Zirzir orchestrator.


sequenceDiagram
autonumber
actor Dev as Developer / Agent
participant CLI as 💻 Zirzir CLI
participant Browser as 🌐 Web Browser
participant Dashboard as 📊 Developer Dashboard
Dev->>CLI: $ zirzir login
CLI->>CLI: Starts temporary loopback server on 127.0.0.1:4545
CLI->>Browser: Opens http://localhost:8080/cli/auth?port=4545&token=xyz
Browser->>Dashboard: Authenticates with developer session
Dashboard->>Browser: User clicks 'Authorize CLI'
Browser->>CLI: POST http://127.0.0.1:4545/callback with API credentials
CLI->>CLI: Saves credentials to ~/.zirzir/config.json
CLI-->>Dev: ✅ Authenticated as 'Development Team' (zz_test_...)

Terminal window
zirzir charge --amount 350 --currency ETB --provider telebirr --phone 0911223344
Terminal window
zirzir link create --amount 1250 --currency ETB --title "Freelance Consultation"
Terminal window
zirzir sub create --plan plan_pro_monthly --provider telebirr --phone 0911223344

4. Simulate Webhook Events (Zero Money Spent)

Section titled “4. Simulate Webhook Events (Zero Money Spent)”
Terminal window
zirzir trigger payment.succeeded --provider telebirr --amount 500.0
zirzir trigger payment.succeeded --provider mpesa --amount 1200.0
Terminal window
zirzir listen --forward-to http://localhost:3000/api/webhooks