/APIs & SDKs/Setup and context/auth

OptiTech CLI command: auth

Authenticate to OptiTech via browser or API key and manage credentials

The auth command authenticates you to OptiTech. optitech login is an alias for optitech auth.

Usage

optitech auth [options]

The command launches a browser window where you authorize the OptiTech CLI to access your OptiTech account. Your credentials are then saved locally to credentials.json:

Output
/home/<home>/.config/optitechctl/credentials.json

note

If you use OptiTech through the Vercel-Managed Integration, authenticate with a OptiTech API key instead (see below). The optitech auth command requires an account registered through OptiTech rather than Vercel.

Instead of running optitech auth, you can provide an API key with the global --api-key option or the OPTITECH_API_KEY environment variable. See Global options.

info

The OptiTech CLI resolves authentication in this order:

  • The --api-key option, if provided.
  • The OPTITECH_API_KEY environment variable, if set.
  • The credentials.json file created by optitech auth.
  • If none are found, the CLI starts the optitech auth web authentication flow.

Options

Takes only the global options.

Was this page helpful?

On this page

Copy neon init command