Skip to content

Fix stale CLI documentation and help text #172

Closed

Description

@neuromechanist

Problem

Documentation audit found 40+ issues across CLI help text, generated docs, README, and CLAUDE.md. The generate-docs.ts script is out of date with many missing subcommands, and its static content functions contain incorrect information.

Key Issues

generate-docs.ts

  • commands object missing many subcommands (switch, whoami, clone, get, save, push, drop, ci, manifest, release, update, request-access, invite, collaborators, doi update/enrich, s3 lock, repo, make-public, delete-dataset, etc.)
  • Static content has wrong info: downloading guide says "metadata only by default" (wrong), references non-existent options (--force, --get-data), uses datalad commands instead of nemar CLI commands
  • Uploading guide has wrong resume instructions (git annex copy --to origin)
  • Quickstart missing retrieve-key step and ORCID field, has duplicate step numbering
  • Auth guide missing ORCID field from signup table

CLI source help text

  • --name says "defaults to directory name" but actually falls back BIDS Name -> dir name
  • --no flag on upload missing -n short form (inconsistent with NO_OPTION constant)
  • Admin publish approve --sandbox warning says "Zenodo" but EZID is the default provider
  • doi update --refresh description too narrow (omits .nemar/metadata.json)
  • Admin help text missing make-public, delete-dataset

Code issues

  • auth retrieve-key: dead code at line 874 (409 throws ApiError, result.api_key_prefix branch unreachable)
  • Unused imports in dataset.ts: commitRevert, createRevertBranch, listDatasetVersions
  • Global --no-color and --verbose options registered but never read
  • Admin make-public has emoji in output

README.md

  • Lists non-existent commands (pr create/list/show, version, list --all)
  • Missing retrieve-key step in Quick Start
  • Wrong download syntax

CLAUDE.md

  • "CLI Commands (Target Structure)" lists ~13 commands; actual is 50+

Activity

  1. added
    documentation
    on Feb 21, 2026
  2. neuromechanist commented on Feb 24, 2026

    @neuromechanist
    ContributorAuthor

    Fixed by PR #173 (merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions