ocpplab-cli
ocpplab-cli is a single binary generated from the OCPPLab API. Every operation in the API Reference is a command, grouped by domain:
Install
Install it with npm. npm downloads only the binary for your platform: macOS and Linux on x64 or arm64, and Windows on x64.
Or run it once without installing:
Sign in
auth login opens your browser: sign in, choose the organization, and select Allow. The CLI keeps the access and refresh tokens in your OS keyring and refreshes them on its own. On a machine without a browser, such as CI, set OCPPLAB_TOKEN to an SDK token instead. When both are set, OCPPLAB_TOKEN wins.
Your first commands
Nested fields are flags with dots (--target.identity), or pass a whole object as JSON (--target '{"identity": "DEMO-CP-001"}').
Find a command
Use it from an AI agent
The CLI prints JSON when its output is piped, and describes itself as JSON:
To give an agent the API as tools instead, see MCP.