Reference

apex login

Sign the CLI in through the browser; the token is saved for this user only

apex login [options]
Options
OptionDescription
--no-browserprint the URL to open instead of opening a browser

Examples

Sign in through the browser; the token is saved for your user only.

apex login

On a machine without a browser: print the approval URL to open elsewhere.

apex login --no-browser