Repository navigation
Closed
6 / 66 of 6 issues completedDescription
Vision
Provide a familiar DataLad-like user experience for dataset interaction while removing the Python/DataLad dependency. Users who know DataLad commands should feel at home with NEMAR CLI.
Current State
Existing commands:
nemar dataset validate- BIDS validationnemar dataset upload- Initial uploadnemar dataset download- Download entire datasetnemar dataset status- Check dataset statusnemar dataset list- List datasetsnemar dataset version- Create new version with DOI
Missing DataLad-like commands:
clone- Clone a dataset repositoryget- Download specific files (not entire dataset)save- Stage and commit local changespush- Push changes to remote
Current dependency: DataLad (Python) → should be pure git-annex
Proposed Commands
| Command | Purpose | DataLad equivalent |
|---|---|---|
nemar dataset clone <id> |
Clone dataset repo locally | datalad clone |
nemar dataset get [files] |
Download specific annexed files | datalad get |
nemar dataset save [-m msg] |
Stage + commit changes | datalad save |
nemar dataset push |
Push to GitHub + S3 | datalad push |
nemar dataset drop [files] |
Remove local copies of annexed files | datalad drop |
Implementation Phases
Phase 1: Remove DataLad dependency (#22)
- Refactor
src/lib/datalad.tsto use git-annex directly - Keep same internal API so consuming code doesn't change
- Still require external git-annex installation
Phase 2: Add missing commands (#51 + new)
- Implement
clone,get,save,push,drop - Design workflow for ongoing updates (not just initial upload)
- Handle incremental uploads via git-annex
Phase 3: Polish UX
- Helpful error messages pointing to git-annex installation
- Progress indicators for large file transfers
- Offline-friendly operations where possible
Phase 4 (Optional): Bundle git-annex
- Explore packaging git-annex binaries
- Lazy download on first use
- Only if user feedback indicates installation friction
DataLad Compatibility (Confirmed)
Research confirms users can still access NEMAR datasets with DataLad:
datalad cloneworks on pure git-annex reposdatalad getworks if S3 remote is configured- See Make CLI independent of DataLad, bundle git-annex binaries #22 comment for details
Child Issues
- Make CLI independent of DataLad, bundle git-annex binaries #22 - Remove DataLad dependency, use git-annex directly
- Design dataset push/commit workflow for ongoing updates #51 - Design push/commit workflow for ongoing updates
- (new) Implement
nemar dataset clone - (new) Implement
nemar dataset get - (new) Implement
nemar dataset save - (new) Implement
nemar dataset push
Success Criteria
- Zero Python dependencies
- Users familiar with DataLad can use NEMAR CLI intuitively
- DataLad users can still access NEMAR datasets with their existing tools
- Incremental updates work efficiently (only changed files uploaded)
Sub-issues
Collapse Sub-issuesSub-issues
Loading 6 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Activity
neuromechanist commentedon Jan 24, 2026
Implemented in PR #73: dataset clone, get, save, push, drop commands using pure git-annex (no DataLad dependency).