clone

Clone many repositories from one GitHub user or organization.

Usagegit-wrangler clone --user <owner> [options]

Quick start

git-wrangler clone --user my-org --visibility public

What it does

clone lists repositories owned by a GitHub user or organization and downloads them into one folder. Existing destination folders are skipped, so the command is safe to run again.

Public repositories do not require stored Git Wrangler credentials. Private repositories require GitHub access from init, config, or GIT_WRANGLER_GITHUB_TOKEN.

Before you run it

Git and GitHub CLI (gh) must be installed. Package-manager installations include both; use doctor to check.

Options

Option Default What it does
--user <owner> Required Choose the GitHub user or organization.
--visibility <value> all Choose all, public, or private.
--limit <number> 100 Set the maximum number of repositories to list.
--into <directory> Owner name Choose the destination folder.
--guided Off Choose options through prompts.

More examples

# Clone public repositories into ./repos
git-wrangler clone --user my-org --visibility public --into ./repos

# Clone up to ten repositories
git-wrangler clone --user my-org --limit 10

# Include private repositories after setup
git-wrangler clone --user my-org --visibility all
  • Use init to set up private GitHub access.
  • Use status after cloning to inspect the workspace.