Skip to content

admin

Administrative operations (requires admin privileges)

Usage

Usage: nemar admin [options] [command]

Admin commands (requires admin privileges)

Options:
  -h, --help                                  display help for command

Commands:
  approve [options] <username>                Approve a pending user
  bulk-delete [options] <dataset-ids>         Delete multiple phantom/orphaned datasets at once (owner only)
  ci                                          CI workflow management
  delete-dataset [options] <dataset-id>       Delete a dataset and all associated resources (GitHub, S3, D1)
  doi                                         DOI management
  e2e-test [options]                          Run end-to-end test against nm099999 (admin only)
  email-preferences                           Manage email notification preferences
  help [command]                              display help for command
  import-openneuro [options] <openneuro-ids>  Import an OpenNeuro dataset into NEMAR
  make-public <dataset-id>                    Publish a dataset (make repository and data public) - PERMANENT
  notice                                      Manage system notices displayed to CLI users
  notify [options]                            Send a broadcast email to users
  publish                                     Publication workflow management
  repo                                        Repository visibility management
  revert [options] <dataset-id> [version]     Revert a dataset to a previous version (creates PR for review)
  revoke [options] <username>                 Revoke user access
  role [options] <username> <role>            Change a user's role (owner only)
  s3                                          S3 and IAM credential management
  sync                                        Sync dataset metadata to nemar.org datapipeline
  users [options]                             List NEMAR users

  Run with --help-all for examples and detailed descriptions.

Subcommands

admin users

Usage: nemar admin users [options]

List NEMAR users

Options:
  --pending      Show only pending approval
  --verified     Show only verified (awaiting approval)
  --approved     Show only approved users
  --revoked      Show only revoked users
  --role <role>  Filter by role: owner, admin, or member
  -h, --help     display help for command

  Run with --help-all for examples and detailed descriptions.

admin approve

Usage: nemar admin approve [options] <username>

Approve a pending user

Arguments:
  username    Username to approve

Options:
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin revoke

Usage: nemar admin revoke [options] <username>

Revoke user access

Arguments:
  username    Username to revoke

Options:
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin role

Usage: nemar admin role [options] <username> <role>

Change a user's role (owner only)

Arguments:
  username    Username to change role for
  role        New role: owner, admin, or member

Options:
  -y, --yes   Skip confirmation prompt
  -h, --help  display help for command

  Run with --help-all for examples and detailed descriptions.

admin s3 regenerate-iam

Usage: nemar admin s3 regenerate-iam [options] <username>

Regenerate AWS IAM credentials for a user

Arguments:
  username    Username to regenerate credentials for

Options:
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin s3 lock

Usage: nemar admin s3 lock [options] <dataset-id>

Apply S3 Object Lock (Governance mode) to a dataset

Arguments:
  dataset-id  Dataset ID to lock

Options:
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin repo public

Usage: nemar admin repo public [options] <dataset-id>

Make a dataset repository public

Arguments:
  dataset-id  Dataset ID (e.g., nm000104)

Options:
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin repo private

Usage: nemar admin repo private [options] <dataset-id>

Make a dataset repository private

Arguments:
  dataset-id  Dataset ID (e.g., nm000104)

Options:
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin ci check

Usage: nemar admin ci check [options] <dataset-id>

Check CI workflow status for a dataset

Arguments:
  dataset-id  Dataset ID (e.g., nm000104)

Options:
  -h, --help  display help for command

admin ci add

Usage: nemar admin ci add [options] [dataset-id]

Deploy CI workflows to a dataset repository (or all with --all)

Arguments:
  dataset-id  Dataset ID (e.g., nm000104)

Options:
  --all       Deploy to all dataset repositories
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin doi create

Usage: nemar admin doi create [options] <dataset-id>

Create concept DOI for a dataset

Arguments:
  dataset-id             Dataset ID (e.g., nm000104)

