Skip to main content

DEPRECATED — absorbed into obsidian-cli-ops (obs). See https://data-wise.github.io/obsidian-cli-ops/migration/

Project description

Nexus CLI — DEPRECATED

⚠️ nexus-cli has been absorbed into obsidian-cli-ops (obs).

All research, teaching, writing, and vault commands are now available under obs research …. This package will no longer receive updates. Please migrate:

brew upgrade data-wise/tap/obsidian-cli-ops
# obs research zotero search "query"
# obs research manuscript list
# obs research course list

See the migration guide for the full command mapping.


CI Documentation Python 3.11+ Version License: MIT codecov Tests Coverage Code Quality

Knowledge workflow CLI for research, teaching, and writing. Claude is the brain, Nexus is the body.

📚 Documentation | 🚀 Quick Start | 📖 Changelog

    ╔═══════════════════════════════════════════════════════════╗
    ║                                                           ║
    ║     ███╗   ██╗███████╗██╗  ██╗██╗   ██╗███████╗          ║
    ║     ████╗  ██║██╔════╝╚██╗██╔╝██║   ██║██╔════╝          ║
    ║     ██╔██╗ ██║█████╗   ╚███╔╝ ██║   ██║███████╗          ║
    ║     ██║╚██╗██║██╔══╝   ██╔██╗ ██║   ██║╚════██║          ║
    ║     ██║ ╚████║███████╗██╔╝ ██╗╚██████╔╝███████║          ║
    ║     ╚═╝  ╚═══╝╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝          ║
    ║                                                           ║
    ║         Research • Teaching • Writing • Knowledge         ║
    ║                                                           ║
    ╚═══════════════════════════════════════════════════════════╝

Philosophy

Nexus does NOT do AI. It provides data and operations. Claude does the thinking.

┌─────────────────────────────────────────────────────────────────┐
│                    THE NEXUS ARCHITECTURE                       │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│                      ┌─────────────┐                           │
│                      │   CLAUDE    │  (Brain)                  │
│                      │ • Thinking  │                           │
│                      │ • Planning  │                           │
│                      │ • Writing   │                           │
│                      └──────┬──────┘                           │
│                             │                                   │
│                             │ uses                              │
│                             ▼                                   │
│                      ┌─────────────┐                           │
│                      │   NEXUS     │  (Body)                   │
│                      │ • Searching │                           │
│                      │ • Reading   │                           │
│                      │ • Writing   │                           │
│                      │ • Organizing│                           │
│                      └──────┬──────┘                           │
│                             │                                   │
│              ┌──────────────┼──────────────┐                   │
│              ▼              ▼              ▼                   │
│       ┌──────────┐   ┌──────────┐   ┌──────────┐              │
│       │  ZOTERO  │   │   PDFs   │   │  VAULT   │              │
│       │  2,728   │   │  1,800   │   │ Obsidian │              │
│       │  papers  │   │  files   │   │  notes   │              │
│       └──────────┘   └──────────┘   └──────────┘              │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Installation

# From source (recommended)
git clone https://github.com/Data-Wise/nexus-cli
cd nexus-cli
pip install -e .

# Or with uv
uv sync

Quick Start

New to Nexus? Start with Interactive Tutorials! 🎓

# List available tutorials
nexus learn

# Start the Getting Started tutorial (7 steps, ~10 min)
nexus learn getting-started

# Intermediate workflows (11 steps, ~20 min)
nexus learn medium

# Advanced techniques (12 steps, ~30 min)
nexus learn advanced

See TUTORIAL_GUIDE.md for detailed tutorial documentation.

Quick Commands

# Check your setup
nexus doctor

# Configure paths
nexus config

# Search your Zotero library
nexus research zotero search "mediation analysis"

# Search your vault
nexus knowledge vault search "sensitivity"

# Unified search across everything
nexus knowledge search "propensity score"

Command Reference

Global Commands

Command Description
nexus help [topic] Flow-cli-style quick-start cheatsheet (main, research, teach, write, knowledge)
nexus doctor Check health + validate PARA vault structure (exits 1 if required folders missing)
nexus config View or edit configuration
nexus learn Interactive learning tutorials (getting-started, medium, advanced)
nexus --version Show version

🧠 Knowledge Domain

Obsidian vault and unified search operations.

Unified Search

nexus knowledge search "query"              # Search across all sources

Vault Operations

nexus knowledge vault search "term"         # Search vault notes
nexus knowledge vault read "path/note.md"   # Read a note
nexus knowledge vault write "path" content  # Write to a note
nexus knowledge vault daily                 # Open/create daily note
nexus knowledge vault backlinks "note.md"   # Find notes linking here
nexus knowledge vault recent                # Show recently modified
nexus knowledge vault orphans               # Find unlinked notes
nexus knowledge vault template "name"       # Create from template

Graph Export ⭐ NEW in v0.5.0

# Export vault graph to multiple formats
nexus knowledge vault export graphml graph.graphml    # GraphML (Gephi, Cytoscape)
nexus knowledge vault export d3 graph.json            # D3.js visualization
nexus knowledge vault export json graph.json          # JSON format

# Include tags as nodes
nexus knowledge vault export graphml graph.graphml --tags

# Limit node count for large vaults
nexus knowledge vault export d3 graph.json --limit 100

🔬 Research Domain

Literature management, Zotero, and PDF operations.

Zotero Operations

nexus research zotero search "query"        # Search Zotero library
nexus research zotero get KEY               # Get item details
nexus research zotero cite KEY              # Generate citation
nexus research zotero recent                # Recently modified items
nexus research zotero tags                  # List all tags
nexus research zotero collections           # List all collections
nexus research zotero by-tag "tag"          # Items with specific tag

