Skip to content

CLI Overview & Cheatsheet ​

rnex is a zero-dependency command-line utility built entirely in pure POSIX shell (/bin/sh). It orchestrates Virtual Meta-Repo workspaces, coordinates member repositories, automates Git workflows, and mirrors AI context.

Quick Command Cheatsheet ​

CommandCategoryDescription
rnex initWorkspaceInitialize a new Repo Nexus workspace.
rnex statusWorkspaceInspect workspace health, clones, and AI instructions.
rnex fix / syncWorkspaceReconcile config, routing, prompts, and plugins.
rnex update / upgradeWorkspacePart of fix: verify version, upgrade schema, and reconcile workspace.
rnex installWorkspaceSymlink rnex to ~/.local/bin.
rnex completionWorkspaceGenerate shell auto-completion for Zsh, Bash, or Fish.
rnex versionWorkspaceDisplay current installed CLI version.
rnex addRepositoriesRegister a git repository and clone it into ./repos/.
rnex cloneRepositoriesClone all declared repositories missing from disk.
rnex listRepositoriesPrint table of registered member repositories.
rnex enableRepositoriesEnable a repository (include in sync and exec).
rnex disableRepositoriesDisable a repository (exclude from sync and exec).
rnex removeRepositoriesUnregister repository and delete clone from disk.
rnex rnex-dirRepositoriesToggle .rnex/ context inside member repository.
rnex execExecutionRun arbitrary shell commands across all active repos.
rnex hooksToolingManage automated Git hooks (post-merge, etc.).
rnex pluginToolingList, inspect, enable, and disable workspace plugins.

Global Syntax & Flags ​

sh
rnex [global-options] <command> [command-options] [arguments]

Global Options Table ​

FlagShorthandTypeDescription
--config <file>-c <file>stringPath to custom workspace configuration file (e.g. /path/to/rnex.yaml). Executes as if running from that file's directory.
--help-hbooleanDisplay command usage and help summary.
--version-vbooleanOutput CLI version.

Standardized Prompts Catalog ​

Repo Nexus provides a standardized suite of operational prompt templates in toolkit/prompts/ that sync to .rnex/prompts/ during rnex fix or rnex init.

AI assistants navigate workflows via the catalog index at .rnex/prompts/index.md:

Prompt FilePurpose
index.mdMaster catalog indexing all available workflows and prompts.
rnex-cross-repo-feature.mdStructured workflow for implementing cross-cutting features across multiple repos.
rnex-workspace-audit.mdHealth, git dirty status, branch tracking, and configuration audit workflow.
rnex-wiki-ingest.mdAutonomous ingestion of source docs from /raw/ into Karpathy LLM Wiki pages.
rnex-wiki-lint.mdLink validation, backlink (mentioned_in) recalculation, and index rebuilding.

Environment Variables ​

VariableDescription
RNEX_CONFIGOverrides the default configuration file path (rnex.yaml).
NO_COLORDisables ANSI color sequences in terminal output when set.

Exit Codes ​

CodeMeaning
0Success.
1General error (missing config, invalid arguments, or failing rnex exec command).