Skip to main content

System requirements

The FlexAI CLI is available for the following operating systems and versions:
  • Ubuntu 20.04, 22.04, 24.04
  • macOS 14 and above
  • Windows 10 and Windows 11 (through WSL2 in both cases)

Installation Steps

1
  • Run the installation script
    curl -fsSL https://cli.flex.ai/install.sh | sh
    
    You can review the installation script before running it:
    You can view the installation script at https://cli.flex.ai/install.sh
  • Add it to your system’s $PATH
  • 2
  • Verify your installation As a first step, it’s always a good idea to verify your system can connect to FlexAI and make sure CLI is properly installed. That’s the purpose of the doctor command:
    flexai doctor
    
    You should get a message like this:
    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 available
    Your system is healthy
    
  • Logging in The next step is to log in and authenticate your CLI.

  • Uninstalling the FlexAI CLI

    If you ever need to uninstall the FlexAI CLI, you can do so by removing both the ~/.flexai directory and the reference to the flexai binary from your $PATH variable.