Skip to main content

Flexai CLI: General Usage Commands

A set of commands that manage the CLI tool and its connection to FlexAI Cloud Services (FCS).

flexai auth

Manages the authentication state of the CLI.

flexai auth

auth login

Initiates the authentication flow of the CLI against the FCS authentication service.

flexai auth login

Example

flexai auth login
Please 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

Logs out the current user from the CLI.

flexai auth logout

flexai doctor

Runs diagnostics to identify potential issues and check if the host system is ready to run the CLI.

flexai doctor

Example

flexai doctor
Running doctor checks...
[1/3] ✅ BinaryInPath
[2/3] ✅ BackendServer
[3/3] ✅ UpdateServer
Your system is healthy

flexai update

Updates the CLI to the latest version.

flexai update

flexai version

Prints out the CLI's version SHA hash.

flexai version

Example

flexai version
ae9c1508a46146a6b071dddbbb374c76c1147bcd