What You Can Do with the CLI
- Create and manage resources: Create orders, fetch payments, issue refunds and more using straightforward commands.
- Test your integration: Quickly make API calls in Test Mode to validate your integration without writing additional code.
- Debug faster: Inspect API responses directly in your terminal to troubleshoot issues.
How It Works
The CLI wraps Razorpay’s REST APIs into terminal commands. After installing and configuring it with your API credentials, you can run commands like:Bash
POST /v1/orders API call with the specified parameters.
Prerequisites
Before you start, ensure you have:- A Razorpay account.
- API keys generated from the Razorpay Dashboard.
Supported APIs
The Razorpay CLI provides access to the following APIs:- Orders: Create and manage orders
- Payments: Fetch and manage payment transactions
- Downtime: Check payment downtime status
- Settlement: Access settlement data
- Instant Settlement: Manage on-demand instant settlements
- Refunds: Process and track refunds
- Disputes: View and manage payment disputes
- Documents: Upload and manage documents
- Customers: Create and manage customers
- Payment Links: Generate and share Payment Links
- QR Code: Create and manage QR code payments
- Invoices: Create and manage invoices
- Subscriptions: Manage subscription plans and billing
- Route: Manage transfers and linked accounts
- Smart Collect: Create and manage virtual accounts
Supported Platforms
The CLI is available for the following operating systems:Next Steps
Install the Razorpay CLI
Download, install and configure the CLI on macOS, Linux or Windows.