macup v6.1

Documentation

Keep Homebrew, developer toolchains, and Mac apps up to date with one command. Start in 30 seconds, automate safely in the background, and undo any broken update offline.

Install & First Run

Install the native universal macOS binary for Apple Silicon and Intel. Nothing runs in the background and no config file is required.

zsh · Recommended · Binary + Zsh, Bash & Fish completions
# 1. Install macup
brew install HMarzban/tap/macup

# 2. Preview what's outdated (read-only — changes nothing)
macup check

# 3. Run parallel updates and view the report
macup
01 · INSTALL

One universal binary

Works out of the box on Apple Silicon and Intel Macs with shell completions included.

02 · PREVIEW

Check safely first

Run macup check anytime to inspect available updates without modifying your Mac.

03 · UPDATE

Run in parallel

Run macup to update everything at once and inspect results in the interactive report.

Want a guided setup for themes, terminal icons, Touch ID sudo, or background updates? Run macup init or open macup settings anytime.

Requirements, Touch ID & upgrading from v6.0
  • Platform: macOS on Apple Silicon (arm64) or Intel (x86_64). Opt-in Touch ID for sudo (macup touchid --enable) requires macOS 14 Sonoma+ and always keeps password fallback.
  • Upgrading existing installs: Run macup or brew upgrade --cask macup. All existing configs, rules, and schedules upgrade seamlessly with zero breaking changes.
  • Source builds on Apple Silicon: Always use make install rather than overwriting ~/.local/bin/macup in place so macOS code-signature caching stays healthy.

Everyday Usage

macup automatically detects what’s installed on your Mac and updates everything in parallel — skipping tools you don’t use and never interrupting open desktop apps.

What macup updates

Apps & Homebrew

Homebrew & Workbrew formulae and casks (open GUI apps wait until you’re ready), Mac App Store apps, macOS update notices, and unmanaged /Applications checks.

Languages & Toolchains

Node via nvm, Rust & Cargo, Python tools (uv, pipx), Bun, Go tools, pnpm, yarn, Composer, Deno, Flutter, mise, and asdf.

Editors & Shell

VS Code, Cursor, Windsurf, Antigravity, VSCodium, Neovim (lazy.nvim), Oh My Zsh, Antidote, Sheldon, Fisher, tmux plugins, and GitHub CLI extensions.

Containers & Cleanup

OrbStack, Docker Desktop, Colima, Rancher Desktop, Podman, Raycast, safe cache cleanup, Brewfile snapshots, and your own custom steps.

Using the terminal UI

PICK

macup -i

Choose specific lanes or quick presets (b Brew, t Toolchains, f Fast non-sudo) before running.

WATCH

Live progress

Watch parallel steps complete in real time with split-pane logs on wide terminals and slow-download timers.

REVIEW

7-tab report

Review changes, upgrade waiting apps, adopt unmanaged apps, pin packages, or undo upgrades — with mouse or keyboard.

Every screen shows only the shortcuts that work right now at the bottom. To start, remember just five keys: 1–7 switch tabs, / filters the current view, P / S open Autopilot & Settings, ? shows help, and q exits.

All 25+ auto-detected tools & parallel engine details
  • Homebrew & CLI extras: Homebrew / Workbrew formulae & casks (--greedy-auto-updates default, sliding-window concurrent downloads casks-first, batched formula upgrades), cache cleanup, Brew npm, Claude Code, and Supabase CLI.
  • Toolchains & editors: ETag-cached nvm (Node/npm), rustup (+ cargo-install-update), uv, pipx, bun, concurrent proxy.golang.org Go binaries (honoring GOPRIVATE + undo hints), pnpm, yarn, gh extensions, composer, asdf, mise, deno, flutter, agy, gcloud, oh-my-zsh, antidote, sheldon, fisher, tmux (TPM), lazy.nvim, and VS Code / Cursor / Windsurf / Antigravity / VSCodium extensions.
  • System & unmanaged apps: Report-only macOS Software Update (with BSI / CLT tags and opt-in install_macos_clt), Mac App Store via mas (skips Xcode by default; supports ignore_mas), and depth-2 scanning of /Applications and ~/Applications using Homebrew 7 JWS offline catalogs, Sparkle, and Electron update feeds.
  • Zero-fork performance engine: Uses an EWMA critical-path scheduler (max_parallel_steps = 8, fetch_jobs = 6, automatic single transient retry), pure-Go binary/XML plist parsing (avoiding 50+ plutil subprocesses), age/size-gated cache pruning, and plan.json prefetch handoff from background runs.
