Workspace Commands
Workspace commands manage the meta-repo configuration, AI routing files, health diagnostics, and environment integrations.
rnex init
Initializes a new Repo Nexus Virtual Meta-Repo workspace.
Syntax
sh
rnex init [options] [directory]Parameters & Options
| Option | Shorthand | Type | Default | Description |
|---|---|---|---|---|
directory | string | $PWD | Target directory to initialize. | |
--yes | -y | boolean | false | Non-interactive mode; accepts all defaults automatically. |
--code-workspace | boolean | string | false | Enable VS Code multi-root workspace file. Pass string for custom name. | |
--hooks | boolean | true (if git) | Force-enable automated Git hooks setup during initialization. | |
--no-hooks | boolean | false | Skip Git hooks configuration during initialization. | |
--claude | boolean | false | Enable Claude Code plugin (mirrors prompts to .claude/commands/). | |
--copilot | boolean | false | Enable GitHub Copilot plugin (mirrors prompts to .github/prompts/). | |
--cursor | boolean | false | Enable Cursor plugin (mirrors prompts to .cursor/prompts/). | |
--gemini | boolean | false | Enable Google Gemini plugin (mirrors prompts to .gemini/prompts/). | |
--windsurf | boolean | false | Enable Windsurf plugin (mirrors prompts to .windsurf/prompts/). |
Examples
bash
# Interactive setup
rnex init
# Non-interactive initialization for CI or automated setup
rnex init -y --claude --hooksrnex status
Performs comprehensive diagnostic and health checks across the workspace.
Syntax
sh
rnex statusWhat It Reports
- Configuration State: Location and schema version of
rnex.yamland.local.rnex.yaml. - Git Status: Validation that
.gitignoreignoresrepos/and local files, and whethercore.hooksPathpoints to.rnex/hooks. - AI Routing: Status of universal
AGENTS.md,.rnex/skills/,.rnex/workflows/, and provider prompts directories. - Member Clones: Health, branches, and
.rnexstate of every member repository.
bash
rnex statustext
[rnex] Workspace root: /workspace
[rnex] Config: rnex.yaml (.local.rnex.yaml loaded)
[rnex] Repositories: 2 active, 0 disabledrnex fix (alias: sync)
Reconciles workspace configuration, AI routing blocks, skills, workflows, active plugins, and member clones.
Syntax
sh
rnex fix [options]
rnex sync [options]Options
| Option | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--yes | -y | boolean | false | Automatically confirm schema upgrades if prompted. |
--quiet | -q | boolean | false | Quiet mode; suppresses non-error informational messages (ideal for hooks). |
--upgrade | boolean | false | Explicitly trigger version upgrade reconciliation. |
Reconciliation Actions
- Upgrades configuration schema non-destructively if an older version is detected.
- Re-verifies
.gitignorerules forrepos/and local configs. - Inserts or updates delimited routing blocks in universal
AGENTS.mdand active provider instruction files (CLAUDE.md,GEMINI.md,.cursorrules,.windsurfrules). - Syncs base workflows to
.rnex/workflows/and base skills to.rnex/skills/, purging any legacy.rnex/prompts/. - Mirrors operational prompts to enabled AI providers (
.github/prompts/,.claude/commands/, etc.). - Re-syncs enabled plugin assets into
.rnex/plugins/and memberrepos/<name>/.rnex/. - Reconciles automated Git hooks in
.rnex/hooks/againstgit_hooksconfig. - Re-creates member
.rnex/scaffolding in active repositories. - Updates multi-root
.code-workspacefolder mappings if configured.
rnex update (alias: upgrade)
Runs version verification and invokes the unified rnex fix reconciliation engine to upgrade workspace configuration and routing instructions to match the installed CLI version.
Syntax
sh
rnex update [options]
rnex upgrade [options]Options
| Option | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--yes | -y | boolean | false | Automatically confirm schema upgrades if prompted. |
--quiet | -q | boolean | false | Suppress non-error informational messages. |
Relationship with rnex fix
rnex update is part of the rnex fix command family:
- Upfront Version Diagnostics: Compares
version:inrnex.yamlagainst the installed CLI version. If already matching, it reports that the workspace is up to date. - Unified Reconciliation: Delegates directly to
rnex fix, ensuring configuration schema upgrades, instruction updates (AGENTS.md, provider files), skills/workflows sync, and plugin reconciliation occur in a single, idempotent pass. - Non-Destructive Migration: Upgrades schema keys while preserving comments, indentation, and custom configurations.
rnex install
Symlinks the rnex and repo-nexus executables into a user or system bin directory.
Syntax
sh
rnex install [bin-directory]- Default target:
~/.local/bin - Creates symlinks for both
rnexandrepo-nexus.
rnex completion
Generates shell auto-completion scripts.
Syntax
sh
rnex completion <bash|zsh|fish>sh
# Add to ~/.zshrc
source <(rnex completion zsh)sh
# Add to ~/.bashrc
source <(rnex completion bash)sh
# Add to ~/.config/fish/config.fish
rnex completion fish | sourcernex version
Prints the installed version of rnex.
bash
rnex version
# or:
rnex -v