There are command-line switches that Chromium (and Chrome) accept in order to enable particular features or modify otherwise default functionality.
There is no list of all switches, but most of the existing switches can be found at https://peter.sh/examples/?/chromium-switches.html.
Note: Chrome switches (e.g., --incognito
) and Chrome flags (e.g., chrome://flags/#ignore-gpu-blocklist
) are separate configurations. Some features can be enabled by a command-line switch, flag or both.
It is important to note that some switches are intended for development and temporary cases. They may break, change, or be removed in the future without notice. IT admins looking to manage Chrome for their organization should instead use enterprise policies.
Note that if you look at chrome://flags
to see if the command-line option is active, the state might not be accurately reflected. Check chrome://version
for the complete command-line used in the current instance.
chrome://quit
).--disable-gpu-vsync
chrome.exe --disable-gpu-vsync
Quit any running instance of Chrome (by navigating to chrome://quit
).
Run your favorite Terminal application.
In the terminal, run commands like below (replacing "--remote-debugging-port=9222" with any other command-line switch you want to use):
/Applications/Chromium.app/Contents/MacOS/Chromium --remote-debugging-port=9222
# For Google Chrome you'll need to escape spaces like so:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Quit any running instance of Chrome (e.g., navigate to chrome://quit
).
Run your favorite terminal emulator.
In the terminal, run commands like below (replacing "--remote-debugging-port=9222" with any other command-line switch you want to use):
chromium-browser --remote-debugging-port=9222
google-chrome --foo --bar=2
If you are building Chromium from the source, you can run it with command-line switches by adding them in the Experimental Settings.
It is not possible to run with flags the official releases (Google Chrome from App Store or Testflight).
V8 FlagsV8 can take a number of flags (command-line switches) as well, via Chrome's js-flags
flag. For example, this traces V8 optimizations:
chrome.exe --js-flags="--trace-opt --trace-deopt --trace-bailout"
To get a listing of all possible V8 flags:
chrome.exe --js-flags="--help"
Browse the V8 docs for more flags for V8.
AndroidVisit about:version
to review the command-line switches that are effective in the app.
If you are running on a rooted device or using a debug build of Chromium, then you can set switches like so:
out/Default/bin/chrome_public_apk argv # Show existing switches
out/Default/bin/content_shell_apk argv --args='--foo --bar' # Set new switches
You can also install, set switches, and launch with a single command:
out/Default/bin/chrome_public_apk run --args='--foo --bar'
out/Default/bin/content_shell_apk run # Clears any existing switches
For production build on a non-rooted device, you need to enable "Enable command line on non-rooted devices" in chrome://flags, then set command-line in /data/local/tmp/chrome-command-line. When doing that, mind that the first command-line item should be a "_" (underscore) followed by the ones you actually need. Finally, manually restart Chrome ("Relaunch" from chrome://flags page might no be enough to trigger reading this file). See https://crbug.com/784947.
ContentShell on AndroidThere's an alternative method for setting command-line switches with ContentShell that doesn't require building yourself:
adb shell am start \
-a android.intent.action.VIEW \
-n org.chromium.content_shell_apk/.ContentShellActivity \
--es activeUrl "https://www.chromium.org" \
--esa commandLineArgs --show-paint-rects,--show-property-changed-rects
This will launch contentshell with the supplied switches. You can apply whatever commandLineArgs you want in that syntax.
Android WebViewThis is documented in the chromium tree.
Chrome OSsudo restart ui
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3