This repository contains a UNIX command-line interface (CLI) for CBRAIN.
The interface is implemented in Python using only standard libraries - no external dependencies required.
The main command is called "cbrain" and as is typical for such clients, works with a set of subcommand and options (e.g. "cbrain file list -j") such as:
cbrain file list
cbrain project show
cbrain --json dataprovider list
Before using this CLI, you need to have a CBRAIN service running locally. Follow the setup instructions at:
This CLI tool uses pure Python with no external library dependencies, making installation straightforward.
-
Clone this repository:
git clone https://github.com/aces/cbrain-cli.git cd cbrain-cli
-
Run directly:
./cbrain --help # Make the cbrain script executable by `chmod +x cbrain`
For isolated usage:
# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e .
cbrain login
This CLI interfaces with the CBRAIN REST API. For complete API documentation and specifications, refer to:
This is part of a GSoC (Google Summer of Code) project sponsored by INCF.
The lead developer is axif0, mentored by the developers of the CBRAIN project.
See LICENSE file for details.