Git Product home page Git Product logo

drl's Introduction

Download GitHub Release

Download GitHub releases from the command line. This also supports private repositories by providing a GitHub Personal Access Token (PAT) without requiring any additional permissions.

$ drl --help
Download a release asset from GitHub
Notes:
  * The ASSET URL should be in 3 formats:
    - REPO_OWNER/REPO_NAME/[Tag]/FILE_NAME => The [Tag] is optional, if not specified will be treated as "latest"
    - github.com/REPO_OWNER/REPO_NAME/releases/download/[Tag]/FILE_NAME
    - github.com/REPO_OWNER/REPO_NAME/releases/latest/download/FILE_NAME

  * Currently, this tool only supports hosting on GitHub. Enterprise GitHub is not supported yet.

Usage:
  drl REPO_OWNER/REPO_NAME/[Tag]/FILE_NAME [--github.token PAT] [--output FILE] [flags]

Examples:
# Download the latest release asset from the owner/repo repository
$ drl owner/repo/asset.tar.gz

# Download the latest release asset from the owner/repo repository using a GitHub token
$ GITHUB_TOKEN=ghp_token drl owner/repo/asset.tar.gz

# Download the latest release asset from the owner/repo repository to a file
$ drl owner/repo/asset.tar.gz --output asset.tar.gz

# Download a specific release asset from the owner/repo repository
$ drl owner/repo/v1.0.0/asset.tar.gz

# Decompress tarball file in the fly
$ drl owner/repo/asset.tar.gz | tar -xvz -C /tmp


Flags:
  --github.token GITHUB_TOKEN   The GitHub token is used to download releases from a private repository. You can use this by setting the environment variable GITHUB_TOKEN.
  -h, --help                        help for drl
  -o, --output string               The output file to store the release asset. Default is stdout.
  -s, --silent                      Silent or quiet mode. Do not show progress meter.
  -v, --version                     Print the version

drl's People

Contributors

vietanhduong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.