3

Is there a way to open a certain link with Chrome app Incognito Mode using the Terminal app on my Mac? (I want to input the link in the command as well).

1 Answer 1

2

To open a certain link with Google Chrome, use this command in terminal:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome 'http://example.com' --incognito

Simply edit http://example.com to any other URL you want to use.

6
  • Does it work when the app is already launched ? I don't have an OSX next to me. Commented Jun 24, 2015 at 12:46
  • @MatthieuRiegler Yes it does. With the default settings, it opens a new tab.
    – nelson2tm
    Commented Jun 24, 2015 at 12:49
  • I mean does it open a new window if you're not in incognito mode ? Commented Jun 24, 2015 at 13:16
  • If you're not in Incognito Mode it will open a new window.
    – nelson2tm
    Commented Jun 24, 2015 at 16:39
  • 1
    @user770 Here's a list of available flags: peter.sh/experiments/chromium-command-line-switches I believe you are looking for --start-fullscreen
    – nelson2tm
    Commented Jun 4, 2018 at 19:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .