Use the SumUp CLI to create checkouts, manage card readers, and view your account data.
Choose one of the following installation methods:
# Homebrew
brew install sumup/cli/sumup
# mise
mise use -g github:sumup/sumup-cli@latest
# Go
go install github.com/sumup/sumup-cli/cmd/sumup@latestSet the SUMUP_API_KEY environment variable to your SumUp API key:
export SUMUP_API_KEY="your_api_key"You can also pass a key with sumup --api-key "your_api_key" <command>.
sumup --help
sumup readers --help
sumup checkouts create --helpAdd --help to any command to see its options.
Save a default merchant so you do not need to repeat --merchant-code:
# Choose a merchant interactively
sumup context set
# Save a known merchant code without prompting or calling the API
sumup context set --merchant-code M123
# Show the effective merchant and where it came from
sumup context get
# Look up the merchant through the API and include its sandbox status
sumup --json context get --verify
# Clear the saved merchant
sumup context unsetCommands that accept --merchant-code use the flag first, then
SUMUP_MERCHANT_CODE, then the saved merchant. Use
sumup --json context get to check the selection in scripts. The JSON
sandbox field is null until verified or if the API omits sandbox status.
Replace M123 with your merchant code. Use a unique reference for each checkout.
sumup checkouts create \
--reference order-123 \
--amount 19.99 \
--currency EUR \
--merchant-code M123 \
--description "Ticket purchase"List readers for a merchant:
sumup readers list --merchant-code M123Pair a new reader with a pairing code:
sumup readers add \
--merchant-code M123 \
--pairing-code ABCDEF \
--name "Front counter"Start a EUR 14.99 payment on a reader with three tip options.
Replace reader_42 with your reader ID:
sumup readers checkout \
--merchant-code M123 \
--amount 14.99 \
--currency EUR \
--tip-rate 0.10 \
--tip-rate 0.15 \
--tip-rate 0.20 \
--description "In-person order #123" \
reader_42For Pix payments on Brazilian merchants, add --payment-type pix.
To link a payment to your affiliate app, pass both --affiliate-app-id and --affiliate-key.
Use --affiliate-foreign-transaction-id to add your own transaction reference.
Start a payment on a SumUp Go reader. Set --client-transaction-id to a unique ID
for each new payment. Reuse the same ID when retrying that payment to avoid duplicates:
sumup readers go-checkout \
--merchant-code M123 \
--amount 14.99 \
--currency EUR \
--client-transaction-id 19e12390-72cf-4f9f-80b5-b0c8a67fa43f \
reader_42Check the last known status of a paired reader:
sumup readers status \
--merchant-code M123 \
reader_42View or change the menu lock settings on a Solo reader. The reader must be online to change its settings. If it is offline, you can view its last saved settings when available.
sumup readers settings get --merchant-code M123 reader_42
sumup readers settings update --merchant-code M123 --menu-lock-enabled=false reader_42Set SUMUP_READER_MENU_LOCK_PASSCODE to a four-digit PIN to send it with the update.
If the reader has no PIN, include one when you enable menu lock.
Create a short-lived merchant token for a SumUp SDK. This command requires
--json and returns the access token and its remaining lifetime:
sumup --json tokens create --merchant-code M123 --action checkoutUse --json before the command to get results as JSON for scripts.
A successful command with a result writes exactly one JSON value to stdout. Progress, status messages, and errors go to stderr. A failed command exits with a nonzero status.
context set and context unset leave stdout empty in JSON mode. Provide
--merchant-code when running context set with --json. The internal
manpages command writes files and reports their location on stderr in JSON
mode. Help, shell completion, and the --version flag keep their usual
output. Use sumup --json version for JSON build information.
sumup --json readers list --merchant-code M123Enable command completion for your shell:
# bash
source <(sumup completion bash)
# zsh
source <(sumup completion zsh)
# fish
sumup completion fish > ~/.config/fish/completions/sumup.fishRelease archives also include completion scripts for bash, zsh, and fish,
plus a man page at man/man1/sumup.1.gz.
Tables use the width of the output terminal when available. Redirected output
uses plain text, with status prefixes such as Warning: and Error:.
Set NO_COLOR=1 to disable styling in tables, details, and status messages.
Terminal status symbols still appear.
See CONTRIBUTING.md for development setup and contribution guidelines.