Complete keyboard shortcut cheat sheet
ShortcutAction
1–7 · TabSwitch tabs (Overview, Changes, Attention, Steps, Logs, Apps, History) or click tabs directly
P · S · D · : · ?Open Autopilot, Preferences & Theme Studio, 13-Check Doctor Overlay, Command Palette, or Help
/ · EscFilter the active tab; Esc clears search, then selection, then returns to Overview
u · UUpgrade focused waiting app (quit → update from cache → reopen) or apply all cached updates
z · ZSnooze item (7 days or until next version) / toggle showing snoozed items
t · pCycle auto-policy (default → always-auto → manual-only) / pin or ignore package or app
m · bMigrate deprecated formula to replacement / open Offline Rollback Inspector
Space · a · AMulti-select unmanaged apps and adopt/update them into Homebrew Cask
r · R · dRetry failed step(s) or rescan Apps; d toggles Changelog Diff in History
l · [ ] · eJump to step logs / cycle steps / open full redacted log in $PAGER
c · y · o · qCopy Markdown report / copy fix command / reveal in Finder or open Software Update / quit
Themes, brand icons & terminal icon setup

Run macup settings to live-preview 6 themes (cyberwarm, midnight, tokyo, gruvbox, catppuccin, mono) that automatically calibrate contrast to your terminal’s light or dark background, plus 6 brand icons and layout density controls. Run macup icons setup to switch between Nerd Font, standard Unicode, and 7-bit ASCII icons.

Automatic Updates (Autopilot)

Optional background updates using macOS’s native scheduler — 0 MB RAM when idle and zero macOS privacy popups. Nothing runs in the background until you turn it on.

off

Manual

No background checks. Updates happen only when you run macup.

prefetch

Default

Checks for updates and pre-downloads packages silently. Zero installs, zero sudo.

smart-apply

Automatic

Applies low-risk CLI updates and safe desktop apps 5 minutes after you quit them. Skips open apps, installers, and major jumps.

zsh · Turn on Autopilot or preview what it would do
# Open the interactive Autopilot Control Plane (toggle modes & inspect live guards)
macup autopilot

# Or enable from the CLI directly (prefetch every 6 hours)
macup schedule install --mode prefetch --every 6h

# See why each pending package would be applied or held back (read-only)
macup daemon --explain

Automatically pauses when you’re busy

  • Low battery or Low Power Mode: Waits when battery is below 40% or Low Power Mode is active (even while plugged in).
  • Calls, screen shares & presentations: Stays silent whenever your camera, mic, Zoom/Meet, or Keynote is active.
  • Hotspots & offline networks: Skips Personal Hotspots, metered connections, and the first 90 seconds after wake.
  • Heavy load or tight disk space: Backs off during active builds, thermal throttling, or under 5 GB free disk space.
Under the hood: LaunchAgent, guard checks, autonomy rules & notifications
  • Zero-RAM LaunchAgent: Installs a single ~/Library/LaunchAgents/dev.macup.agent.plist pointing to a stable symlink (/opt/homebrew/bin/macup), with 15-minute fast-tick checks, kernel single-instance locking, adaptive backoff (5m → 15m → 30m → 60m), and log rotation at 2 MiB.
  • No privacy prompts (TCC-free): Guard probes complete in ~15ms using standard macOS utilities (pmset, ipconfig, scutil, ioreg, statfs) — never touching Calendar, Screen Recording, or Full Disk Access.
  • Fail-closed safety: Every step defaults to interactive-only so background runs never launch Docker, OrbStack, GUI apps, destructive cleanups, or custom shell hooks.
  • Zero-spam notifications: Respects quiet hours (22:00–08:00), deduplicates alerts by SHA-256 hash, and supports actionable, critical, weekly, and off policies.

Undo & Safety (Offline Rollback)

Every interactive run and Autopilot update automatically saves local backups for 7 days. If an upgrade breaks a CLI tool or desktop app, roll it back offline in one command.

zsh · Undo an upgrade offline (works without internet)
macup rollback --last                 # Restore the most recent upgrade immediately
macup rollback <pkg>                  # Restore a specific formula or app (--force if open)
macup rollback --list                 # See all saved 7-day backups & quarantined packages
macup rollback --unquarantine <pkg>   # Allow macup to retry a previously broken version
  • Zero-cost instant backups: Prior Homebrew kegs stay preserved on disk and eligible desktop apps are cloned via instant APFS Copy-on-Write (taking virtually zero extra disk space).
  • Automatic post-update verification: After upgrading, macup checks shared libraries, runs a quick crash test, and verifies Apple code-signing identity — rolling back automatically if anything fails.
  • 3-strike quarantine: Repeatedly broken versions are quarantined automatically so Autopilot won’t keep reinstalling them until upstream releases a newer version.
