# gh repo create

Create a repo from your shell.

## Quick answer
```
gh repo create my-app --public --source=. --push
```

## Syntax
```
gh repo create [<name>] [flags]
```

## Examples

# Interactive create (gh asks the questions)
gh repo create

# Create a public repo and push the current folder
gh repo create my-app --public --source=. --push

# Create a private repo with a license and .gitignore
gh repo create my-lib --private --license mit --gitignore Node

# Create from a template repository
gh repo create my-site --template owner/starter --public

# Create under an organization
gh repo create my-org/service --internal

## Key flags

  --public / --private / --internal	Set the repository's visibility.
  -s, --source	Path to a local repository to push (use . for the current folder).
  --push	Push the local commits to the new repository.
  -r, --remote	Name for the new git remote (default "origin").
  -d, --description	Repository description.
  -p, --template	Create from a template repository (owner/name).
  -g, --gitignore	Add a .gitignore for the given language.
  -l, --license	Add a license, e.g. mit, apache-2.0.
  --add-readme	Initialize the repository with a README.

Full guide: https://ghcli.com/gh-repo-create.php
