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
- macOS
- Linux
- Windows
- Download the binary. Download the binary that matches your CPU architecture.
Or download using curl:Apple Silicon:
Bash
Bash
- Extract the archive.
Bash
- Make the binary executable and remove the macOS quarantine attribute.
Bash
- Move the binary to your execution path.
Bash
- 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 commandBash
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.