Installation¶
Prerequisites¶
NEMAR CLI requires Bun runtime (v1.0+).
Install Bun¶
# macOS, Linux, WSL
curl -fsSL https://bun.sh/install | bash
# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"
# Homebrew
brew install oven-sh/bun/bun
For Dataset Operations¶
- DataLad (v1.0+) - For dataset upload/download
- git-annex (v10+) - Large file management
- Deno (v1.40+) - For BIDS validation
Install NEMAR CLI¶
Using Bun¶
# Install globally
bun install -g nemar-cli
# Or run directly without installing
bunx nemar-cli --help
From Source¶
Install Optional Dependencies¶
macOS¶
# Using Homebrew
brew install git-annex datalad deno
# Or using conda
conda install -c conda-forge datalad git-annex
Linux (Ubuntu/Debian)¶
# Install git-annex
sudo apt-get update
sudo apt-get install -y git-annex
# Install DataLad
pip install datalad
# Install Deno
curl -fsSL https://deno.land/install.sh | sh
Windows (WSL)¶
We recommend using Windows Subsystem for Linux (WSL) for the best experience:
Verify Installation¶
# Check CLI version
nemar --version
# Check Bun
bun --version
# Check optional dependencies (for dataset operations)
git --version
git-annex version
datalad --version
deno --version
Troubleshooting¶
"command not found: nemar"¶
Ensure Bun's bin directory is in your PATH:
Next Steps¶
- Quick Start - Upload your first dataset
- Authentication - Set up your NEMAR account