I use Google Chrome as my main browser, and I wanted to know what things I can do with it from command line – especially commands that you can't do with the GUI.
Command Line Google Chrome – All Command Line Options for Google Chrome
command linegoogle-chrome
Best Answer
Google Chrome has these stable options. There are other non stable ones, but they can be added and removed whenever the developers want, so I haven't included them, to keep this up to date.
I have written the option, then example, then explanation.
This is used to tell google chrome where to save your data (bookmarks, history, anything peronalised to you). This is the way to create a new session - just running
google-chrome
simply opens a new tab. Use a directory you have just created. The default is~/.config/google-chrome
.This creates a new window with no tool bars - e.g. No bookmarks bar, or tab bar or omnibar. See the screenshot below (that is Google, I just have a custom background 1).
Opens an incognito window.
As you can see (top right) all my extensions (except ad block, because I have enabled that) are disabled in incognito.
This specifies the HTTP/SOCKS4/SOCKS5 proxy server to use for requests. It overrides any environment variables or settings picked via the options dialog, via the GUI settings. An individual proxy server is specified using the format:
<proxy-scheme>
is the protocol of the proxy server, and is one of the following 4:Disables the proxy server. Overrides any environment variables or settings picked via the GUI settings.
Autodetect proxy configuration. Overrides any environment variables or settings picked via the GUI settings.
Specify proxy auto configuration URL. Overrides any environment variables or settings picked via the GUI settings.
Set the password store to use. The default is to automatically detect based on the desktop environment.
basic
selects the built in, unencrypted password store.gnome
selects Gnome keyring.kwallet
selects (KDE)KWallet
. (Note thatKWallet
may not work reliably outside KDE.)(return
Google Chrome 36.0.1985.143
)Shows version information.
Perhaps more useful is
(return
36.0.1985.143
)As that returns just the version number, without
Google Chrome
at the beginning.There is more information here about ways of manipulating the
--version
option.1 Custom Google™ Background