Usage
Arguments
This command takes no arguments.Options
path
Environment:
ZEROBREW_ROOTOverride the root directory for zerobrew’s content-addressable store.path
Environment:
ZEROBREW_PREFIXOverride the prefix directory where packages are linked.number
Default:
20Number of concurrent operations to perform.boolean
Alias:
--yesEnvironment: ZEROBREW_AUTO_INITAutomatically initialize zerobrew if not already set up.Output Format
Each installed package is displayed on a single line:- name - The formula name (bold)
- version - The installed version (dimmed)
Examples
List installed packages
No packages installed
If you haven’t installed any packages yet:After installing packages
openssl@3) are also shown.
Use Cases
Check what’s installed
Quickly see all packages managed by zerobrew:Export to Brewfile
Uselist output to manually create a Brewfile, or use zb bundle dump to do it automatically:
Count installed packages
Find specific package
Script usage
Check if a package is installed in a script:Implementation Details
Thelist command reads from zerobrew’s local installation database, which tracks:
- Formula name
- Installed version
- Store key (content-addressable hash)
- Installation timestamp
- Link status
zb info.
Comparison with Homebrew
Performance
Thelist command is instant, as it reads from a local SQLite database rather than scanning the filesystem:
Related Commands
zb info- Show detailed information about a specific packagezb install- Install packageszb uninstall- Uninstall packageszb bundle dump- Export packages to a Brewfilezb outdated- Show packages with available updates