T

Chrome Command Line Switches

42 views · updated 2026-07-01 · published 2026-07-01 · by Hasarinda Manjula · Microsoft Windows Reading time: 2 min English සිංහල

Overview

Command line switches let you start Chrome with special behavior — disabling extensions, opening incognito, ignoring certificate errors for local testing, and more. They are added to the browser’s shortcut or run from a terminal. This guide explains how to use them.

Key Takeaways

  • Switches modify how Chrome launches without changing its settings permanently.
  • You add them to the target field of a Chrome shortcut or run them in a terminal.
  • Common switches include --incognito, --disable-extensions, and --new-window.
  • Switches are useful for troubleshooting, automation, and development.

Add Switches to a Shortcut

1. Right-click your Chrome shortcut and choose Properties.

2. In the Target field, add a space after the quotation marks, then the switch.

3. For example: "...\chrome.exe" --incognito

4. Click OK and open the shortcut to launch Chrome with that switch.

Useful Switches

  • --incognito — opens directly in an Incognito window.
  • --disable-extensions — starts Chrome with all extensions off for troubleshooting.
  • --new-window "url" — opens a specific site in a new window.
  • --user-data-dir="path" — launches Chrome with a separate profile directory.

Note: Switches apply only to the session started with them. Remove the switch from the shortcut to return to normal launching.

Troubleshooting

Problem: The switch seems to have no effect.

Solution: Ensure there is a space before the switch and that it comes after the closing quotation mark in the target.

Problem: Chrome will not open with the edited shortcut.

Solution: Check the switch spelling and remove any that are deprecated in your Chrome version.

Problem: The switch works from terminal but not the shortcut.

Solution: Confirm you edited the correct shortcut and that no other Chrome instance is already running.

Problem: A switch used for testing weakens security.

Solution: Use security-lowering switches only in a separate test profile, never for everyday browsing.

Conclusion

Command line switches give you fine control over how Chrome starts, making them handy for troubleshooting and development. Apply them per shortcut and remove them when you are done.

About TechHub

This guide is part of the TechHub Knowledge Base. For more step-by-step IT guides and support, visit techhub.com.lk.

Thanks for your feedback! 🙌

Read more

TechHub Assistant
Online · AI assistant
Thinking
⬇ Downloads 📦 Orders 🛒 Buy License 🎫 Create Ticket 🙋 Contact
AI-generated · may be inaccurate. Talk to a human