defaultbrowser
« Back to VersTracker
Description:
Command-line tool for getting & setting the default browser
Type: Formula  |  Latest Version: 1.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: cli macos browser utility developer-tools
Install: brew install defaultbrowser
About:
defaultbrowser is a command-line utility that detects and sets the default web browser on macOS. It solves the problem of managing default browsers programmatically, which is particularly useful for developers and power users. The tool provides a simple interface to query the current default and switch to a preferred browser instantly.
Key Features:
  • Detects the current default browser
  • Sets a new default browser from the command line
  • Supports multiple browsers (Safari, Chrome, Firefox, etc.)
  • Lightweight and dependency-free
Use Cases:
  • Automating browser selection in development scripts
  • Quickly switching between browsers for testing
  • Ensuring consistent browser environment in CI/CD pipelines
Alternatives:
  • Browsers – A macOS GUI app for switching defaults, not scriptable
  • defaults command – Native but complex and requires knowledge of bundle identifiers
License: MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina
Version History
Detected Version Rev Change Commit
Sep 15, 2025 5:34am 0 VERSION_BUMP 7d330e83