Skip to main content
The Grid CLI lets you interact with the Grid API directly from your terminal — manage customers, send payments, create quotes, and test in sandbox without writing any code.

Grid CLI

Open-source CLI built with Node.js and TypeScript.

Installation

Prerequisites: Node.js v20 or v22 is required.

Configuration

Configure your credentials interactively:
This prompts for your API Token ID and Client Secret, validates them, and saves to ~/.grid-credentials. Alternatively, set environment variables:

Commands

Short aliases are available: cust for customers, tx for transactions, acct for accounts.

Example: Send USDC to a Mexico Bank Account

1

Create a customer

2

Create an external CLABE account for the customer

3

Create a quote

4

In sandbox, simulate the USDC deposit

5

Check transaction status

All amounts are in the smallest currency unit (e.g., cents for USD, satoshis for BTC). Quotes expire in 1–5 minutes.