gitnexus-cli
GitNexus CLI Commands
Commands below use node .gitnexus/run.cjs <command> — the project-local runner gitnexus analyze drops next to the index. It auto-selects an available runner at call time (global gitnexus, else pnpm dlx, else bunx, else npx), so no package-manager assumption and no global install is required — including on a bun-only machine, which has no npm, npx or pnpm at all.
Not analyzed yet, or
node .gitnexus/run.cjsreportsCannot find module(the gitignored runner is absent — e.g. a fresh clone orgit clean)? (Re)generate it withnpx gitnexus analyzefrom the project root, orbunx gitnexus@latest analyzeon a bun-only machine. On npm 11.x, ifnpxcrashes during install (node.target is null), install once withnpm i -g gitnexus(thengitnexus analyze), or usebunx gitnexus@latest analyze, orpnpm --allow-build=@ladybugdb/core --allow-build=gitnexus --allow-build=tree-sitter dlx gitnexus@latest analyze. See #1939.
Execution provenance (floating vs pinned)
| Launcher | What it selects |
|---|---|
npx / bunx / pnpm dlx gitnexus@latest |
Floating registry tag — non-reproducible; may change between runs. Fine for bootstrap when no local runner exists. |
gitnexus setup → global binary on PATH |
Persists the absolute path to that gitnexus / gitnexus.cmd launcher (command + args: ["mcp"]). Faster cold start, but the binary's version tracks whatever is installed globally and can change on upgrade. |
gitnexus setup → npx fallback (no global binary) |
Persists npx -y gitnexus@<package.json version> (the version of the CLI that ran setup). This is the only setup path that pins a registry version. |
gitnexus setup → existing HTTP MCP entry (Cursor / Claude Code only) |
Those two editors pass preserveHttpEntry, so an existing remote/gitnexus serve HTTP entry is left unchanged. Other setup targets (Antigravity, OpenCode, CodeBuddy, Qoder, Droid, …) rewrite the local launcher entry and do not preserve HTTP. |
node .gitnexus/run.cjs <cmd> |
Project-local runner written by analyze. Prefers a global gitnexus binary when present; otherwise may still fall back to pnpm dlx / bunx / npx with @latest. |
Prefer run.cjs after the first successful analyze so the project carries its own entrypoint. Use an explicit @latest bootstrap only when recovering a missing runner.
Inspect the configured MCP launcher: read the editor's GitNexus MCP entry (for example Claude Code ~/.claude.json, Cursor MCP config, or the path gitnexus setup reported under "configured"). Check whether command is an absolute binary path, npx/cmd with a gitnexus@x.y.z arg, or an HTTP URL. which gitnexus / where gitnexus shows the current global binary, which may differ from an older absolute path still stored in the MCP config.