Installation
Prerequisites
Section titled “Prerequisites”NEMAR CLI requires Bun runtime (v1.0+).
Install Bun
Section titled “Install Bun”# macOS, Linux, WSLcurl -fsSL https://bun.sh/install | bash
# Windows (PowerShell)powershell -c "irm bun.sh/install.ps1 | iex"
# Homebrewbrew install oven-sh/bun/bunFor Dataset Operations
Section titled “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
Section titled “Install NEMAR CLI”Using Bun
Section titled “Using Bun”# Install globallybun install -g nemar-cli
# Or run directly without installingbunx nemar-cli --helpFrom Source
Section titled “From Source”git clone https://github.com/nemarOrg/nemar-cli.gitcd nemar-clibun installbun linkInstall Optional Dependencies
Section titled “Install Optional Dependencies”# Using Homebrewbrew install git-annex datalad deno
# Or using condaconda install -c conda-forge datalad git-annexLinux (Ubuntu/Debian)
Section titled “Linux (Ubuntu/Debian)”# Install git-annexsudo apt-get updatesudo apt-get install -y git-annex
# Install DataLadpip install datalad
# Install Denocurl -fsSL https://deno.land/install.sh | shWindows (WSL)
Section titled “Windows (WSL)”We recommend using Windows Subsystem for Linux (WSL) for the best experience:
# In WSL Ubuntusudo apt-get install git-annexpip install dataladVerify Installation
Section titled “Verify Installation”# Check CLI versionnemar --version
# Check Bunbun --version
# Check optional dependencies (for dataset operations)git --versiongit-annex versiondatalad --versiondeno --versionTroubleshooting
Section titled “Troubleshooting””command not found: nemar”
Section titled “”command not found: nemar””Ensure Bun’s bin directory is in your PATH:
# Add to ~/.bashrc or ~/.zshrcexport PATH="$HOME/.bun/bin:$PATH"Next Steps
Section titled “Next Steps”- Quick Start - Upload your first dataset
- Authentication - Set up your NEMAR account