Examples

corralctl commands you can copy

Each example is a real command from the corralctl documentation. Swap in your own owner names.

Clone from forges other than GitHub

corralctl my-group --forge gitlab
corralctl my-user --forge codeberg
corralctl my-org --forge gitea --forge-url https://git.example.com
corralctl my-workspace --forge bitbucket

Pick repositories before cloning

corralctl -i my-username

Run a command in every clone

corralctl exec "git status -s" --languages go,rust --visibility private

Mirror to two other forges, previewing first

export GITLAB_TOKEN=...
export GITEA_TOKEN=...
corralctl sync --to gitlab --to gitea@https://git.example.com --dry-run
corralctl sync --to gitlab --to gitea@https://git.example.com

Keep your existing folder structure

corralctl my-org --layout "OWNER/NAME"

OWNER and NAME stand for the .Owner and .Name template placeholders; the features page lists them all.

Machine-readable results

corralctl my-username --output json --log-level error > repos.json

Housekeeping

corralctl status --base-dir ~/Code
corralctl doctor ~/Code --prune-worktrees
corralctl prune my-username --dry-run