Options:
  --title <title>        DOI title (defaults to dataset name)
  --description <desc>   DOI description
  --provider <provider>  DOI provider: ezid (default) or zenodo (default:
                         "ezid")
  --sandbox              Use sandbox/test DOI
  -y, --yes              Skip confirmation and proceed
  -n, --no               Skip confirmation and decline
  -h, --help             display help for command

admin doi info

Usage: nemar admin doi info [options] <dataset-id>

Get DOI info for a dataset

Arguments:
  dataset-id  Dataset ID (e.g., nm000104)

Options:
  -h, --help  display help for command

admin doi update

Usage: nemar admin doi update [options] <dataset-id>

Update EZID DOI metadata or status

Arguments:
  dataset-id     Dataset ID (e.g., nm000104)

Options:
  --make-public  Transition DOI from reserved to public (permanent)
  --refresh      Refresh metadata from dataset_description.json and
                 .nemar/metadata.json
  -y, --yes      Skip confirmation and proceed
  -n, --no       Skip confirmation and decline
  -h, --help     display help for command

admin doi enrich

Usage: nemar admin doi enrich [options] <dataset-id>

Enrich DOI metadata with ORCIDs, descriptions, funding, and more

Arguments:
  dataset-id  Dataset ID (e.g., nm000104)

Options:
  --no-llm    Skip LLM-based enrichment from README
  --sandbox   Use sandbox DOI
  -y, --yes   Skip confirmation and proceed
  -n, --no    Skip confirmation and decline
  -h, --help  display help for command

admin publish list

Usage: nemar admin publish list [options]

List publication requests

Options:
  -s, --status <status>  Filter by status (requested, approving, published,
                         denied)
  -h, --help             display help for command

  Run with --help-all for examples and detailed descriptions.

admin publish approve

Usage: nemar admin publish approve [options] <dataset-id>

Approve and publish a dataset (runs orchestrator)

Arguments:
  dataset-id       Dataset ID

Options:
  --resume         Resume from last failed step
  --sandbox        Use Zenodo sandbox for testing
  --skip-ci-check  Skip BIDS validation CI check (admin override)
  -y, --yes        Skip confirmation and proceed
  -n, --no         Skip confirmation and decline
  -h, --help       display help for command

  Run with --help-all for examples and detailed descriptions.

admin publish deny

Usage: nemar admin publish deny [options] <dataset-id>

Deny a publication request

Arguments:
  dataset-id             Dataset ID

Options:
  -r, --reason <reason>  Reason for denial
  -y, --yes              Skip confirmation and proceed
  -n, --no               Skip confirmation and decline
  -h, --help             display help for command

  Run with --help-all for examples and detailed descriptions.

admin revert

Usage: nemar admin revert [options] <dataset-id> [version]

Revert a dataset to a previous version (creates PR for review)

Arguments:
  dataset-id       Dataset ID (e.g., nm000104)
  version          Target version to revert to (e.g., 1.0.0)

Options:
  --list           List available versions without reverting
  --force          Direct push to main without PR (emergency only)
  --message <msg>  Custom revert commit message
  --dir <path>     Use existing local clone instead of cloning fresh
  -y, --yes        Skip confirmation and proceed
  -n, --no         Skip confirmation and decline
  -h, --help       display help for command

admin make-public

Usage: nemar admin make-public [options] <dataset-id>

Publish a dataset (make repository and data public) - PERMANENT

Arguments:
  dataset-id  Dataset ID (e.g., nm000104)

Options:
  -h, --help  display help for command

  Run with --help-all for examples and detailed descriptions.

admin delete-dataset

Usage: nemar admin delete-dataset [options] <dataset-id>

Delete a dataset and all associated resources (GitHub, S3, D1)

Arguments:
  dataset-id  Dataset ID (e.g., nm000108)

Options:
  --force     Force deletion of published datasets with DOIs (owner only)
  -h, --help  display help for command