The nemar-cli package provides a command-line interface for managing datasets within NEMAR (Neuroelectromagnetic Data Archive and Tools Resource), an initiative focused on curating and sharing human neuroelectromagnetic (EEG, MEG, iEEG) data. It facilitates interaction with BIDS-formatted datasets, often leveraging DataLad for version control and data management, and integrating with resources like OpenNeuro. This CLI is designed to help researchers create, update, and manage neuroimaging datasets, particularly those with restrictive licenses that prevent hosting on fully public repositories, while still ensuring free access for academic use. The current stable version is 0.7.26, indicating active development with potential for frequent updates and feature enhancements before a 1.0 release. Its key differentiators include specialized support for neuroimaging data standards (BIDS), integration with advanced data versioning systems (DataLad), and its role in an ecosystem that provides high-performance computing resources via the Neuroscience Gateway. It aims to streamline data management workflows for neuroscientists.
npm install nemar-cliVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to install `nemar-cli` globally using Bun and verify its installation and basic functionality by checking the version and displaying the main help message. It emphasizes the Bun engine requirement and shows how to explore available commands.
Ensure Bun is installed globally and updated to at least version 1.0.0. Use `bun install -g nemar-cli` to leverage Bun's package management.
Pin the exact version of `nemar-cli` in your project dependencies (`package.json`) and review the GitHub repository's release notes or changelog before updating to a newer version.
Install DataLad and git-annex via your system's package manager (e.g., `apt`, `brew`, `conda`). Refer to the DataLad documentation for detailed installation instructions and system requirements.
Ensure your AWS CLI is configured with valid credentials (`aws configure`) or that environment variables (e.g., `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`) are set, as DataLad often relies on these for cloud access.
Install globally: `bun install -g nemar-cli`. Or use `npx nemar-cli [command]` or `bunx nemar-cli [command]`.
Install Bun or update it to the latest version (e.g., `curl -fsSL https://bun.sh/install | bash`) and ensure your shell is configured to use it.
Install `git-annex` using your system's package manager (e.g., `sudo apt install git-annex`, `brew install git-annex`) and verify it's in your PATH (`which git-annex`).
Review the BIDS specification for the required file structure and naming conventions. Use BIDS validators to check your dataset before using `nemar-cli` commands that rely on BIDS compliance.