gh repo create Create a new repository on GitHub

Makes a new repository on your account or organisation. It can be created from scratch, from a local folder you already have, or from a template.

Synopsis

gh repo create [NAME] [FLAGS]

Common options

Option or formWhat it does
--public | --private | --internalWho can see the repository (required when not interactive)
-c, --cloneClone the new repository
-s, --source PATHUse an existing local folder as the source
--pushPush the commits from the source folder
-r, --remote NAMEName of the remote to add (with --source)
-d, --description TEXTA short description
-p, --template REPOCreate from a template repository

Examples

Create interactively
gh repo create
Create a private repository and clone it
gh repo create my-site --private --clone
Publish the folder you are in
gh repo create my-site --public --source=. --remote=origin --push
Create under an organisation
gh repo create acme/website --private
Start from a template
gh repo create new-app --private --template acme/starter

Notes

See also

Last reviewed 2026-10-09.