/repoindex:repo-mirror [--to NAME] [--all] [--dirty | --language X | --tag T] [--force-real]from repoindex
Wrapper around `repoindex ops mirror`. Pushes repos to configured redundancy targets. Dry run by default.
Ships in repoindex. Installing the plugin adds it to Claude Code.
Thin wrapper around repoindex ops mirror. Pushes every branch and tag (git push --mirror) to one or more redundancy targets configured in ~/.repoindex/config.yaml.
Safety: Runs with --dry-run by default. The real push only happens if the user explicitly passes --force-real (this slash command translates that to dropping --dry-run when invoking the CLI).
Pick at least one target selector:
| Flag | Effect |
|---|---|
--to codeberg | Push to one named mirror (repeatable) |
--all | Push to every configured mirror |
Repo filters (optional):
| Flag | Effect |
|---|---|
--language python | Only Python repos |
--tag work/active | Only repos with this tag |
--recent 7d | Only repos with recent commits |
--dirty | Only repos with uncommitted changes (rare for mirroring) |
Special flags:
| Flag | Effect |
|---|---|
--init | For file:// targets, init a bare repo at the destination if missing |
--force | Bypass fast-forward check (overwrites diverged branches on the mirror) |
--force-real | THIS COMMAND ONLY: drop the automatic --dry-run and actually push |
Run:
repoindex config get forges 2>&1
It prints the forges mapping as JSON, or Key not found: forges (on stderr) when none is configured. If it is not found, or no entry has role: mirror, stop and print a config template:
forges:
codeberg:
source_id: gitea
host: codeberg.org
role: mirror
token_env: CODEBERG_TOKEN
url_template: "https://codeberg.org/queelius/{repo}.git"
gitea-gdrive:
source_id: gitea
role: mirror
url_template: "file:///mnt/gdrive/git-mirrors/{repo}.git"
Explain that {repo} is substituted with the repo name, that SSH URLs ([email protected]:queelius/{repo}.git) work too, and that role: mirror is what makes ops mirror recognize the entry. Do not proceed to step 2.
repoindex ops mirror --json.--dry-run unless the user passed --force-real.--force-real is passed, strip it from the args before forwarding, and omit --dry-run.repoindex ops mirror <args>
Parse the JSONL output. For each repo x mirror combination, you will get a result with status (skipped, dry-run, pushed, failed).
Summarize:
Mirror run (dry-run: yes/no, mirrors: codeberg, nas-backup)
Targeted N repos
Would push M repo x mirror combinations
Skipped K (reason: no remote URL, etc)
Failed F (show each: repo, mirror, error line)
If it was a dry run and the preview looks good, suggest:
To actually push: /repo-mirror <same args> --force-real
If there were failures, suggest checking the mirror config or using --init for missing file:// destinations.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
5 commands in this plugin
/repo-audit/repo-auditRead-only quality audit summary via `repoindex ops audit`. Shows failing checks by severity without fixing anything./repo-sprint/repo-sprintCollection health triage and work-session kickoff (dirty, unpushed, active, release candidates, audit gaps, stale, unpublished)./repo-statusQuick overview of the collection, or a detailed single-repo view if a name is given./repo-week/repo-weekWeekly activity summary across the repo collection (commits, releases, top churn) via `repoindex digest`.2 plugins ship this exact command · first indexed Oct 24, 2026
npx claudepluginhub abdulqudduz/claude-anvil --plugin repoindex