Install
@gojinko/cli 2.0 targets the canonical jinko-api /v1 surface. Upgrading is opt-in — the 1.x line keeps working unchanged against the legacy routes, which stay served during the transition. Upgrade when you’re ready; nothing forces a cutover.Authenticate
OAuth:First request
Environments (prod / sandbox)
The CLI targets production by default. Use--env sandbox to run the full flow against the sandbox environment (isolated data, separate API keys) before going live:
| Environment | API base | Flag |
|---|---|---|
| Production (default) | https://api.gojinko.com | --env prod |
| Sandbox | https://api.sandbox.gojinko.com | --env sandbox |
Prod and sandbox keys are stored separately in
~/.jinko/config.yaml, so you keep both and switch with --env. JINKO_ENV=sandbox and the raw JINKO_API_BASE override also work.