Skip to main content
The Razorpay CLI lets you interact with Razorpay APIs directly from your terminal. Use it to test integrations, trigger events, manage resources and automate workflows in your CI/CD pipelines. The source code is available on GitHub. To install the Razorpay CLI, you must complete the following actions:
  1. Download and Install the Binary
  2. Configure Your API Credentials

Step 1: Download and Install the Binary

Quick Install (macOS and Linux)

Run the install script to automatically detect your OS and architecture, download the latest binary, and install it to ~/.local/bin:
Bash

Homebrew (macOS)

Bash

Scoop (Windows)

PowerShell
PowerShell
Select the tab for your operating system and follow the steps.
  1. Download the binary. Download the binary that matches your CPU architecture.
Or download using curl:Apple Silicon:
Bash
Intel:
Bash
  1. Extract the archive.
Bash
  1. Make the binary executable and remove the macOS quarantine attribute.
Bash
  1. Move the binary to your execution path.
Bash
  1. Verify the installation.
Bash

Step 2: Configure Your API Credentials

After installing the CLI, configure it with your API credentials to start making requests. Generate your keys from the Razorpay Dashboard. You can configure credentials in two ways: Option 1: Pass credentials directly in the command
Bash
Option 2: Use the interactive prompt Run the command without arguments and enter your credentials when prompted:
Bash
Bash
Test Mode and Live ModeThe CLI supports both Test Mode and Live Mode keys. Use Test Mode keys (prefixed with rzp_test_) while building and testing your integration.
Verify Your SetupOnce configured, run razorpay --version to confirm the CLI is installed and ready to use.