gh repo create myorg/webapp --private --add-readme --clone

Category: GitHub CLI

gh repo create myorg/webapp --private --add-readme --clone

Create a private repo with README and clone it

Creates myorg/webapp under your organization, --private sets visibility, --add-readme seeds the repository with a README, and --clone checks it out locally afterwards. One command replaces several web clicks. Swap --private for --internal or --public as needed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.