LogIn
LogIn to the configured identity services.
Examples
Basic usage:
octo-cli -c LogIn -i
Non-disruptive: only opens a browser if the token cannot be refreshed:
octo-cli -c LogIn -i -in
Options
| Short | Long | Required | Description |
|---|---|---|---|
-i | --interactive | no | Interactive by opening a browser for device log-In |
-in | --if-needed | no | Skip the login when the stored token is still valid or can be refreshed silently; only fall back to a device log-in when neither is possible |
Notes
--if-needed(-in) first checks whether the current access token is still valid; if not, it tries a silent refresh-token exchange. A device log-in is only started when both fail. Combine with-iso the browser opens automatically in that fallback case. Ideal for setup scripts that re-run often.