Sometimes you just need the code. hub clone gives you exactly that — clone every repository in your config without starting services, installing tools, or running dependency installation.
hub clone
hub clone # Clone all repos (auto-detects SSH vs HTTPS)
hub clone --ssh # Force SSH clone
hub clone --https # Force HTTPS clone via gh CLI
The command reads your hub.yaml or hub.config.ts, iterates over all declared repositories, and clones them to their configured paths. Repos that already exist locally are skipped.
Authentication is handled automatically:
- If SSH access to GitHub is available, it uses
git clonewith the SSH URL - If SSH fails but
ghCLI is authenticated, it falls back togh repo clone - Use
--sshor--httpsto force a specific method
This is useful when:
- You want to browse the code without a full dev environment
- You’re setting up a CI pipeline that only needs the source
- You want to clone first and run
hub setuplater with specific flags
Upgrade
npx @arvoretech/hub@0.12.0 generate