Lipafy CLI (npx lipafy)
Lipafy CLI (npx lipafy)
The Lipafy CLI is a terminal toolkit and cURL wrapper designed for developers, DevOps scripts, and automated agent pipelines. It allows you to check balances, settle PayBills, execute instant @tag transfers, and run authenticated requests directly from your terminal.
⚡ Quick Start (Zero-Install)
You can run the Lipafy CLI immediately without global installation:
Global Installation (Optional)
🔑 Authentication
1. Interactive Login
This prompts for your API key (lip_live_... or lip_test_...) and securely stores your token in ~/.lipafy/credentials.json.
2. Login via Flag
3. CI/CD & Environment Variables
For non-interactive environments (GitHub Actions, Docker containers, cron scripts), export environment variables:
🛠️ CLI Command Reference
Account & Balance
Payments & Money Movement
1. Instant @tag Transfer (Zero-Fee)
Send money instantly to any verified Lipafy user or organization:
2. Pay a Utility PayBill
Settle utilities, fibre internet, or government bills:
3. Pay a Buy Goods Till
Disburse payment to a merchant till:
4. Disburse to M-Pesa Phone (B2C)
Pay contractors, riders, or employee reimbursements:
💳 Wallet Top-Up (M-Pesa STK Push)
Trigger an on-device M-Pesa PIN prompt to deposit funds into your workspace wallet:
Your phone will immediately buzz with the Safaricom STK prompt:
“Do you want to pay KES 5,000 to Lipafy? Enter M-Pesa PIN:“
🛡️ Approvals & Intent Governance
🌐 Authenticated cURL Wrapper (lipafy curl)
The lipafy curl command acts as a drop-in proxy for curl. It automatically injects your workspace Bearer token when targeting Lipafy API endpoints without exposing tokens to untrusted hosts:
Host Injection Safety Rules
https://api.lipafy.xyz/*➔ Injects Bearer Token ✅https://api.github.com/*➔ Skips Token (Protected) ❌https://untrusted-domain.com/*➔ Skips Token (Protected) ❌
