Google Chrome has a number of command line switches which change the behavior of Chrome, some of these switches can be turned on/off in the regular settings menu such as “dns-prefetch-disable” however others cannot.
To launch and use the switches, you append the switch name when calling Chrome on launch like:
“…..\Application\chrome.exe” –crash-test
Which would obviously execute the crash test function.
allow-all-activex
always-enable-dev-tools
app
assert-test
automation-channel
channel
crash-test
debug-children
debug-print
disable-dev-tools
disable-hang-monitor
disable-images
disable-java
disable-javascript
disable-logging
disable-metrics
disable-metrics-reporting
disable-plugins
disable-popup-blocking
disable-prompt-on-repost
dns-log-details
dns-prefetch-disable
dom-automation
dump-histograms-on-exit
enable-file-cookies
enable-logging
enable-p13n
enable-watchdog
first-run
gears-in-renderer
gears-plugin-path
geoid
hide-icons
homepage
import
in-process-plugins
javascript-debugger-path
js-flags
lang
log-filter-prefix
log-level
make-default-browser
memory-model
memory-profile
message-loop-histogrammer
message-loop-strategy
new-http
no-events
no-sandbox
omnibox-popup-count
playback-mode
plugin
plugin-launcher
plugin-path
plugin-startup-dialog
process-per-site
process-per-tab
proxy-server
record-mode
remote-shell-port
renderer
renderer-assert-test
renderer-crash-test
renderer-path
renderer-startup-dialog
restore-last-session
safe-plugins
show-icons
silent-dump-on-dcheck
single-process
start-maximized
start-renderers-manually
tab-count-to-load-on-session-restore
test-sandbox
testing-channel
testshell-startup-dialog
trusted-plugins
uninstall
upload-file
use-lf-heap
user-data-dir
wait-for-debugger-children



{ 9 trackbacks }
{ 42 comments… read them below or add one }
How to install plugin
new switch ‘–incognito’ in dev release
Is there a way to run Chrome from the Start->Run? I tried typing chrome but it doesn’t work.
You can create a shortcut in c:\windows folder for chrome and you all set to run the same from Start->Run.
May I ask – why are there so many disable switches, BUT NOT ONE FRICKING ONE FOR DISABLING ACTIVEX?!
how do to disable popup blocking?
i put disable-prompt-on-repost into my quick-launch shortcut. it seemed to work the first time, but now i’m getting that damn “Confirm Form Resubmission”.
why doesn’t this command-line switch work anymore?
“–allow-all-activex”
How to disallow activex, after I use this command??
нда. неплохо …
I want to open a site in a new Chrome browser, using a shortcut in my desktop.
Everything I tried now, it always opens the site in the already opened Chrome.
emm.. amazing
How do you get Chrome to give you a list of all valid parameters? I’m using the dev channel and would like to see what additional ones are available.
it doesen’t work you fucking prick!
it doesen’t work you fucking prick!
it doesen’t work you fucking prick!!
it doesen’t work you fucking prick!!!
it doesen’t work you fucking prick!!!!
Full list : http://src.chromium.org/svn/trunk/src/chrome/common/chrome_switches.cc
All the switches are not listed, because I am using the -url switch and it works, but I can’t find it in any list, such as in base_switches.cc or in chrome_switches.cc.
The reason I ask is that perhaps there are other, useful switches that don’t appear in these lists.
Why can’t Google chrome have you download the “COMPLETE” package rather than an “update here than update there; switch on or off? I want a simple “Check of updates” switch with No funny buttons! I’m funny that way. Maybe Microsoft or Firefox might get it right first! I hope the “uninstalls” better! I will seek my older versions!
So I’m supposed to put the Documents and Settings\Local Settings\Application Data\Google\Chrome\Application in my PATH to run Chrome from command?
If you leave your current Chrome instance running and start a new instance with a command line, some of them just not working.
I found you must CLOSE all chrome instance and restart it for some switch to work.
Is there a full-screen switch as yet?
Would be really useful in app shortcuts
I agree – “full-screen” command line option would be really useful!
Questions about shortcuts and/or shortcut(s) to Chrome (or other) from “Run” command: To run ANYTHING from the “Run” command, simply create a shortcut to desired program (place it wherever for the time being), modify as desired, then place the shortcut (*.lnk) file in user home directory (type %homepath% in the run command). example: move a shortcut from your desktop to your home path and then open it by typing its name into the run command.
You can start in kiosk mode, which is similar to full screen mode except you can never leave it without restarting the browser. Just use –kiosk.
Is there a way to cancell the Kiosk mode? I’m using it via ssh connection, and it start in kiosk mode – and that’s not wha I want.
Thank for this great post
@james: bored?
Really thanks JoeO and Cesar for the kiosk mode, it save me the day!
@ kevin: you might know this now but this is the code
-start-maximized
how do you do all the command line crap? i am trying to enable geolocation
Is there a startup switch for:
(1) Disable ‘Non Full Screen mode’ (i.e. Full screen mode only).
(2) Disable/Remove Tool bars.
These would be great for running applications.
Google, Please deploy these switches.
@Bruce: that’s exactly what I’m looking for…
I’m using –kiosk, was wandering if theres an alternative
does Chrome\Application\chrome.exe -–single-process? ever work. There are multiple processes created. Has the option been removed or am I missing something here. It is on Win7 64 bit.
“C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” -start-maximized -app=”http://www.reddit.com”
This is how to use the -app setting on a Windows XP machine.
Your weblog is great,keep it.
chrome –single-process never works on any os, can anybody tell me the alternative option for this.. how do i make single process of chrome on windows.
Another useful command-line switch is:
–purge-memory-button
See http://downloadsquad.switched.com/2010/03/31/reduce-save-conserve-memory-google-chrome/ for more info.
Here are some commands to incorporate in a batch. It finds where chrome is installed and then opens a webpage without stopping the batch:
if exist “%homedrive%\Program Files\Google\Chrome\Application\chrome.exe” set _chromepath=”C:\Program Files\Google\Chrome\Application\chrome.exe”
if exist “%homedrive%\Program Files (x86)\Google\Chrome\Application\chrome.exe” set _chromepath=”C:\Program Files\Google\Chrome\Application\chrome.exe”
if exist “%localappdata%\Google\Chrome\Application\chrome.exe” set _chromepath=%localappdata%\Google\Chrome\Application\chrome.exe
start %_chromepath% http://somewebsite.com
i think i have found a simple solution click on your start menu right click on chrome, then click on internet properties, click on contents and click on settings, tick every box that is in there especially the feeds box and the form box, try this it helped me with the problem
Thank you for having GOOGLE
Leave a Comment