Skip to main content

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 use jq, 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 jq is now available:
You should see the version number printed.

Installing multiple packages

You can install multiple packages in a single command:
zerobrew will automatically:
  • 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

Use zbx to run a package without linking it to your prefix:
This is useful for:
  • 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:
Or use environment variables:

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:
Indicates the package being installed.
Shows all packages that will be installed, including dependencies.
Progress bars for each package showing download and installation status.
Summary with total time elapsed.

Next steps

Commands reference

Explore all available zerobrew commands and options

Configuration

Learn about environment variables and configuration options
Remember that zerobrew is experimental. If you encounter issues with a specific formula, you can always fall back to using Homebrew for that package while using zerobrew for others.