Command-line interface for the Monta Partner API. Every Partner API endpoint is available as a CLI command, dynamically generated from the OpenAPI spec.
jqnpm install -g @monta-api/cli
monta --help
npx @monta-api/cli charge-points list --help
Download the launcher script — it downloads and caches the CLI bundle, auto-updating every 24 hours.
macOS / Linux:
curl -o monta-cli.sh https://partner-api-mcp.monta.app/scripts/monta-cli.sh
chmod +x monta-cli.sh
./monta-cli.sh --help
Windows:
curl -o monta-cli.bat https://partner-api-mcp.monta.app/scripts/monta-cli.bat
monta-cli.bat --help
You'll need Monta Partner API credentials — create them in Monta Hub (how to set up API keys).
# 1. Store your credentials
monta --client-id YOUR_ID --client-secret YOUR_SECRET auth login
# 2. Verify authentication
monta auth whoami
# 3. List your charge points
monta charge-points list
# 4. Get a specific charge point
monta charge-points get 12345
# 5. Try table output
monta charge-points list -o table
Or use environment variables:
export MONTA_CLIENT_ID=your_client_id
export MONTA_CLIENT_SECRET=your_client_secret
monta charges list
| Format | Flag | Use case |
|---|---|---|
json |
-o json |
Default. Pretty-printed JSON |
raw |
-o raw |
Compact JSON for piping to jq or LLMs |
table |
-o table |
Human-readable ASCII table |
csv |
-o csv |
Export to spreadsheets |
For complete command documentation, authentication details, profiles, and CI/CD examples, see the @monta-api/cli package on npm — the full CLI reference (CLI.md) ships with the package.