If you want to download files via gh cli without having to have the raw link on hand:
curl -L $(gh api /repos/<owner>/<repo>/contents/<file> --jq .download_url) > <output_file>