update-repo
Update a repo by locator or self shorthand
Auth
Authenticated Owner Scope
Example
ghit-cli update-repo website --name "Website API"
# or
# ghit-cli update-repo teams/platform/website --visibility public
Expected Response
Updates the resource and prints the updated 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
Update a repo by locator or self shorthand
Usage: ghit-cli update-repo [OPTIONS] <REPO>
Arguments:
<REPO> Repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`) or `<repo_slug>` for 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