GitHub CLI | Take GitHub to the command line
CLI manual gh repo archive gh repo archive [<repository>] [flags] Archive a GitHub repository. With no argument, archives the current repository. Options -y , --yes Skip the confirmation prompt See also gh repo