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:
/home/<home>/.config/optitechctl/credentials.jsonnote
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-keyoption, if provided. - The
OPTITECH_API_KEYenvironment variable, if set. - The
credentials.jsonfile created byoptitech auth. - If none are found, the CLI starts the
optitech authweb authentication flow.
Options
Takes only the global options.