How to Launch Chrome or Edge With Command-Line Flags

Command-line flags, also called switches, change how Chrome or Edge starts. They are typed into the launch command, not into a browser settings page. They can start the browser with extensions disabled, open directly into private mode, or use a separate testing profile.

Does this affect you?

Use this for Chrome or Edge on Windows or Mac when instructions tell you to start the browser with a flag such as –disable-extensions. This is different from chrome://flags, which is an experimental settings page inside the browser.

Add a flag on Windows with a shortcut

Use a duplicate shortcut first so your normal browser shortcut remains untouched.

  1. Right-click a Chrome or Edge desktop shortcut and choose Properties.
  2. Open the Shortcut tab.
  3. Find the Target field. It contains the browser exe path in quotation marks.
  4. Click after the closing quote, add one space, then type the flag, such as –incognito or –disable-extensions.
  5. Click Apply, then OK.
  6. Close every browser window.
  7. Launch the browser from the edited shortcut.

Add a flag on Mac with Terminal

Mac flags are usually applied for one launch through Terminal.

  1. Quit Chrome or Edge completely.
  2. Open Terminal with Spotlight.
  3. For Chrome, run open -a “Google Chrome” –args –disable-extensions, replacing the flag if needed.
  4. For Edge, run open -a “Microsoft Edge” –args –disable-extensions.
  5. Close and reopen normally from the Dock or Applications folder when you want to launch without the flag.

More control

Useful examples

–incognito opens a private window. –disable-extensions starts with extensions off. –user-data-dir with a folder path launches a separate profile, useful for testing without touching your real bookmarks or passwords.

Command-line flags are not chrome://flags

chrome://flags changes experimental browser features from inside Chrome. Command-line flags change startup behavior before the browser opens. The names overlap, but they are separate systems.

Remove a Windows flag

Right-click the shortcut, open Properties, and delete only the flag text after the quoted path. Keep the path itself intact. If the shortcut breaks, create a fresh shortcut from Start or Applications.

Test risky flags on a copy

A mistyped or incompatible flag can stop a shortcut from opening the browser correctly. A duplicate shortcut keeps your normal launch path clean.

Sources

  • Chromium Project – List of Chromium command line switches (2025)
  • Google Chrome Help – Fix a webpage that will not load (2025)
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart