Archive a repository.
Section: Repository Basics
Archive repository
bash
bash
gh repo archive my-org/legacy-repo --yesExplanation
Archive a repository.
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
Clone into a specific directory
Clone a repository into a named local folder.
Create a public repo from current directory
Create a repository from the current directory and push initial contents.