Quick start
This guide will help you get started with zerobrew by walking through the most common commands and workflows.Your first installation
Let’s install a package using zerobrew. We’ll usejq, a popular command-line JSON processor:
1
Install a package
Run the install command:You’ll see output showing the installation progress:
2
Verify the installation
Check that You should see the version number printed.
jq is now available:Installing multiple packages
You can install multiple packages in a single command:- Resolve all dependencies
- Download packages in parallel
- Install them efficiently using content-addressable storage
Working with Brewfiles
Brewfiles allow you to manage your packages as code. This is useful for reproducible environments and dotfiles.1
Create a Brewfile
Create a file named
Brewfile in your project directory:Brewfile
2
Install from Brewfile
Install all packages from the Brewfile:Or specify a custom file:
3
Export current packages
You can also export your currently installed packages to a Brewfile:To overwrite an existing file:
Running without installing
Usezbx to run a package without linking it to your prefix:
- One-time commands
- Testing packages before installation
- Running different versions temporarily
Common commands
Here’s a quick reference of the most common zerobrew commands:Advanced options
zerobrew supports several global options:Concurrency control
Adjust the number of parallel operations (default is 20):Custom directories
Override the default installation directories:Auto-initialize
Automatically initialize zerobrew if not already set up:Shell completion
Generate shell completion scripts for your shell:Understanding the output
When you install a package, zerobrew shows detailed progress:Next steps
Commands reference
Explore all available zerobrew commands and options
Configuration
Learn about environment variables and configuration options