https://github.com/andrewsomething/github-download-stats
CLI to fetch download statistics for GitHub releases
https://github.com/andrewsomething/github-download-stats
analytics github go hacktoberfest
Last synced: 2 months ago
JSON representation
CLI to fetch download statistics for GitHub releases
- Host: GitHub
- URL: https://github.com/andrewsomething/github-download-stats
- Owner: andrewsomething
- License: mit
- Created: 2019-03-15T19:31:51.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T21:55:25.000Z (3 months ago)
- Last Synced: 2025-05-07T20:42:07.057Z (2 months ago)
- Topics: analytics, github, go, hacktoberfest
- Language: Go
- Homepage:
- Size: 382 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-download-stats [](https://github.com/andrewsomething/github-download-stats/actions)
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](https://github.com/andrewsomething/github-download-stats/releases).
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 -repo -token
```
### Usage for Get Stats for Specific Releases```
github-download-stats -owner -repo -release -token
```
### Usage for Get Stats in JSON```
github-download-stats -owner -repo -json -token
```## License
`github-download-stats` is available via the MIT license.