> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flex.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# General Usage Commands

> General CLI commands for authentication, diagnostics, and updates

A set of commands that manage the CLI tool and its connection to FlexAI:

* [`flexai auth`](/cli/reference/general/auth) - Authenticates the CLI.
  * [`flexai auth login`](/cli/reference/general/auth##auth-login) - Logs the current instance of the FlexAI CLI in.
  * [`flexai auth logout`](/cli/reference/general/auth##auth-logout) - Logs the current account out of the CLI.
* [`flexai auth user`](/cli/reference/general/user) - Displays details about the current user.
  * [`flexai auth user`](/cli/reference/general/user/info) - Displays detailed information about the current user.
  * [`flexai auth user`](/cli/reference/general/user/orgs) - Displays detailed information about the current user's organizations.
  * [`flexai auth user`](/cli/reference/general/user/set-default-org) - Sets the default organization for the current user.
* [`flexai doctor`](/cli/reference/general/doctor) - Runs a set of tests to check if the CLI is working properly.
* [`flexai update`](/cli/reference/general/update) - Updates the CLI to the latest version.
* [`flexai version`](/cli/reference/general/version) - Prints out the CLI's version SHA hash.
