Skip to content

robandpdx/gh-blob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-blob

This GitHub CLI extension makes it easy to do GitHub owned blob storage operations.

Installation

gh extension install robandpdx/gh-blob

Set an environment variable with your PAT:

export GITHUB_TOKEN="<token>"

Usage

Upload

# 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.

Delete

# Long flag
gh blob delete --id <id>

# Short flag
gh blob delete -i <id>

Query all blobs

# Long flag
gh blob query-all --org <org>

# Short flag
gh blob query-all -o <org>

Query blob

# Long flag
gh blob query --id <blob-id>

# Short flag
gh blob query -i <blob-id>

About

GitHub owned blob storage operations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages