Skip to main content

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

ShortLongRequiredDescription
-i--interactivenoInteractive by opening a browser for device log-In
-in--if-needednoSkip 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 -i so the browser opens automatically in that fallback case. Ideal for setup scripts that re-run often.