Under the hood: Cellar kegs, APFS clones & 4 automated health gates
  • Homebrew Cellar preservation: Upgrades run with HOMEBREW_NO_INSTALL_CLEANUP=1 (for both core and tapped formulae) and restore offline by unlinking the broken version and relinking the preserved keg or keg-only opt/ symlink.
  • APFS Copy-on-Write app backups: Pure-.app, non-sudo, user-writable casks across /Applications, ~/Applications, and quoted HOMEBREW_CASK_OPTS --appdir are snapshotted via /bin/cp -cRp -- with symlink containment checks.
  • 4 health gates: (1) Mach-O dylib check with pure-Go LC_RPATH resolution (@rpath, @loader_path, @executable_path), (2) isolated 3-second CLI crash/dyld smoke test, (3) fail-closed codesign --verify, and (4) TCC-free codesign -dv TeamIdentifier + CFBundleIdentifier continuity guard catching unexpected signing-identity swaps (team-id!).
  • Interactive snooze parity: Both manual runs and Autopilot respect snoozed items in rules.json (pass --include-snoozed to override for a single run).

Prompts, Menu Bar & Automation

macup status reads local cached state in under 1ms with zero network calls — ideal for shell prompts, zero-RAM menu-bar widgets, and scripts.

toml / zsh · Silent when up to date · Prints badge like ↑3 when updates wait
# Starship (~/.config/starship.toml)
[custom.macup]
command = "macup status --prompt"
when = "test -s ~/.local/share/macup/pending.json"
format = "[$output]($style) "
style = "bold yellow"

# Zsh (~/.zshrc) — prompt badge + optional 1-line login summary
macup_badge() {
  local b="$(macup status --prompt 2>/dev/null)"
  [[ -n "$b" ]] && echo " %F{yellow}${b}%f"
}
macup status --greeting 2>/dev/null

Reference

Look up any CLI command, configuration option, corporate Mac safeguard, or security detail — or press / to jump straight to a keyword.

CommandWhat it does
macup / macup runRun parallel updates across all detected ecosystems and open the 7-tab report
macup -iChoose which lanes or steps to run before starting
macup check [--exit-code]Preview available updates read-only (--exit-code exits 0 clean, 10 pending, 1 error)
macup report [N]Re-open the 7-tab report for run #N (default latest)
macup status [--prompt|--greeting|--json]Instant <1ms summary, shell badge, 1-line greeting, or schema_version: 2 JSON
macup autopilot [mode|pause|resume|run-now]Interactive Autopilot Control Plane (off, prefetch, smart-apply)
macup rollback [--list|<pkg>|--last|--prune|--unquarantine]Inspect or restore offline 7-day backups (pass --force if app is running)
macup schedule [status|install|pause|resume|uninstall|run-now]Manage the background LaunchAgent (--mode, --every 6h, --at HH:MM)
macup daemon [--mode ...|--explain|--force]Run one background pass or preview policy decisions with --explain
macup audit [--deep]Find unmanaged apps (--deep adds deprecated Brew, Rosetta apps & Go tools, orphans, stale nvm)
macup adopt [cask...] [--all|--force|--dry-run]Move unmanaged /Applications apps under Homebrew Cask management
macup pin / unpin [--list|--app|--go|--mas] <pkg...>Pin or ignore formulae, casks, apps, Go tools, or App Store IDs (--list shows all rules)
macup diff [A] [B] [--since 7d]See a combined changelog across past runs or a time window (24h, 7d, 30d)
macup snapshot [diff|list]Export snapshot.json + Brewfile or diff snapshots to spot drift
macup history / providers / listShow past runs, detected providers, or active execution steps
macup initGuided first-run setup (config, icons, completions, Touch ID, optional schedule)
macup settings [theme|brand|icons|density|width|font|show]Live-preview Preferences & Theme Studio (syncs Autopilot changes to LaunchAgent)
macup icons [status|preview|setup] [--mode ...]Test and set Nerd Font, Unicode, or ASCII terminal icons
macup doctorRun 13-check environment, PATH, corporate proxy, Brew, and daemon diagnostics
macup config [show|init|edit|path]Inspect, create, or edit ~/.config/macup/config.toml with TOML validation
macup touchid [--enable|--disable]Check, enable, or safely disable Touch ID for sudo in /etc/pam.d/sudo_local (macOS 14+)
macup completion [zsh|bash|fish|install]Print or install native shell tab completions
Global flags & output modes (10)
FlagBehavior
-i, --interactiveOpen lane-grouped Step Picker before running
-n, --dry-runPreview available updates without making changes
--only LISTRun only matching step numbers, IDs, or names (e.g. --only brew,rust,go-tools)
--include-snoozedTemporarily bypass active rules.json snoozes for this run
--exit-codeFor macup check: exit 0 clean, 10 updates available, or 1 error
--explainExplain per-package Autopilot risk tiers & tags without modifying anything
--icons MODEOverride icon tier for this run: auto, nerd, unicode, or ascii
--json · --md · --plainStructured JSON, GitHub Markdown, or pure 7-bit ASCII (zero ANSI color codes)
--full · --compact · --stayStatic card layout overrides and interactive report exit behavior (--no-stay)
-v, --verbose · --serialStream raw command output directly or disable parallel execution