doctor
Runs diagnostics to identify potential issues and check if the host system is ready to run the CLI.
flexai doctor
Examples
Section titled “Examples”flexai doctor
A healthy system
Section titled “A healthy system”Running doctor checks...[1/4] ✅ The FlexAI binary file is part of the system's $PATH variable[2/4] ✅ Successfully connected to the FlexAI API server[3/4] ✅ Successfully connected to the FlexAI update server[4/4] ✅ Using the latest FlexAI CLI version availableYour system is healthy
The FlexAI binary file is not part of the system’s $PATH variable
Section titled “The FlexAI binary file is not part of the system’s $PATH variable”Running doctor checks...[1/4] ❌ The FlexAI binary file is part of the system's $PATH variable[2/4] ✅ Successfully connected to the FlexAI API server[3/4] ✅ Successfully connected to the FlexAI update server[4/4] ✅ Using the latest FlexAI CLI version availableYour system is not healthy
To fix this:
Add the ~/.flexai/bin
directory to your $PATH
:
echo 'export PATH="$PATH:$HOME/.flexai/bin"' >> ~/.bashrc && source ~/.bashrc
echo 'export PATH="$PATH:$HOME/.flexai/bin"' >> ~/.zshrc && source ~/.zshrc
echo 'set -gx PATH $PATH $HOME/.flexai/bin' >> ~/.config/fish/config.fish && source ~/.config/fish/config.fish
echo 'export PATH="$PATH:$HOME/.flexai/bin"' >> ~/.bashrc && source ~/.bashrc
Please note that you will need to update the
PATH
variable of your WSL2 Linux environment, not the Windows one.
The default Linux distribution installed with WSL2 is Ubuntu, which by default uses the bash
shell:
The FlexAI API server is not reachable
Section titled “The FlexAI API server is not reachable”Running doctor checks...[1/4] ✅ The FlexAI binary file is part of the system's $PATH variable[2/4] ❌ Successfully connected to the FlexAI API server[3/4] ✅ Successfully connected to the FlexAI update server[4/4] ✅ Using the latest FlexAI CLI version availableYour system is not healthy
Check your internet connection and try again.
The FlexAI update server is not reachable
Section titled “The FlexAI update server is not reachable”Running doctor checks...[1/4] ✅ The FlexAI binary file is part of the system's $PATH variable[2/4] ✅ Successfully connected to the FlexAI API server[3/4] ❌ Successfully connected to the FlexAI update server[4/4] ✅ Using the latest FlexAI CLI version availableYour system is not healthy
Check your internet connection and try again.
The FlexAI API servers are not reachable
Section titled “The FlexAI API servers are not reachable”Running doctor checks...[1/4] ✅ The FlexAI binary file is part of the system's $PATH variable[2/4] ❌ Successfully connected to the FlexAI API server[3/4] ❌ Successfully connected to the FlexAI update server[4/4] ✅ Using the latest FlexAI CLI version availableYour system is not healthy
Check your internet connection and try again.
An update is required, run flexai update
to get the latest version
Section titled “An update is required, run flexai update to get the latest version”Running doctor checks...[1/4] ✅ The FlexAI binary file is part of the system's $PATH variable[2/4] ✅ Successfully connected to the FlexAI API server[3/4] ✅ Successfully connected to the FlexAI update server[4/4] ❌ Not using the latest FlexAI CLI version availableYour system is not healthy
To fix this, run:
flexai update