The fw download
Command
Sessions, acquisitions, and files can be downloaded individually using the fw download
command.
Usage
fw download [-h] [--config-file CONFIG_FILE | --no-config] [-y] [--ca-certs CA_CERTS] [--timezone TIMEZONE] [--debug | --quiet] [-o [OUTPUT]] [-p PREFIX] [-i INCLUDE] [-e EXCLUDE] <source-path>
Required Arguments
Required Argument | Description |
---|---|
source-path | The location of the file on your Flywheel instance. For example [fw://group/project/subject/acquisition/attachments] |
Optional Arguments
Download
For a full, up-to-date list of options, run the following from your command line:
fw download --help
Below is a list of commonly used options.
Optional Argument | Description |
---|---|
-i FILE_TYPE , --include FILE_TYPE | Download only files with the specified types.* |
-e FILE_TYPE , --exclude FILE_TYPE | Ignore files with the specified types.* |
-o , --output file name | Name of the folder where the data is downloaded |
-p PREFIX , --prefix PREFIX | Prefix for downloaded directory structure |
* Learn more about file types in Flywheel
General
Optional Argument | Description |
---|---|
-h , --help | Show help message and exit. |
-C PATH , --config-file | Specify configuration options via config file.* |
--no-config | Do NOT load the default configuration file. |
-y , --yes | Assume the answer is yes to all prompts. |
--ca-certs CA_CERTS | Path to a local Certificate Authority certificate bundle file. This option may be required when using a private Certificate Authority. |
--timezone TIMEZONE | Set the effective local timezone to use when uploading data. |
-q , --quiet | Squelch log messages to the console. |
-d , --debug | Turn on debug logging. |
-v , --verbose | Get more detailed output. |
* Learn more about how to create this file.
Example
Below is an example of how to download a particular subject:
-
Download the Flywheel CLI, and sign in using your API key. Once signed in, the following message should appear:
-
Now you can navigate to the files you wish to download. In this example, we're navigating to the subjects in the
AnxietyStudy
project:Tip
If a project or subject's name includes spaces, use quotes around the name. For example:
Psychology/"An example study"
-
To download one of those subjects: