Skip to main content
The CLI supports two ways to authenticate: an interactive login for your development machine, and an API key for non-interactive use such as CI pipelines, scripts, and AI agents.

Interactive login

To log in, run the login command.
Retrieve your authentication token from the Secrets page.
Paste the token into the CLI.

API key

The login command prompts for a token, which makes it unsuitable for anything non-interactive. To authenticate without a prompt, export the MIRU_API_KEY environment variable instead.
No login is required when MIRU_API_KEY is set. To create an API key, follow the instructions in the API keys section. To determine which scopes the key needs, find the command you want to run in the CLI Reference and consult its API key scopes section. For using the CLI in a CI pipeline, see the CI/CD guide.
Last modified on August 14, 2026