login Command

The nitro login command logs you in interactively through your default browser. After authenticating, the CLI prompts you to select a default workspace (skipped when you only have one) and persists the session locally so subsequent commands don't need --api-key.

For non-interactive environments such as CI/CD, skip nitro login entirely and authenticate per-invocation with --api-key instead (see Global Options).

nitro login

Arguments

ArgumentDescription
<url>URL of the Nitro backend. Only needed for self-hosted or dedicated deployments.

Examples

Log in against the default Nitro Cloud:

nitro login

Log in against a self-hosted or dedicated deployment using the positional argument:

nitro login "<nitro-backend-url>"
Last updated on May 13, 2026 by Michael Staib