Home Payment Gateway Payment Links Payment Pages Payment Buttons QR Codes Instant Settlement Invoices Smart Collect Subscriptions International Payments Razorpay POS Razorpay TokenHQ Optimizer App Store Payments Mobile App Magic Checkout UPI AutoPay Payment Gateway Payment Links Payment Buttons RazorpayX Source to Pay Payouts Payout Links View Live Demo Current Account Escrow+ Account Forex/FDI Transfers Bank Account Verification Tax Payments Digital Lending 2.0 Razorpay Capital Line of Credit Company Registration Current Accounts Vendor Payments Payroll Partners For Startups & SMEs For Enterprises Pricing Blog Learn Events White papers Customer Stories Developer Docs Integrations API Reference Onboarding APIs SaaS E-commerce Education BFSI Freelance GST Calculator Online TDS Payment GST Number Search GST Search by PAN ROI Calculator CAGR Calculator EBITDA Calculator Raise a request Knowledgebase Chargeback Guides Settlement Guides Product Recommender Razorpay Curlec Razorpay Demo Razorpay Documentation Chargeback Blog

Razorpay Command Line Interface

Razorpay Command Line Interface

A tool that brings your entire payments stack to the

command line - for developers who want to build faster, automate smarter, and let AI agents work without interruption.

A tool that brings your entire payments stack to the command line - for developers who want to build faster, automate smarter, and let AI agents work without interruption.

Razorpay Command Line Interface

Razorpay Command Line Interfa

A tool that brings your entire payments stack to the command line - for developers who want to build faster, automate smarter, and let AI agents work without interruption.

Built for the

Agentic Era

One command. No browser. No context switch. Every Razorpay operation is available from your terminal. For developers who live in their tools, and the AI agents that work in the same environment the CLI removes every unnecessary detour.

One command. No browser. No context switch. Every Razorpay operation is available from your terminal. For developers who live in their tools, and the AI agents that work in the same environment the CLI removes every unnecessary detour.

One command. No browser. No context switch. Every Razorpay operation is available from your terminal. For developers who live in their tools, and the AI agents that work in the same environment the CLI removes every unnecessary detour.

Supported Agents

Any terminal-native agent

What teams build with it.

What teams build with it.

Full control. Zero friction.

Full control.
Zero friction.

Everything you would do on the dashboard and everything your agents need. From a single composable tool.
Everything you would do on the dashboard and everything your agents need. From a single composable tool.

Terminal-native payments

Create orders, fetch payments, issue refunds, and manage resources with clean, composable commands. No browser ever required.

Agentic by design

Claude Code, Cursor, and Codex can now interact with Razorpay natively mid-session. Your agent treats it like git or npm. It just works.

Debug without leaving your editor

Inspect full API responses directly in the terminal. Stay in flow when something breaks in production, no login, no navigation.

CI/CD ready

Drop Razorpay operations into shell scripts, Makefiles, and CI pipelines. The CLI fits naturally into any automation workflow without additional SDKs.

Structured output

Every response comes back as JSON, YAML, or TOML. Compose naturally with jq, grep, or any shell toolchain you already use.

Test and Live mode

Switch between Test and Live credentials seamlessly. Build with confidence before going to production, no separate environment setup.

Install CLI in just 2 steps

Install the binary, add your API credentials, and you have the full Razorpay API from your terminal.

  1. Install The Binary

Quick install

macOS / Linux

curl -fsSL https://razorpay.com/cli/latest/install.sh | bash

  1. Configure Credentials

Run the command

razorpay configure --key-id rzp_test_xxxxxxxxxxxx --key-secret xxxxxxxxxxxxxxxxxxxx

Every Razorpay capability.

Every Razorpay capability. On the command line.

On the command line.

Supported APIs

Orders

Payments

Refunds

Payment Links

Settlements

Instant Settlements

Subscriptions

Customers

Invoices

Disputes

QR Code

Route

Smart Collect

Documents

Downtime