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)
mpcli payments, mpcli cardsCheckout API
mpcli advanced-paymentsCheckout API
mpcli preferencesCheckout Pro
mpcli ordersCheckout Pro
Checkout API
mpcli merchant-ordersMarketplace
mpcli subscriptions, mpcli subscription-plansSubscriptions
mpcli pos, mpcli storesPoint
QR code
mpcli shippingShipping
mpcli chargebacksAll products.
mpcli reports releases, mpcli reports settlementsAll products.
mpcli oauthAll products.

How to use commands

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

bash

mpcli --help
mpcli payments --help

Output format

By default, all commands return a JSON:

bash

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

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

text

$ mpcli 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. See the details for each one below:

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 mpcli docs [product] — for example, mpcli docs payments.

Command reference