This GitHub CLI extension makes it easy to do GitHub owned blob storage operations.
gh extension install robandpdx/gh-blob
Set an environment variable with your PAT:
export GITHUB_TOKEN="<token>"
# Basic (defaults to 60m timeout)
gh blob upload --org <org> --archive-file-path <migration-archive>
# Using short flags
gh blob upload -o <org> -a <migration-archive>
# Custom timeout (duration format: 10m, 45m, 1h30m, etc.)
gh blob upload --org <org> --archive-file-path <migration-archive> --timeout 45m
gh blob upload -o <org> -a <migration-archive> -t 45m
# Longer timeout with mixed short flags
gh blob upload -t 90m -o <org> -a <migration-archive>
The timeout applies to the entire upload operation (including multi-part uploads) and defaults to 60 minutes if not specified.
# Long flag
gh blob delete --id <id>
# Short flag
gh blob delete -i <id>
# Long flag
gh blob query-all --org <org>
# Short flag
gh blob query-all -o <org>
# Long flag
gh blob query --id <blob-id>
# Short flag
gh blob query -i <blob-id>