AI resources

Commands

The Mercado Pago CLI provides commands to operate our main integrable products directly from the terminal. Check the commands available by product, how to use them, and the complete reference for each one.

Commands by product

CommandAvailability by product(s)
mp payments, mp cardsCheckout API
mp preferencesCheckout Pro
mp ordersCheckout Pro
Checkout API
mp merchant-ordersMarketplace
mp subscriptions, mp subscription-plansSubscriptions
mp pos, mp storesPoint
QR code
mp chargebacksAll products.
mp reports releases, mp reports settlementsAll products.
mp oauthAll products.

How to use commands

All CLI commands follow the pattern mp [resource] [action] [flags]. You can check the available options for any command using the --help flag:

bash

mp --help
mp payments --help

Output format

By default, all commands return a JSON:

bash

mp payments list
# { "status": "success", "data": { "results": [...] } }

For a readable tabular output, use the --table flag. See an example below:

bash

$ mp payments list --table
ID            STATUS    AMOUNT   METHOD          DATE
12345678      approved  $ 99.90  account_money   2025-01-01T...

Global flags

Any command accepts the following flags to control output format, authentication, or specific interactive behavior. Learn more about each one:

FlagShortcutDescription
--tableFormatted tabular output.
--silent-sSuppress spinners and ANSI colors.
--verbose-vDisplay HTTP headers.
--profile-pCredentials profile to use.
--idempotency-keyIdempotency key for POST/PUT.
--dataRequest body via JSON file (@payload.json).
--no-interactiveDisable prompts (CI/CD).
--no-colorDisable colored output.

Exit codes

In scripts and pipelines, the Mercado Pago CLI returns an exit code at the end of each execution. Use these values to handle errors programmatically:

CodeMeaning
0Success.
1General error.
2Authentication error.
3Validation error.
4Rate limit.
To open the API reference for any product directly in the browser, use mp docs [product] — for example, mp docs payments.

Command reference