# GitHub Cloud clone a **users** repos, assumes ghorg conf.yaml is setup with a token ``` $ ghorg clone --clone-type=user ``` clone an **org**, using a token on the commandline ``` $ ghorg clone --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2 ``` clone all repos from a **github org** that are **prefixed** with "frontend" **into a folder** called "design_only", assumes ghorg conf.yaml is setup with a token ``` $ ghorg clone --match-regex=^frontend --output-dir=design_only ``` # GitHub Enterprise clone a **users** repos ``` $ ghorg clone --clone-type=user --base-url=https://internal.github.com --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2 ``` clone an **org** ``` $ ghorg clone --base-url=https://your.internal.github.com --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2 ``` clone all repos from a **github org** that are **prefixed** with "frontend" **into a folder** called "design_only" ``` $ ghorg clone --match-regex=^frontend --output-dir=design_only --base-url=https://your.internal.github.com ```