An independent package manager for compiled binaries.
sudo
.Stewfile
with optional pinned versioning.Stewfile.lock.json
file.Stew supports macOS, Linux, and Windows.
Compiled binaries can be downloaded from the releases page.
# Install from GitHub releases
stew install junegunn/fzf # Install the latest release
stew install junegunn/fzf@0.27.1 # Install a specific, tagged version
# Install directly from a URL
stew install https://github.com/cli/cli/releases/download/v2.4.0/gh_2.4.0_macOS_amd64.tar.gz
# Install from an Stewfile
stew install Stewfile
# Install headlessly from a Stewfile.lock.json
stew install Stewfile.lock.json
# Search for a GitHub repo and browse its contents with a terminal UI
stew search ripgrep
# Browse a specific GitHub repo's releases and assets with a terminal UI
stew browse sharkdp/hyperfine
# Upgrade a binary to its latest version. Not for binaries installed from a URL.
stew upgrade rg # Upgrade using the name of the binary directly
stew upgrade --all # Upgrade all binaries
# Uninstall a binary
stew uninstall rg # Uninstall using the name of the binary directly
stew uninstall --all # Uninstall all binaries
# Rename an installed binary using an interactive UI
stew rename rg # Rename using the name of the binary directly
# List installed binaries
stew list # Print to console
stew list > Stewfile # Create an Stewfile without pinned tags
stew list --tags > Stewfile # Pin tags
# Configure the stew file paths using an interactive UI
stew config # Automatically updates the stew.config.json
stew
automatically find any binaries for X repo?The repo probably uses an unconventional naming scheme for their binaries. You can always manually select the release asset.
stew
work with private GitHub repositories?Yes, stew
will automatically detect if you have a GITHUB_TOKEN
environment variable and allow you to access binaries from your private repositories.
stew
install binaries?The default installation path will depend on your OS: | Linux/macOS | Windows |
---|---|---|
~/.local/bin |
~/AppData/Local/stew/bin |
However, this location can be configured.
Make sure that the installation path is in your PATH
environment variable. Otherwise, you won't be able to use any of the binaries installed by stew
.