Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 5 days ago
JSON representation

CLI to fetch download statistics for GitHub releases

Awesome Lists containing this project

README

        

# github-download-stats [![Actions Status](https://github.com/andrewsomething/github-download-stats/workflows/Test/badge.svg)](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.