`gh repo archive` should work with no argument as long as it is called from a git repository that has been pushed to a github host.