npx open-cli http://localhost:3000

Category: Node.js & npm/yarn

npx open-cli http://localhost:3000

Open a URL in the default browser cross-platform from the command line

Opens a URL in your default browser from the terminal in a cross-platform way (works on Mac, Linux, and Windows).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.