List of Google Chrome command line switches
Google Chrome supports hundreds of different command line switches (or flags) that may add features to the browser, change how features work, or remove features from it.
Some switches are only useful to developers as they enable them to test certain features in Chromium, while others have practical uses that users of the web browser will appreciate as well.
List of Google Chrome Command Line Switches
The following list highlights important Chrome command line switches for users of the Google browser.
|Forces uses of the desktop version of Chrome
|Disables 3D APIs, including WebGL and Pepper 3D
|Disables GPU accelerated video
|Background apps won't continue to run when Chrome exits.
|Disables hardware acceleration using the GPU
|Prevents all plugins from running
|Disables the discovery of missing plugins
|Disables speculative TCP/IP preconnections
|Disables the Google Translate feature
|Disable DNS prefetching
|Kiosk Mode for Chrome OS
|Launches Chrome directly in Incognito private browsing mode
|Disk space used by media cache in bytes
|Enable multiple profiles in Chrome
|Enable the new profile management in Chrome
|Run Chrome without experiments set in chrome://flags
|No hyperlink auditing pings
|Use Chrome without sending referrers
|Add purge memory button to Chrome
|Change the field trials that the browser is currently signed up for
|Restore the last session on run
|Specify the minimum SSL version accepted
|Starts the Chrome window maximized.
|Specify the initial window position using --window-position=x,y
|Specify the initial window size using --window-size=x,y
For a full list of switches, visit this blog post by Peter Beverloo.
How to Use a Command Line Switch in Chrome?
For the uninitiated, I'd like to walk you through the configuration process that explains how you can add one or multiple command line switches to the Chrome browser on Windows.
You have two main options to execute command line switches on Chromium. First, you can open the Windows command line, change the directory to the Chrome directory, and run commands using chrome.exe, followed by the commands that you want to run.
An example would be the following command executed in the Chrome application directory on the system:
The second and the easier way to add a flag to Chrome is the following:
- Tap on the Windows-key, type cmd and hit enter.
- Use CD to change the directory to your Chrome profile directory.
- If you are running Windows XP, it is %USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application
- If you are running Windows Vista or newer, it is %LOCALAPPDATA%\Google\Chrome\Application
- Type chrome.exe followed by the space-key, and then the command line switches you want to run. Note that they always begin with two dashes.
This is great for testing purposes, but if you like a certain command and want to run it at all times, you may want to make those changes permanent so that they are automatically used whenever you load Chrome.
Adding Chrome Switches to Desktop Shortcuts/Icons
If you are starting Google Chrome from a shortcut that is placed on the desktop, taskbar or start menu, then you can easily add command line switches to it. Just right-click the shortcut, locate Google Chrome there, right-click on it and select Properties.
The Shortcut tab should open up automatically. It displays the load path of the browser in the target field. At the end of the field, after the closing ", add a space, and then the command line switch you want to use. You can add multiple switches, one after the other separated by a single space. For example, this is useful if you want to create a Chrome icon that directly opens the Incognito mode. Just insert the incognito command line flag into the shortcut target and you are done.Advertisement