Text of cli.github.com › manual › gh_repo_rename as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

GitHub CLI | Take GitHub to the command line

CLI manual gh repo rename gh repo rename [<new-name>] [flags] Rename a GitHub repository. <new-name> is the desired repository name without the owner. By default, the current repository is renamed. Otherwise, the repository specified with --repo is renamed. To transfer repository ownership to another user account or organization, you must follow additional steps on github.com . For more information on transferring repository ownership, see: https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository Options -R , --repo <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format -y , --yes Skip the confirmation prompt Examples # Rename the current repository (foo/bar -> foo/baz) $ gh repo rename baz # Rename the specified repository (qux/quux -> qux/baz) $ gh repo rename -R qux/quux baz See also gh repo