Homebrew App Migrator
A retro-styled CLI tool to migrate manually installed macOS applications from /Applications to Homebrew Casks.
Why this tool?
If you've ever bought a new Mac and spent hours manually downloading .dmg files, dragging them to /Applications, and trying to remember everything you had installed, this tool is for you.
Homebrew is the gold standard for managing software on macOS, but it only works if your apps are installed as "Casks." Most people have a mix of apps they downloaded from websites and apps installed via Homebrew.
The Power of the Brewfile
Once your apps are migrated to Homebrew Casks using this tool, you can run:
brew bundle dump
This generates a Brewfile (like this example). This single file is like a "save game" for your entire Mac setup. On a new machine, you just run brew bundle and every single app is automatically installed for you in minutes.
Features
- Retro UI: A terminal-based interface that feels like an old-school computer system.
- Progress Bar: Visual feedback during Homebrew operations with a custom pulsing activity bar.
- App Ignoring: Permanently exclude system apps or non-caskable software from future scans.
- Multi-Column Layout: High-density grid-style listing for auditing large application histories.
- Intelligent Search: Automatically finds the correct Homebrew Cask for your installed apps.
- Dry Run Mode: Safe simulation mode to see what would happen without making any changes.
- Migration History: Remembers what you've already migrated, skipped, or failed.
- Batch Mode: Quick-install the best matches for all your apps at once.
- Paginated Results: Easily browse through multiple search results.
Installation
Via PyPI (Recommended)
Install the latest stable version from PyPI with pipx or uv:
pipx install brew-migrator
# or
uv tool install brew-migrator
To upgrade later:
pipx upgrade brew-migrator
# or
uv tool upgrade brew-migrator
From Source (Development)
-
Clone the repository:
git clone https://github.com/chriszimbizi/brew-migrator.git cd brew-migrator
-
Create a virtual environment and install in editable mode:
python3 -m venv .venv source .venv/bin/activate pip install -e .
Usage
After installation, you can run the tool using the brew-migrator command:
brew-migrator [OPTIONS]
Options
--dry-run: (Highly Recommended) Simulate the migration without installing anything or writing to the history file.--list-apps: List all applications found in/Applicationsand~/Applications.--list-pending: List applications not yet managed by Homebrew (apps already installed as casks are skipped automatically).--list-installed: List all applications successfully migrated to Homebrew.--list-skipped: List all applications currently in the skipped history.--list-ignored: List all applications explicitly marked as ignored.--app "AppName": Process a specific application by name.--batch: Run in batch mode. Installs only casks whose name exactly matches the app (e.g.Visual Studio Code→visual-studio-code); other apps are skipped for review with--retry-skipped.--retry-skipped: Retry apps that were previously skipped.--retry-ignored: Re-process apps that were previously marked as ignored.--reset-history: Clear the migration history file.
Examples
Safe Simulation:
brew-migrator --dry-run
List all apps:
brew-migrator --list-apps
Run in batch mode:
brew-migrator --batch
How it Works
- Scan: The tool looks at everything in
/Applicationsand~/Applications, skipping apps already installed as Homebrew Casks. - Search: It loads the Homebrew Cask index once and finds matching Casks for each app, best match first.
- Selection: You choose the correct match from a list (or let Batch Mode install exact matches).
- Log: The tool records the migration in a JSON history file to prevent double-work.
Project Structure
.
├── LICENSE
├── README.md
├── pyproject.toml
├── src
│ └── brew_migrator
│ ├── cli.py
│ ├── core
│ │ ├── brew.py
│ │ └── history.py
│ └── ui
│ └── console.py
└── tests
Run the tests with pip install -e ".[dev]" && pytest.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for brew-migrator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brew_migrator-0.1.0.tar.gz | 16.6 kB | Without provenance | Details for brew_migrator-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brew_migrator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for brew_migrator-0.1.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / brew_migrator-0.1.0.tar.gz
| Download URL | brew_migrator-0.1.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81b44e396e386238257781dc924363907a76032cc773a58e0445f93858ab06da
|
|
BLAKE2b-256 checksum How to use checksums |
a0c613867c28a0560cd099575fea331bc56a89b9528988cc83ac542b92684ddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / brew_migrator-0.1.0-py3-none-any.whl
| Download URL | brew_migrator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41b3bfccc64e0882589ec097ca9a8407aa9993222df60691334adfe262d66a9e
|
|
BLAKE2b-256 checksum How to use checksums |
246e80804f0b1ff4f3e392a7e5fd3f31032e5dd521f2ea9d6077131cc6785789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for brew-migrator 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.