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