Skip to content

The files couldn't be downloaded from GitHub

error: couldn't download the files from github.com/owner/repository: the repository wasn't found
hint: Check your connection. If you have access to the repository, sign in with gh auth login or set GITHUB_TOKEN.

axle generate app --copy with a GitHub address downloads that repository at the branch or tag the address names, and the download didn’t work. Either GitHub couldn’t be reached, or it answered that the repository or branch isn’t there for you, as it does for a private repository without a sign-in.

Check the address, and that you’re online. For a private repository, Axle uses the token in GH_TOKEN or GITHUB_TOKEN, or the one the GitHub CLI keeps:

Terminal window
gh auth login