gh repo archive [<repository>] [flags]
Archive a GitHub repository.
With no argument, archives the current repository.
-y
--yes