defaultbrowser

Get and set the default browser from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Command-line tool for getting & setting the default browser

Commands

defaultbrowser

Examples

Get the current default browser$ defaultbrowser
Set default browser to Google Chrome$ defaultbrowser com.google.Chrome
Set default browser to Firefox$ defaultbrowser org.mozilla.firefox