gh repo create myrepo --private

Category: GitHub CLI

gh repo create myrepo --private

Create a new private GitHub repository

Creates a new private GitHub repository (only you and collaborators can see it).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.