GH-REPO-UNARCHIVE(1) GitHub CLI manual GH-REPO-UNARCHIVE(1)

gh-repo-unarchive - Unarchive a repository

gh repo unarchive [<repository>] [flags]

Unarchive a GitHub repository.

With no argument, unarchives the current repository.

Skip the confirmation prompt

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

gh-repo(1)

Jan 2026