Installing the Flywheel CLI
The Flywheel command-line interface (CLI) is an additional Flywheel program you download to use on your computer's Command Prompt (Windows) or Terminal (Linux, Mac) app. It is helpful to have a basic understanding of how the Command Prompt and Terminal apps work to get the most out of the Flywheel CLI. Learn more about the Command Prompt and Terminal app in this introductory article by Codecademy.
Flywheel's CLI is a tool for uploading existing data into Flywheel and downloading data from Flywheel to work with offline.
The Flywheel CLI is also required to start jobs and build gears.
This article explains how to install the Flywheel CLI onto your computer.
Before You Begin
Ensure you have:
System Requirements:
- Operating System: Windows, macOS, or Linux
- Command line access: Command Prompt (Windows) or Terminal (Mac/Linux)
- Basic command line knowledge: Helpful for navigating directories and running commands
- New to command line? See Codecademy's Command Line Introduction
Flywheel Account:
- Active Flywheel account with access to your organization's Flywheel site
- Appropriate permissions to generate API keys (most users have this by default)
For macOS Catalina (10.15) or Later:
- You'll need to make a security exception for the CLI after download
- See macOS Catalina CLI Setup for detailed instructions
Step 1: Download
To download the Flywheel CLI:
- Log into Flywheel.
-
In the upper-right corner, select your account menu and select Profile.

-
Go to the Download Flywheel CLI section and select your computer's operating system.

A zip file with the following name is downloaded to your computer:
-
Linux:
fw-linux_amd64.zip - OS X:
fw-darwin_amd64.zip - Windows:
fw-windows_amd64.zip
Step 2: Generate an API Key
To start using the CLI to interact with your Flywheel site, generate an API key from your Profile page. Learn more about creating User API Keys from the Profile page.
Step 3: Navigate to the fw.exe or fw app
Follow the steps for your OS: Windows or Linux/Mac.
Windows
-
Double-click
fw-windows_amd64<version_number>to unzip the file. There will be afw.exefile inside. This is the Flywheel CLI program. -
Open the Command Prompt as an administrator.
-
From the start menu, search Command.
Command Prompt appears as one of the results.
-
Right click on Command Prompt and choose Run as Administrator.

-
In the Command Prompt, navigate to the folder containing the Flywheel CLI or
fw.exe. E.g.,cd C:\Users\[username]\Downloads\windows_amd64*
Tip
To quickly add the file path to Command Prompt, drag and drop the folder icon containing
fw.exefile. The filepath will automatically be added to the command. -
Continue to Step 4: Log in your Flywheel instance
Linux and Mac
- Open the Terminal app.
- Unzip the file.
- If you are using macOS 10.15 Catalina release (or later), follow these steps to make a security exception for the Flywheel CLI.
- Right-click on fw, and click Open.
- Click Open on the warning prompt.
- In Terminal, navigate to the Flywheel CLI. For example:
- Mac:
cd ~/Downloads/darwin_amd64* - Linux:
cd ~/Downloads/fw-linux_amd64/linux_amd64*
- Mac:
- Continue to Step 4: Log in from the CLI
Step 4: Log in from the CLI
- Copy the API key generated from Step 2 above.
-
In Terminal or Command Prompt, enter:
-
Windows:
fw.exe login <API_key>For example:

-
Mac/Linux:
<filepath to fw> login <API_key>For example:

-
The following message appears:
The Flywheel CLI is now installed! Read our article about how to import data with the CLI.
Verify Success
Confirm your CLI installation is working correctly:
1. Check Authentication
Run the status command:
Expected output:
2. Test Basic Commands
Try listing your available groups:
This should display groups you have access to with your permission levels.
3. Check CLI Version
Verify you have the latest version:
Output example:
Next Steps
After successful installation:
- Add CLI to PATH (optional): See instructions below to run
fwfrom any directory - Import your first dataset: Follow our data import guides
- Explore CLI commands: Review CLI examples and command reference
- Configure for convenience: Set up a CLI configuration file for frequently-used options
Optional Step: Add fw to your PATH
Notice in the steps above that you must include the full filepath for the fw application when you enter a command. Add it to your system PATH to run commands from any directory without specifying the full path.
Adding the Flywheel CLI to your PATH means that you only need to use fw to invoke the Flywheel CLI. If you want to learn more about the PATH variable, see this article by Oracle.
Windows
- To begin, move the
fworfw.exefile to a more permanent location on your computer. For example:C:\Program Files\Common Files - Open the start menu and search for advanced system settings, and click View advanced system settings.
- Click Environment Variables.
- Select PATH from the list, and click Edit.
-
Click New, and enter the filepath to
fw.exe.For example
C:\Users\IEUser\FlywheelCLI -
Click OK in each window.

-
In the command prompt, enter
fw status.The CLI shows your login information.
Mac and Linux
-
In Terminal, enter the following command:
sudo mv ./fw /usr/local/bin -
To confirm
fwwas added to your PATH, enter:fw status