A powerful Command Line Interface for Dodo Payments
Installation • Authentication • Usage • Webhooks • Contributing
Manage your Dodo Payments resources and test webhooks directly from the terminal. Built for developers who prefer the command line.
We provide various ways to install the CLI:
Note: If you have Node or Bun installed, it's highly recommended to use that installation method.
npm install -g dodopayments-clibun install -g dodopayments-cli-
Download the latest release from GitHub Releases that matches your system.
-
Extract the downloaded file to a directory of your choice.
-
Rename the binary file to
dodo:- Linux/macOS:
mv ./dodopayments-cli-* ./dodo - Windows:
ren .\dodopayments-cli-* .\dodo
- Linux/macOS:
-
Move the binary to a directory in your system's PATH:
- Linux/macOS:
sudo mv ./dodo /usr/local/bin/ - Windows:
move .\dodo C:\Windows\System32\dodo(requires admin mode)
- Linux/macOS:
Before using the CLI, you must authenticate:
/loginThis command will:
- Open your browser to the Dodo Payments API Keys page
- Prompt you to enter your API Key
- Ask you to select the environment (Test Mode or Live Mode)
- Store your credentials securely to OS secure storage (Credential Vault, Keychain, etc.)
Notes:
- Upto 1 Test Mode & 1 Live Mode can be used at the same time.
- You may be prompted to enter your password since we're using your OS secure storage.
To clear stored credentials, run:
/logoutThe logout flow lets you choose between All accounts, Test Mode, and Live Mode.
The general syntax is:
/<category> <sub-command>Interact with the built-in AI assistant to query your payments, customers, and other data using natural language.
| Command | Description |
|---|---|
/ai <query> |
Ask the AI assistant a question (or type your question directly) |
Manage your products catalog.
| Command | Description |
|---|---|
/products list <page> |
List products |
/products create |
Open dashboard to create a product |
/products info <id> |
View details for a specific product |
View payment transactions.
| Command | Description |
|---|---|
/payments list <page> |
List payments |
/payments info <id> |
Get information about a specific payment |
Manage your customer base.
| Command | Description |
|---|---|
/customers list <page> |
List customers |
/customers create |
Create a new customer profile |
/customers update <id> |
Update an existing customer's details |
Manage coupons and discounts.
| Command | Description |
|---|---|
/discounts list <page> |
List discounts |
/discounts create |
Create a new percentage-based discount |
/discounts delete <id> |
Remove a discount by ID |
Manage software licenses.
| Command | Description |
|---|---|
/licences list <page> |
List licenses |
Manage your add-ons.
| Command | Description |
|---|---|
/addons list <page> |
List addons |
/addons create |
Open dashboard to create an addon |
/addons info <id> |
View details for a specific addon |
Manage your refunds.
| Command | Description |
|---|---|
/refund list |
List refunds |
/refund info <id> |
View details for a specific refund |
Manage and test webhooks directly from the CLI.
| Command | Description |
|---|---|
/wh listen |
Listen for webhooks from Dodo Payments in real time and forward them to your local dev server |
/wh trigger |
Trigger a test webhook event interactively, even while logged out |
Note: The webhook triggering doesn't support signing requests yet. Please disable webhook signature verification while triggering. A simple way to do this is using
unsafe_unwrap()instead ofunwrap()in the webhook endpoint during testing only.
Note:
/wh triggerdoes not require/login. It can be used as a local/offline webhook payload generator.
Note: The webhook listening tool will only work with a test mode API key. If you use a live mode API key, it won't work.
This interactive tool guides you through:
- Setting a destination endpoint URL
- Selecting a specific Event to trigger
| Category | Events |
|---|---|
| Subscription | active, updated, on_hold, renewed, plan_changed, cancelled, failed, expired |
| Payment | success, failed, processing, cancelled |
| Refund | success, failed |
| Dispute | opened, expired, accepted, cancelled, challenged, won, lost |
| License | created |
We welcome contributions from the community! Whether you're fixing bugs, adding new features, or improving documentation, your help is appreciated.
Please read our Contributing Guide to get started. We also have a Code of Conduct that we expect all contributors to follow.
- Report bugs and suggest features
- Improve documentation
- Add new CLI commands
- Write tests
- Review pull requests
- Discord Community - Get help and discuss with the community
- GitHub Issues - Report bugs or request features
- Documentation - Learn more about Dodo Payments
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Dodo Payments