NEMAR CLI

0.7.26 · active · verified Wed Apr 22

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.

Common errors

Warnings

Install

Imports

Quickstart

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.

#!/bin/bash

# Ensure Bun is installed and meets the engine requirement.
if ! command -v bun &> /dev/null || ! bun --version | grep -q "^1\."; then
  echo "Error: Bun (version >=1.0.0) is required but not found or not compatible."
  echo "Please install Bun: https://bun.sh/docs/installation"
  exit 1
fi

# Install the nemar-cli globally using Bun
bun install -g nemar-cli

echo "\nNEMAR CLI installed. Verifying installation:"
nemar-cli --version

echo "\nListing available commands:"
nemar-cli --help

echo "\nExample: Initializing a new NEMAR dataset (interactive, requires user input):"
# This command initiates an interactive process for dataset creation.
# For automated scripts, specific subcommands and flags would be used.
# nemar-cli dataset create

echo "\nTo clean up the global installation (optional):"
# bun uninstall -g nemar-cli

view raw JSON →