PDF Operations

nexus research pdf extract FILE             # Extract text from PDF
nexus research pdf search "query"           # Search across PDFs
nexus research pdf list                     # List all PDFs
nexus research pdf info FILE                # Show PDF information

📚 Teaching Domain

Course management and Quarto operations.

Course Management

nexus teach course list                     # List all courses
nexus teach course show NAME                # Show course details
nexus teach course lectures NAME            # List course lectures
nexus teach course materials NAME           # List all materials
nexus teach course syllabus NAME            # Show syllabus

Quarto Operations

nexus teach quarto build                    # Build Quarto project
nexus teach quarto preview                  # Start preview server
nexus teach quarto info                     # Show Quarto info
nexus teach quarto clean                    # Clean build artifacts
nexus teach quarto formats                  # List output formats

✍️ Writing Domain

Manuscript and bibliography management.

Manuscript Management

nexus write manuscript list                 # List all manuscripts
nexus write manuscript show NAME            # Show manuscript details
nexus write manuscript active               # Show active manuscripts
nexus write manuscript search "query"       # Search manuscripts
nexus write manuscript stats                # Show statistics
nexus write manuscript deadlines            # Show deadlines/targets

Batch Operations ⭐ NEW in v0.5.0

# Update status for multiple manuscripts
nexus write manuscript batch-status paper1 paper2 --status review

# Update progress for multiple manuscripts
nexus write manuscript batch-progress paper1:75 paper2:90 paper3:50

# Archive old manuscripts
nexus write manuscript batch-archive old-paper1 old-paper2

# Export metadata to JSON or CSV
nexus write manuscript export manuscripts.json
nexus write manuscript export manuscripts.csv --format csv

Bibliography Operations

nexus write bib list MANUSCRIPT             # List bibliography entries
nexus write bib search "query"              # Search bibliography
nexus write bib check MANUSCRIPT            # Check citations (missing/unused)
nexus write bib zotero "query"              # Search Zotero for entries

🔌 Integration Domain

External tool integrations.

nexus integrate aiterm                      # Manage aiterm integration
nexus integrate claude                      # Manage Claude plugin

JSON Output

All commands support --json for machine-readable output:

nexus write manuscript stats --json | jq '.total_manuscripts'
nexus research zotero search "mediation" --json | jq '.[0].title'

Claude Integration

Nexus is designed to work with Claude via:

1. Piping to Claude Code

nexus research zotero search "mediation" --json | \
  claude -p "Summarize these papers"

2. Claude Calls Nexus (Primary Pattern)

In Claude Code, Claude uses Bash to call nexus commands directly.

3. Claude Code Plugin

Install the included plugin for enhanced Claude Code integration:

ln -sf /path/to/nexus-cli/plugin ~/.claude/plugins/nexus-cli

Configuration

Configuration file: ~/.config/nexus/config.yaml

vault:
  path: ~/Library/Mobile Documents/iCloud~md~obsidian/Documents
  templates: ~/path/to/templates

zotero:
  database: ~/Zotero/zotero.sqlite
  storage: ~/Zotero/storage

teaching:
  courses_dir: ~/projects/teaching

writing:
  manuscripts_dir: ~/projects/quarto/manuscripts
# View config
nexus config

# Edit config (opens in $EDITOR)
nexus config --edit

What's New in v0.4.0

🎉 Major Release - Production-ready with enterprise-grade quality!

  • ✅ 235 Tests with 53% coverage (+10% from v0.3.0)
  • 🔄 Enhanced CI/CD with matrix testing, security scanning, and coverage enforcement
  • 📚 Full Documentation site with MkDocs + Material theme
  • 🧪 Advanced Testing for PDF, Zotero, and Quarto modules
  • 🔒 Security scanning with Bandit
  • 📊 Coverage Thresholds enforced at 40%+

See the full Changelog for details.

Development

Running Tests

# Run all tests
pytest

# With coverage report
pytest --cov=nexus --cov-report=html

# Specific test file
pytest tests/test_vault.py

# Skip integration tests
pytest -m "not integration"

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

# Clone the repository
git clone https://github.com/Data-Wise/nexus-cli
cd nexus-cli

# Install with development dependencies
pip install -e ".[dev,docs]"

# Run tests
pytest

# Build documentation locally
mkdocs serve

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexus_cli-0.7.0.tar.gz (323.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexus_cli-0.7.0-py3-none-any.whl (63.4 kB view details)

Uploaded Python 3

File details

Details for the file nexus_cli-0.7.0.tar.gz.

File metadata

  • Download URL: nexus_cli-0.7.0.tar.gz
  • Upload date:
  • Size: 323.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nexus_cli-0.7.0.tar.gz
Algorithm Hash digest
SHA256 e61a92b72e64f7f17ae370948c82231f9369c02f965264a394ab282fc00b9170
MD5 43c7ee322bc7fccbd85f45b694f3d46d
BLAKE2b-256 d076221953d1b82084a0fc9e5370ffde9a81388456a1ee418dc530851fd72e53

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexus_cli-0.7.0.tar.gz:

Publisher: publish.yml on Data-Wise/nexus-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nexus_cli-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: nexus_cli-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 63.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nexus_cli-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81272a973274f5805fa37d00c8532abf42e10effd26cf9b8bd2e81b8256326a3
MD5 be0d97146d2442c117cfbc3d7c7adfaf
BLAKE2b-256 ef06441a87dfb3bfa2c82efb6608081e41d02f3bf03f8088abfa676da450e3b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexus_cli-0.7.0-py3-none-any.whl:

Publisher: publish.yml on Data-Wise/nexus-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page