# Install fetch with Homebrew, apk, MacPorts, winget

Download assets from a commit, branch, or tag of GitHub repositories. Version 0.4.8 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:fetch
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fetch
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fetch
```

  Evidence: MacPorts ports tree: net/fetch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add fetch
```

  Evidence: Alpine Linux edge package indexes: fetch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

### Windows

- winget (92%):

```sh
winget install --id MattWhitwam.Fetch -e
```

  Evidence: Windows Package Manager source index: MattWhitwam.Fetch from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:fetch
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fetch>
- **Version:** 0.4.8
- **Source summary:** Download assets from a commit, branch, or tag of GitHub repositories
- **Homepage:** <https://www.gruntwork.io/>
- **Repository:** <https://github.com/gruntwork-io/fetch>
- **Upstream docs:** <https://github.com/gruntwork-io/fetch#readme>
- **License:** MIT
- **Source archive:** <https://github.com/gruntwork-io/fetch/archive/refs/tags/v0.4.8.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- fetch (cli)
- fetch (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.4.8
- Local data: ok
- Upstream repository: https://github.com/gruntwork-io/fetch
- Upstream latest detected: v0.4.8 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Gruntwork's fetch is a release-asset and repository-content downloader for GitHub and GitLab repositories. It exists to turn a versioned repository reference into an installable file, directory, or binary asset with less shell scripting around API calls and authentication.

### Project history

The README explains the tool's origin in Gruntwork's need to publish scripts and binaries that clients could install at a specific version. The public repository was created in 2016, and the tool grew around the practical cases that were awkward with a bare curl or wget command: private repositories, JSON API responses, release assets, authentication, checksums, and semantic-version tag constraints.

### Adoption history

Official installation guidance treats Homebrew packages as third-party convenience packages and recommends GitHub Releases for release binaries. The tool's adoption story is therefore centered on infrastructure teams consuming versioned assets from Git hosting services rather than a large ecosystem of plugins or libraries.

### How it is used

Common usage is a one-liner such as fetch --repo=... --tag=... --source-path=... /tmp/path. The CLI can select a branch, commit, tag, or tag constraint, download selected paths or release assets, verify SHA256 or SHA512 checksums, and use environment variables such as GITHUB_OAUTH_TOKEN or GITLAB_TOKEN for private repositories.

### Why package nerds care

fetch is package-manager-adjacent: it is not a package manager, but it solves the same reproducibility itch for teams distributing small tools out of Git releases. Package nerds care because it codifies a common bootstrap pattern without requiring every installer script to hand-roll GitHub or GitLab API plumbing.

### Timeline

- 2016: Public GitHub repository created.
- 2016 onward: README positions fetch around downloading versioned scripts, folders, and release assets from GitHub repositories.
- README status note: GitLab support covers public, private, nested-group, and self-hosted repositories.

### Related projects

- fetch overlaps with curl, wget, GitHub Releases, GitLab releases, and semantic-version tooling, but focuses on authenticated, version-selected repository and release-asset downloads.

### Sources

- <https://github.com/gruntwork-io/fetch>
- <https://raw.githubusercontent.com/gruntwork-io/fetch/master/README.md>
- <https://api.github.com/repos/gruntwork-io/fetch>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fetch
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- apk - fetch - 14.0.0-r0: normalized package name match | Alpine Linux edge package indexes: fetch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable fetch utility from FreeBSD | https://github.com/jrmarino/fetch-freebsd
- apk - fetch-dev - 14.0.0-r0: normalized package name match | Alpine Linux edge package indexes: fetch-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable fetch utility from FreeBSD (development files) | https://github.com/jrmarino/fetch-freebsd
- apk - fetch-doc - 14.0.0-r0: normalized package name match | Alpine Linux edge package indexes: fetch-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable fetch utility from FreeBSD (documentation) | https://github.com/jrmarino/fetch-freebsd
- apk - libfetch - 14.0.0-r0: normalized package name match | Alpine Linux edge package indexes: libfetch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable fetch utility from FreeBSD (libraries) | https://github.com/jrmarino/fetch-freebsd
- MacPorts - fetch: normalized package name match | MacPorts ports tree: net/fetch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - MattWhitwam.Fetch: normalized package name match | Windows Package Manager source index: MattWhitwam.Fetch from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [ghorg](https://www.automicvault.com/pkg/brew/ghorg/) - Shares av.db curated category or tags: cli, developer-tools, github, gitlab, source-control.
- [gibo](https://www.automicvault.com/pkg/brew/gibo/) - Shares av.db curated category or tags: cli, developer-tools, github, source-control.
- [giflib](https://www.automicvault.com/pkg/brew/giflib/) - Shares av.db curated category or tags: cli, developer-tools, github, source-control.
- [gcli](https://www.automicvault.com/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, github, gitlab.
- [ghq](https://www.automicvault.com/pkg/brew/ghq/) - Shares av.db curated category or tags: cli, developer-tools, source-control.
- [gickup](https://www.automicvault.com/pkg/brew/gickup/) - Shares av.db curated category or tags: cli, developer-tools, source-control.
- [git-spice](https://www.automicvault.com/pkg/brew/git-spice/) - Shares av.db curated category or tags: cli, developer-tools, github, gitlab.
- [gitbackup](https://www.automicvault.com/pkg/brew/gitbackup/) - Shares av.db curated category or tags: cli, developer-tools, github, gitlab.

## Combined YAML source

View the package source record on GitHub. [combined/fetch.yml](https://github.com/automic-vault/db/blob/main/combined/fetch.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
