The folder
command should be used if you are importing data that you previously downloaded from Flywheel, or if you are importing data that was shared from another Flywheel site. This article explains how to use the ingest folder and import folder commands.
The folder
command requires your directory of data to exactly match the the Flywheel hierarchy. Below is the basic Flywheel hierarchy:

- Follow these instructions to download and install the Flywheel CLI. If you cannot download the Flywheel CLI to your computer, you can upload smaller batches of files using your web browser.
- If the directory you are importing does not exactly match the directory shown in the image above, consider using another method to import your images. For example, if all of your images are DICOMS, consider using our dicom importer to automatically determine containers in Flywheel for your data. This option also groups images by subjects and sessions. Learn about the other ways to import data.
Steps for ingest folder
Use the ingest folder command unless you have been instructed by Flywheel support or your Site Admin to use the legacy command, import folder.
- Open Terminal.
- Note the location of the parent folder for your data.
- If your DICOM images are in a .zip file, unzip them.
-
Enter the ingest folder command:
fw ingest folder <optional flags> --group <groupid> --project <projectlabel> --dicom <folder with images> <SRC>
For example:
fw ingest folder --group psychology --project MyProject --dicom dcm001 ~/Desktop/MultiCenterStudy
- The
--group
and--project
flags designates where in Flywheel the data should be imported. This overwrites whatever the name of the folder is in the directory you are uploading. - The
--dicom
flag takes subfolders with DICOM images, analyzes them, zips them, and adds them as acquisitions.The--dicom
flag is required if you enabled project, group, or site de-id profiles for de-identification. - Review the hierarchy and scan summary to make sure it matches what you expect.
- Enter yes to begin importing.
The Flywheel CLI displays its import progress - Sign in to Flywheel to view your data.
Steps for import folder
Unsupported upload method for site, group, or project de-id profiles
Use one of these supported methods if you use site, group, or project de-id profiles.
Follow these steps to import your structured directory to Flywheel:
-
Open Terminal or Windows Command Prompt.
-
Note the location of the parent folder for your data.
-
Enter the import folder command:
fw import folder <Folder you are importing> <optional flags>
For example:
fw import folder ~/Desktop/MultiCenterStudy --group psychology --dicom dicomsubfolder1
The
--group
flag designates a group in Flywheel where the data should be imported. This overwrites whatever the name of the folder is in the directory you are uploading. The--dicom
flag takes subfolders with DICOM images, analyzes them, zips them, and adds them as acquisitions. Learn more about the optional flags for the import folder command. -
Review the hierarchy and scan summary to make sure it matches what you expect.
-
Enter yes to begin importing.
The Flywheel CLI displays its import progress -
Sign in to Flywheel to view your data.
Each level in the Flywheel hierarchy must be specified during import. This means you must either:
-
Have a folder for each container (Group, Project, Subject, Session, Acquisitions, and images) OR
-
Manually configure the container using an optional flag. For example:
--group <groupID>
or--project <project label>
. For more information about the optional flags, see our reference guide.