GitHub CLI Repos and Pull Requests/Edit repository homepage

Update the repository homepage URL.

Section: Repository Basics

Edit repository homepage

bash
bash
gh repo edit --homepage "https://docs.example.com"
Explanation

Update the repository homepage URL.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Repository Basics
Edit repository description
Update repository metadata.
OpenIn sheetbashsame section
Enable issues
Enable GitHub Issues for a repository.
OpenIn sheetbashsame section
Clone a repository
Clone a repository using OWNER/REPO syntax.
OpenIn sheetbashsame section
Clone into a specific directory
Clone a repository into a named local folder.
OpenIn sheetbashsame section
Create a repository interactively
Create a new repository with prompts.
OpenIn sheetbashsame section
Create a public repo from current directory
Create a repository from the current directory and push initial contents.
OpenIn sheetbashsame section