Skip to content

Quick Start

Get up and running with the NEMAR CLI in a few minutes.

Terminal window
nemar auth login

This opens your browser to NEMAR’s sign-in page and prints a link and a code either way. On a headless machine (a cluster, a container, an SSH session with no display), that link is the whole mechanism, not a fallback: copy it into a browser anywhere, sign in with ORCID (Open Researcher and Contributor ID), confirm, and the terminal finishes on its own. See Authentication for the full walk-through.

If this is a brand-new account, run nemar auth signup instead: it signs in the same way, then asks only what’s still missing (a username, your GitHub handle, city, and country), and ends by requesting upload access for you, covering step 3 below.

Terminal window
nemar auth signup

Before uploading real datasets, complete sandbox training:

Terminal window
nemar sandbox

This verifies your git-annex and GitHub setup by uploading a small test dataset. It needs only a signed-in, verified account, no admin action.

Uploading a real dataset needs one more thing: a one-time admin grant. nemar auth signup already asked for this unless you passed --no-upload-access; if you signed in with nemar auth login instead, or skipped it, ask once your username, name, GitHub handle, city, and country are set (see Account settings):

Terminal window
nemar auth request-upload-access

You’ll get an email once an admin grants it; check any time with nemar auth status --refresh. See Upload access for what the review looks at.

Before uploading, validate your BIDS dataset:

Terminal window
nemar dataset validate ./my-dataset

Fix any errors before proceeding. Warnings are acceptable but should be reviewed.

Upload your validated dataset:

Terminal window
nemar dataset upload ./my-dataset

The dataset name defaults to the BIDS Name field in dataset_description.json (or the directory name as fallback).

Monitor your dataset:

Terminal window
nemar dataset status nm000104
Terminal window
# Download a dataset (includes data files)
nemar dataset download nm000104
# Or clone without data files
nemar dataset clone nm000104
# Get specific data files later
nemar dataset get sub-01/
Terminal window
nemar dataset list --mine

After making changes, create a version bump PR:

Terminal window
nemar dataset release nm000104 --type minor
Terminal window
# General help
nemar --help
# Command-specific help
nemar dataset --help
nemar dataset upload --help