About CLI

Learn about the Razorpay CLI, a command-line tool to interact with Razorpay APIs directly from your terminal.


The Razorpay CLI is a command-line tool that lets you interact with Razorpay APIs directly from your terminal. Instead of writing code or using the Dashboard, you can manage resources, test integrations and automate workflows with simple commands.

  • 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.

The CLI wraps Razorpay's REST APIs into terminal commands. After installing and configuring it with your API credentials, you can run commands like:

razorpay orders create --amount 50000 --currency INR

This is equivalent to making a POST /v1/orders API call with the specified parameters.

Before you start, ensure you have:

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

The CLI is available for the following operating systems:


Was this page helpful?


razorpay cli
command line interface
cli tool
developer tools