Launch a specific Chromium-based browser profile from the command line on macOS.
Double-click crlaunch.command or run it from a terminal. You'll be prompted to pick a profile, and the browser will open with that profile.
crlaunch.command reads its configuration from crlaunch.conf in the same directory. This file is gitignored, so you'll need to create it yourself.
Create crlaunch.conf with the two variables matching your browser:
| Variable | Description |
|---|---|
datadir |
Path to the browser's user data |
apppath |
Path to the browser's .app bundle |
Example for Google Chrome:
datadir="$HOME/Library/Application Support/Google/Chrome"
apppath="/Applications/Google Chrome.app"
Example for Brave Browser:
datadir="$HOME/Library/Application Support/BraveSoftware/Brave-Browser"
apppath="/Applications/Brave Browser.app"
The file is sourced by zsh, so standard shell quoting and $HOME are supported.
Run crlaunch.command to launch.