How to Open Google Chrome from Terminal on Mac

Nov 19, 2022 - 2 Comments

Google Chrome Icon

Command line users may encounter situations where they’d like to open the Google Chrome web browser directly from the Terminal on the Mac.

Opening GUI applications from the command line is easy on MacOS, and the command syntax to do so has been the same since the beginning of Mac OS X, so regardless of what system software version you are using you’ll find this trick to work.

Opening Google Chrome from the Command Line on Mac

The syntax to open Google Chrome from the terminal is as follows:

open -a "Google Chrome.app"

Hit return as usual to execute the command. No special permissions are required, since Chrome is launching from the universally accessible /Applications directory

This will launch the Google Chrome web browser in the MacOS graphical user interface (GUI), it does not run Chrome in the Terminal as a command line browser (which does not exist as Chrome anyway). If you want a command line text-based web browser, try using Lynx or similar, which is obviously not a GUI application, nor is it Chrome.

You can open other applications and documents through the command line by using the open command as well, but obviously here we are focusing on the Chrome web browser.

.

Related articles:

Posted by: Paul Horowitz in Command Line, Mac OS, Tips & Tricks

2 Comments

» Comments RSS Feed

  1. Bogdan says:

    To open in Incognito mode
    open -a “Google Chrome.app” –args -incognito

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site