gh repo archive owner/repo

Category: GitHub CLI

gh repo archive owner/repo

Archive a GitHub repository (make it read-only)

Archives a repository, making it read-only on GitHub.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.