Skip to main content

Installation

Go Install

From Source

Quick Start

Set your API key:
Basic command structure:
Create a checkout session:

Global Flags

Common Commands

Payments

Customers

Subscriptions

Products

Usage-Based Billing

Ingest Events

Manage Meters

Output Formats

JSON (for scripting)

Pretty (for reading)

Interactive Explore

Transform with gjson

Use --format json with jq for powerful data processing in shell scripts.

Scripting Example

Shell Completion

Enable auto-completion:

Available Resources

The CLI provides commands for 24 resource categories:
  • checkout-sessions - Checkout session management
  • payments - Payment operations
  • subscriptions - Recurring billing
  • customers - Customer accounts
  • products - Product catalog
  • licenses - Software licensing
  • refunds - Payment refunds
  • disputes - Payment disputes
  • webhooks - Event webhooks
  • meters - Usage meters
  • usage-events - Usage tracking
  • discounts - Discount codes
  • payouts - Seller payouts
  • brands - Multi-brand management
  • Plus 10 additional resources
Use dodopayments --help to see all available resources and dodopayments [resource] --help for resource-specific commands.

Resources

GitHub Repository

View source code and releases

API Reference

Complete API documentation

Support

Need help with the CLI?