+
Skip to content

andrewsomething/github-download-stats

Repository files navigation

github-download-stats Actions Status

Download statistics for GitHub release assets are only available via the API. github-download-stats is a command line utility to fetch them for a specific repository.

Installation

Pre-built binaries for Linux, macOS, and Windows are available in the releases tab.

Docker images are also available:

docker run andrewsomething/github-download-stats

github-download-stats can be installed from source by running:

Go Version 1.16 and Earlier

go get -u github.com/andrewsomething/github-download-stats

Go Version 1.17 and Later

go install github.com/andrewsomething/github-download-stats@latest

Usage

Usage of ./github-download-stats:
  -api-endpoint string
    	API endpoint for use with GitHub Enterprise
  -json
    	Output in JSON
  -owner string
    	The GitHub repository's owner (required)
  -release string
    	The tag name of the release; excluding will list all releases
  -repo string
    	The GitHub repository (required)
  -token string
    	GitHub API token (default "")
  -version
    	Print version

Usage for Get Stats for All Releases

github-download-stats -owner <owner> -repo <repo> -token <your_token>

Usage for Get Stats for Specific Releases

github-download-stats -owner <owner> -repo <repo> -release <release_tag> -token <your_token>

Usage for Get Stats in JSON

github-download-stats -owner <owner> -repo <repo> -json -token <your_token>

License

github-download-stats is available via the MIT license.

About

CLI to fetch download statistics for GitHub releases

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载