create-repo
Create a repo for an owner locator or self
Auth
Authenticated Owner Scope
Example
ghit-cli create-repo --name "Website" --slug website --visibility private --default-branch main
# or
# ghit-cli create-repo teams/platform --name "Website" --slug website --visibility private --default-branch main
# or
# ghit-cli create-repo alice --name "Website" --slug website --visibility private --default-branch main
Expected Response
Creates the resource and prints the created JSON object.
Errors
400 Bad Requestfor invalid flags/values.404 Not Foundwhen referenced owners/resources are missing.409 Conflictfor uniqueness or state conflicts.
Common auth errors are documented on the CLI overview page.
Help Output
Create a repo for an owner locator or self
Usage: ghit-cli create-repo --name <NAME> --slug <SLUG> --visibility <VISIBILITY> --default-branch <DEFAULT_BRANCH> [OWNER]
Arguments:
[OWNER] Owner locator (`teams/<team_slug>` or `<username>`). Defaults to authenticated user
Options:
--name <NAME> Repo name
--slug <SLUG> Repo slug
--visibility <VISIBILITY> Repo visibility [possible values: public, private]
--default-branch <DEFAULT_BRANCH> Default branch name
-h, --help Print help