zb outdated command checks all installed packages against the latest available versions and reports which ones have updates available.
Usage
Options
Show only package names, one per line. Cannot be used with
--verbose or --json.Show detailed version information with color-coded output. Cannot be used with
--quiet or --json.Output results as JSON array. Cannot be used with
--quiet or --verbose.Description
This command compares the installed versions of all packages against the latest versions available in the formula repository. It’s useful for discovering which packages can be upgraded. The command supports three output formats:- Default: Shows package name with installed and available versions
- Quiet (
--quiet): Shows only package names (useful for scripting) - Verbose (
--verbose): Shows detailed information with color highlighting - JSON (
--json): Machine-readable structured output
The
--quiet, --verbose, and --json flags are mutually exclusive - you can only use one at a time.Examples
Check for outdated packages with default output:Output Formats
Default Format
Shows package name with versions in the format:name (installed) < available
Quiet Format
One package name per line, with no additional information. This format is ideal for:- Shell scripts that need to process the list
- Piping to other commands
- Counting outdated packages with
wc -l
Verbose Format
Color-coded output showing:- Package name
- Installed version (in red)
- Arrow separator
- Available version (in green)
JSON Format
Structured JSON array where each object contains:name: Package nameinstalled_versions: Array of installed versions (currently always contains one version)current_version: Latest available version
When No Updates Available
When all packages are up to date:Related Commands
- zb update - Update formula cache before checking for outdated packages
- zb install - Install or upgrade packages
- zb list - List all installed packages