flexai auth
Manages the authentication state of the CLI.
auth login
Section titled “auth login”Initiates the authentication flow of the CLI against the FlexAI authentication service.
Depending on the host system’s capabilities, the “Login URL” will be opened automatically or printed out for manual access by clicking on it or copying and pasting it into a web browser.
Login details are stored in the host system’s ~/.flexai/config.yaml
file.
flexai auth login
Examples
Section titled “Examples”A system that supports opening URLs automatically:
flexai auth loginOpening the browser...
A system that does not support opening URLs automatically:
flexai auth loginPlease visit the following URL in your browser to authenticate:https://api.flex.ai/api/v1/auth/login?redirect_endpoint=%2Fcallback&redirect_host=localhost%3A1337&redirect_scheme=http
auth logout
Section titled “auth logout”Logs the current user out of the CLI.
This command will remove the authentication tokens from the host system’s ~/.flexai/config.yaml
file.
flexai auth logout
Examples
Section titled “Examples”Logging from an authenticated session:
flexai auth logoutYou have been signed out.
Logging from an unauthenticated session:
flexai auth logoutYou are not signed in.