Keep updated binaries in your dotfiles
Project description
dotbins 🧰
dotbins manages CLI tool binaries in your dotfiles repository, offering:
- ✅ Cross-platform binary management (macOS, Linux, Windows)
- ✅ No admin privileges required
- ✅ Version-controlled CLI tools
- ✅ Downloads from GitHub releases
- ✅ Perfect for dotfiles synchronization
No package manager, no sudo, no problem.
See this example .dotbins repository: basnijholt/.dotbins completely managed with dotbins.
[!NOTE] 💡 What makes dotbins different? Unlike similar tools, dotbins uniquely integrates tool-specific shell configurations (aliases, completions, etc.) directly in your dotfiles workflow, not just binary downloads, and allows a Git workflow for managing binaries.
[ToC] 📚
:zap: Quick Start
Using the amazing uv package manager (uv tool install dotbins):
# Install directly to ~/.local/bin (no configuration needed)
dotbins get junegunn/fzf
# Set up multiple tools with a config file (creates ~/.dotbins)
dotbins sync
# Bootstrap a collection of tools from a remote config
dotbins get https://github.com/basnijholt/.dotbins/blob/main/dotbins.yaml
See it in action:
:star2: Features
- 🌐 Supports multiple platforms (macOS, Linux, Windows) and architectures (amd64, arm64, etc.)
- 📦 Downloads and organizes binaries from GitHub releases
- 🔄 Installs and updates tools to their latest versions with a single command
- 📊 Tracks installed versions and update timestamps for all tools
- 🧩 Extracts binaries from various archive formats (zip, tar.gz)
- 📂 Organizes tools by platform and architecture for easy access
- 🐙 Easy integration with your dotfiles repository for version control
- ⚙️ Automatic PATH & Shell Code: Configures
PATHand applies custom shell snippets (shell_code).
:bulb: Why I Created dotbins
I frequently works across multiple environments where I clone my dotfiles repository with all my preferred configurations.
I faced a common frustration: some of my favorite tools (fzf, bat, zoxide, etc.) were not available on the new system and installing them with a package manager is too much work or even not possible.
dotbins was born out of this frustration.
It allows me to:
- Track pre-compiled binaries in a separate Git repository (using Git LFS for efficient storage)
- Include that repository as a submodule in my dotfiles
- Ensure all my essential tools are immediately available after cloning, regardless of system permissions
Now when I clone my dotfiles on any new system, I get not just my configurations but also all the CLI tools I depend on for productivity, ready to use with their specific aliases and shell initializations automatically configured.
No package manager, no sudo, no problem!
:books: Usage
[!TIP] Use
uvx dotbinsand create a~/.config/dotbins/config.yamlfile to store your configuration.
To use dotbins, you'll need to familiarize yourself with its commands:
dotbins --help
Usage: dotbins [-h] [-v] [--tools-dir TOOLS_DIR] [--config-file CONFIG_FILE]
{get,sync,init,list,status,readme,version} ...
dotbins - Download, manage, and update CLI tool binaries in your dotfiles
repository
Positional Arguments:
{get,sync,init,list,status,readme,version}
Command to execute
get Download and install a tool directly without
configuration file
sync Install and update tools to their latest versions
init Initialize directory structure and generate shell
integration scripts
list List all available tools defined in your configuration
status Show installed tool versions and when they were last
updated
readme Generate README.md file with information about
installed tools
version Print dotbins version information
Options:
-h, --help show this help message and exit
-v, --verbose Enable verbose output with detailed logs and error
messages
--tools-dir TOOLS_DIR
Tools directory to use (overrides the value in the
config file)
--config-file CONFIG_FILE
Path to configuration file (default: looks in standard
locations)
Commands
- sync - Install and update tools to their latest versions
- get - Download and install a tool directly without using a configuration file
- init - Initialize the tools directory structure
- list - List available tools defined in your configuration
- version - Print version information
- status - Show detailed information about available and installed tool versions
Quick Install with dotbins get
The get command allows you to quickly download and install tools directly from GitHub or from a remote configuration file:
# Install fzf to the default location (~/.local/bin)
dotbins get junegunn/fzf
# Install ripgrep with a custom binary name
dotbins get BurntSushi/ripgrep --name rg
# Install bat to a specific location
dotbins get sharkdp/bat --dest ~/bin
# Install multiple tools from a remote config URL/local path
dotbins get https://example.com/my-tools.yaml --dest ~/.local/bin
This is perfect for:
- Quickly installing tools on a new system
- One-off installations without needing a configuration file
- Adding tools to PATH in standard locations like
~/.local/bin - Bootstrapping with a pre-configured set of tools using a remote configuration URL or local config
The get command automatically detects whether you're providing a GitHub repository or a configuration URL/path.
When using a URL/path, it will download all tools defined in the configuration for your current platform and architecture.
:hammer_and_wrench: Installation
We highly recommend to use uv to run dotbins:
uvx dotbins
or install as a global command:
uv tool install dotbins
Otherwise, simply use pip:
pip install dotbins
You'll also need to create or update your dotbins.yaml configuration file either in the same directory as the script or at a custom location specified with --tools-dir.
:gear: Configuration
dotbins uses a YAML configuration file to define the tools and settings. The configuration file is searched in the following locations (in order):
- Explicitly provided path (using
--config-fileoption) ./dotbins.yaml(current directory)~/.config/dotbins/config.yaml(XDG config directory)~/.config/dotbins.yaml(XDG config directory, flat)~/.dotbins.yaml(home directory)~/.dotbins/dotbins.yaml(default dotfiles location)
The first valid configuration file found will be used. If no configuration file is found, default settings will be used.
Basic Configuration
# Basic settings
tools_dir: ~/.dotbins # (optional, ~/.dotbins by default)
# Target platforms and architectures (optional, current system by default)
platforms:
linux:
- amd64
- arm64
macos:
- arm64 # Only arm64 for macOS
# Tool definitions
tools:
# Tool configuration entries
Tool Configuration
Each tool must be configured with at least a GitHub repository. Many other fields are optional and can be auto-detected.
The simplest configuration is:
tools:
# tool-name: owner/repo
zoxide: ajeetdsouza/zoxide
fzf: junegunn/fzf
dotbins will auto-detect the latest release, choose the appropriate asset for your platform, and install binaries to the specified tools_dir (defaults to ~/.dotbins).
When auto-detection isn't possible or you want more control, you can provide detailed configuration:
tool-name:
repo: owner/repo # Required: GitHub repository
binary_name: executable-name # Optional: Name of the resulting binary(ies) (defaults to tool-name)
extract_archive: true # Optional: Whether to extract from archive (true) or direct download (false) (auto-detected if not specified)
path_in_archive: path/to/binary # Optional: Path to the binary within the archive (auto-detected if not specified)
# Asset patterns - Optional with auto-detection
# Option 1: Platform-specific patterns
asset_patterns: # Optional: Asset patterns for each platform
linux: pattern-for-linux.tar.gz
macos: pattern-for-macos.tar.gz
# Option 2: Single pattern for all platforms
asset_patterns: pattern-for-all-platforms.tar.gz # Global pattern for all platforms
# Option 3: Explicit platform patterns for different architectures
asset_patterns:
linux:
amd64: pattern-for-linux-amd64.tar.gz
arm64: pattern-for-linux-arm64.tar.gz
macos:
amd64: pattern-for-macos-amd64.tar.gz
arm64: pattern-for-macos-arm64.tar.gz
Platform and Architecture Mapping
If the tool uses different naming for platforms or architectures:
tool-name:
# Basic fields...
platform_map: # Optional: Platform name mapping
macos: darwin # Converts "macos" to "darwin" in patterns
arch_map: # Optional: Architecture name mapping
amd64: x86_64 # Converts "amd64" to "x86_64" in patterns
arm64: aarch64 # Converts "arm64" to "aarch64" in patterns
Pattern Variables
In asset patterns, you can use these variables:
{version}- Release version (without 'v' prefix){platform}- Platform name (after applying platform_map){arch}- Architecture name (after applying arch_map)
Multiple Binaries
For tools that provide multiple binaries:
tool-name:
# Other fields...
binary_name: [main-binary, additional-binary]
path_in_archive: [path/to/main, path/to/additional]
Configuration Examples
Minimal Tool Configuration
direnv:
repo: direnv/direnv
or
ripgrep:
repo: BurntSushi/ripgrep
binary_name: rg # Only specify if different from tool name
Standard Tool
atuin:
repo: atuinsh/atuin
arch_map:
amd64: x86_64
arm64: aarch64
asset_patterns:
linux: atuin-{arch}-unknown-linux-gnu.tar.gz
macos: atuin-{arch}-apple-darwin.tar.gz
Tool with Multiple Binaries
uv:
repo: astral-sh/uv
binary_name: [uv, uvx]
path_in_archive: [uv-*/uv, uv-*/uvx]
Platform-Specific Tool
eza:
repo: eza-community/eza
arch_map:
amd64: x86_64
arm64: aarch64
asset_patterns:
linux: eza_{arch}-unknown-linux-gnu.tar.gz
macos: null # No macOS version available
Shell-Specific Configuration
The auto-generated shell scripts that add the binaries to your PATH will include the tool-specific shell code if provided.
For example, see the following configuration:
tools:
fzf:
repo: junegunn/fzf
shell_code: |
source <(fzf --zsh)
zoxide:
repo: ajeetdsouza/zoxide
shell_code: |
eval "$(zoxide init zsh)"
eza:
repo: eza-community/eza
shell_code: |
alias l="eza -lah --git"
If you want to make your config compatible with multiple shells (e.g., zsh, bash, fish), you can use the following syntax:
starship:
repo: starship/starship
shell_code:
zsh: eval "$(starship init zsh)"
bash: eval "$(starship init bash)"
fish: starship init fish | source
Full Configuration Example
This is the author's configuration file:
tools_dir: ~/.dotbins
platforms:
linux:
- amd64
- arm64
macos:
- arm64
tools:
delta: dandavison/delta
duf: muesli/duf
dust: bootandy/dust
fd: sharkdp/fd
git-lfs: git-lfs/git-lfs
hyperfine: sharkdp/hyperfine
yazi: sxyazi/yazi
bat:
repo: sharkdp/bat
shell_code: |
alias bat="bat --paging=never"
alias cat="bat --plain --paging=never"
direnv:
repo: direnv/direnv
shell_code: |
eval "$(direnv hook zsh)"
fzf:
repo: junegunn/fzf
shell_code: |
source <(fzf --zsh)
lazygit:
repo: jesseduffield/lazygit
shell_code: |
alias lg="lazygit"
zoxide:
repo: ajeetdsouza/zoxide
shell_code: |
eval "$(zoxide init zsh)"
ripgrep:
repo: BurntSushi/ripgrep
binary_name: rg
atuin:
repo: atuinsh/atuin
arch_map:
amd64: x86_64
arm64: aarch64
asset_patterns:
linux: atuin-{arch}-unknown-linux-gnu.tar.gz
macos: atuin-{arch}-apple-darwin.tar.gz
shell_code: |
source <(atuin init zsh --disable-up-arrow)
eza:
repo: eza-community/eza
arch_map:
amd64: x86_64
arm64: aarch64
asset_patterns:
linux: eza_{arch}-unknown-linux-gnu.tar.gz
macos: null # No macOS binaries available as of now
shell_code: |
alias l="eza -lah --git"
micromamba:
repo: mamba-org/micromamba-releases
extract_archive: false
path_in_archive: bin/micromamba
arch_map:
amd64: 64
arm64: aarch64
asset_patterns:
linux: micromamba-linux-{arch}
macos: micromamba-osx-arm64
shell_code: |
alias mm="micromamba"
uv:
repo: astral-sh/uv
binary_name: [uv, uvx]
path_in_archive: [uv-*/uv, uv-*/uvx]
shell_code: |
eval "$(uv generate-shell-completion zsh)"
starship:
repo: starship/starship
shell_code: |
eval "$(starship init zsh)"
:bulb: Examples
List all available tools in your configuration:
dotbins list
Install or update all tools for all configured platforms:
dotbins sync
Install or update specific tools only:
dotbins sync fzf bat ripgrep
Install or update tools for a specific platform/architecture:
dotbins sync -p macos -a arm64
Install tools only for your current system:
dotbins sync -c
Force reinstall even if tools are up to date:
dotbins sync --force
Install tools from a remote configuration:
dotbins get https://raw.githubusercontent.com/username/dotbins-config/main/tools.yaml --dest ~/bin
Show status (installed, missing tools, last updated) for all installed tools:
dotbins status
Show a compact view of installed tools (one line per tool):
dotbins status --compact
Show tools only for the current platform/architecture:
dotbins status --current
Filter tools by platform or architecture:
dotbins status --platform macos
dotbins status --architecture arm64
:computer: Shell Integration
dotbins creates shell scripts that you can source to automatically add the correct binaries to your PATH.
After running dotbins sync or dotbins init, shell integration scripts are created in ~/.dotbins/shell/ for various shells.
Check the output of dotbins init to see which shell scripts were created and how to add them to your shell configuration file:
✅ Loading configuration from: ~/work/dotbins/dotbins/dotbins.yaml
🛠️ dotbins initialized tools directory structure in `tools_dir=~/.dotbins`
📝 Generated shell scripts in ~/.dotbins/shell/
🔍 Add this to your shell config:
👉 Bash: source $HOME/.dotbins/shell/bash.sh
👉 Zsh: source $HOME/.dotbins/shell/zsh.sh
👉 Fish: source $HOME/.dotbins/shell/fish.fish
👉 Nushell: source $HOME/.dotbins/shell/nushell.nu
👉 PowerShell: . $HOME/.dotbins/shell/powershell.ps1
ℹ️ To see the shell setup instructions, run `dotbins init`
📝 Generated README at ~/.dotbins/README.md
:books: Examples with 50+ Tools
See the examples/examples.yaml file for a list of >50 tools that require no configuration.
tools_dir: ~/.dotbins-examples
# List of tools that require no configuration
tools:
bandwhich: imsnif/bandwhich # Terminal bandwidth utilization tool
bat: sharkdp/bat # Cat clone with syntax highlighting and Git integration
btm: ClementTsang/bottom # Graphical system monitor
btop: aristocratos/btop # Resource monitor and process viewer
caddy: caddyserver/caddy # Web server with automatic HTTPS
choose: theryangeary/choose # Cut alternative with a simpler syntax
croc: schollz/croc # File transfer tool with end-to-end encryption
ctop: bcicen/ctop # Container metrics and monitoring
curlie: rs/curlie # Curl wrapper with httpie-like syntax
delta: dandavison/delta # Syntax-highlighting pager for git and diff output
difft: Wilfred/difftastic # Structural diff tool that understands syntax
direnv: direnv/direnv # Environment switcher for the shell
dog: ogham/dog # Command-line DNS client like dig
duf: muesli/duf # Disk usage analyzer with pretty output
dust: bootandy/dust # More intuitive version of du (disk usage)
eget: zyedidia/eget # Go single file downloader (similar to Dotbins)
fd: sharkdp/fd # Simple, fast alternative to find
fzf: junegunn/fzf # Command-line fuzzy finder
git-lfs: git-lfs/git-lfs # Git extension for versioning large files
glow: charmbracelet/glow # Markdown renderer for the terminal
gping: orf/gping # Ping with a graph
grex: pemistahl/grex # Command-line tool for generating regular expressions from user-provided examples
gron: tomnomnom/gron # Make JSON greppable
hexyl: sharkdp/hexyl # Command-line hex viewer
hx: helix-editor/helix # Modern text editor
hyperfine: sharkdp/hyperfine # Command-line benchmarking tool
jc: kellyjonbrazil/jc # JSON CLI output converter
jless: PaulJuliusMartinez/jless # Command-line JSON viewer
jq: jqlang/jq # Lightweight JSON processor
just: casey/just # Command runner alternative to make
k9s: derailed/k9s # Kubernetes CLI to manage clusters
lazygit: jesseduffield/lazygit # Simple terminal UI for git commands
lnav: tstack/lnav # Log file navigator
lsd: lsd-rs/lsd # Next-gen ls command with icons and colors
mcfly: cantino/mcfly # Fly through your shell history
micro: zyedidia/micro # Modern and intuitive terminal-based text editor
navi: denisidoro/navi # Interactive cheatsheet tool for the CLI
neovim: neovim/neovim # Modern text editor
nu: nushell/nushell # Modern shell for the GitHub era
pastel: sharkdp/pastel # A command-line tool to generate, convert and manipulate colors
procs: dalance/procs # Modern replacement for ps
rg: BurntSushi/ripgrep # Fast grep alternative
rip: MilesCranmer/rip2 # A safe and ergonomic alternative to rm
sd: chmln/sd # Find & replace CLI
sk: skim-rs/skim # Fuzzy finder for the terminal in Rust (similar to fzf)
starship: starship/starship # Minimal, fast, customizable prompt for any shell
tldr: tealdeer-rs/tealdeer # Fast tldr client in Rust
topgrade: topgrade-rs/topgrade # Upgrade all your tools at once
tre: dduan/tre # Tree command with git awareness
xh: ducaale/xh # Friendly and fast tool for sending HTTP requests
xplr: sayanarijit/xplr # Hackable, minimal, fast TUI file explorer
yazi: sxyazi/yazi # Terminal file manager with image preview
yq: mikefarah/yq # YAML/XML/TOML processor similar to jq
zellij: zellij-org/zellij # Terminal multiplexer
zoxide: ajeetdsouza/zoxide # Smarter cd command with learning
platforms:
linux:
- amd64
- arm64
macos:
- arm64
:thinking: Comparison with Alternatives
dotbins fills a specific niche in the binary management ecosystem. Here's how it compares to key alternatives:
| Tool | Version Management | Shell Integration | Dotfiles Integration | Primary Use Case |
|---|---|---|---|---|
| dotbins | Latest only | Built-in via shell_code |
First-class with Git (LFS) | Complete dotfiles solution |
| binenv | Multiple versions with constraints | Separate completion scripts | Not focused on | Development environments |
| eget | Latest or specific only | None | Not focused on | Quick one-off installs |
| asdf/aqua | Multiple plugins & versions | Plugin-specific | Not focused on | Development environments |
| apt/brew | System packages | None | Not possible | System-wide management |
Key Alternatives
Version Managers (e.g., binenv, asdf)
- Pros: Advanced version management (constraints like
>=1.2.3), multiple versions side-by-side - Cons vs.
dotbins:- Focus on version management rather than dotfiles integration
- Separate configuration needed for shell integration (aliases, completions)
- Often use shims or more complex architecture
- When to choose: For development environments where you need multiple versions of tools
Binary Downloaders (e.g., eget)
- Pros: Lightweight, fast for one-off downloads
- Cons vs.
dotbins:- No configuration for multiple tools
- No shell integration for aliases or environment setup
- No version tracking between sessions
- When to choose: For quick installation of individual tools without configuration needs
System Package Managers (apt, brew, etc.)
- Pros: System-wide installation, dependency management
- Cons vs.
dotbins:- Require admin privileges
- Not portable across systems
- Cannot be version-controlled in dotfiles
- When to choose: For system-wide software needed by multiple users
The dotbins Difference
dotbins uniquely combines:
- Binary management - Downloading from GitHub Releases
- Shell configuration - Defining aliases and shell setup in the same file:
bat: repo: sharkdp/bat shell_code: | alias cat="bat --plain --paging=never"
- Dotfiles integration - Designed to be version-controlled as a Git repository
- Cross-platform portability - Works the same across Linux, macOS, Windows
This makes it perfect for users who want to manage their complete shell environment in a version-controlled dotfiles repository that can be easily deployed on any system.
:heart: Support and Contributions
We appreciate your feedback and contributions! If you encounter any issues or have suggestions for improvements, please file an issue on the GitHub repository. We also welcome pull requests for bug fixes or new features.
Happy tooling! 🧰🛠️🎉
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dotbins-0.32.0.tar.gz.
File metadata
- Download URL: dotbins-0.32.0.tar.gz
- Upload date:
- Size: 77.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
823dfe26923fe1abcc51c847b107bee622495d9a5249c6ff9836ed15735cd178
|
|
| MD5 |
afbc240aea42eb3d69ea95e9d20f217c
|
|
| BLAKE2b-256 |
ce0dd60a6b5cc3611f4c68e4cd71fa19405a9902081d78f321050d20887acc46
|
Provenance
The following attestation bundles were made for dotbins-0.32.0.tar.gz:
Publisher:
release.yml on basnijholt/dotbins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dotbins-0.32.0.tar.gz -
Subject digest:
823dfe26923fe1abcc51c847b107bee622495d9a5249c6ff9836ed15735cd178 - Sigstore transparency entry: 189946147
- Sigstore integration time:
-
Permalink:
basnijholt/dotbins@563659412bdebb8c0a99e4a66d8c2898420e30a6 -
Branch / Tag:
refs/tags/v0.32.0 - Owner: https://github.com/basnijholt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@563659412bdebb8c0a99e4a66d8c2898420e30a6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dotbins-0.32.0-py3-none-any.whl.
File metadata
- Download URL: dotbins-0.32.0-py3-none-any.whl
- Upload date:
- Size: 46.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbb77e77ccad9ecafcd89d1625a03f29ea98b6960168c42a5f92200f5ae0ab49
|
|
| MD5 |
b42dec8d70db92b06bac92d7f12e20f4
|
|
| BLAKE2b-256 |
98a75377ca77d1aee233a7dbbb060d97ff52be27a95d4c0ab4b2a1cde57ab283
|
Provenance
The following attestation bundles were made for dotbins-0.32.0-py3-none-any.whl:
Publisher:
release.yml on basnijholt/dotbins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dotbins-0.32.0-py3-none-any.whl -
Subject digest:
cbb77e77ccad9ecafcd89d1625a03f29ea98b6960168c42a5f92200f5ae0ab49 - Sigstore transparency entry: 189946148
- Sigstore integration time:
-
Permalink:
basnijholt/dotbins@563659412bdebb8c0a99e4a66d8c2898420e30a6 -
Branch / Tag:
refs/tags/v0.32.0 - Owner: https://github.com/basnijholt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@563659412bdebb8c0a99e4a66d8c2898420e30a6 -
Trigger Event:
release
-
Statement type: