Command Line Parameters
Firefox recognizes many (many!) command line parameters. Overview documentation of these parameters lives here.
Most parameters can be supplied with either a single dash (-foo) or a double
dash (--foo); the two forms are equivalent. Many parameters are registered
by individual components, so the exact set available depends on the build and
platform. A current list can always be printed with firefox --help.
Startup and profiles
Parameter |
Description |
|---|---|
|
Print a usage message listing the available parameters and exit. |
|
Print the Firefox version and exit. |
|
Print the Firefox version together with the build and platform build ids and exit. |
|
Start with the named |
|
Start with the profile located at |
|
Start with the migration wizard. |
|
Start with the Profile Manager. |
|
Open a new instance rather than a new window in an already running instance. |
|
Do not accept or send remote commands; implies |
|
Disable extensions and themes for this session. |
|
Allow a profile created by a newer version of Firefox to be opened by an older version (only available on builds that block profile downgrades). |
|
Run post-install actions before opening a new window. |
Opening content
Parameter |
Description |
|---|---|
|
Open a browser window. |
|
Open |
|
Open |
|
Open |
|
Open |
|
Search for |
|
Open the Preferences (Options on Windows) dialog. |
|
Set Firefox as the default browser. |
Display modes
Parameter |
Description |
|---|---|
|
Run without a GUI. Available on Windows, Linux (GTK) and macOS. |
|
Take a screenshot and save it to |
|
Width and, optionally, height to use for |
|
Start the browser in kiosk mode. |
|
Place the kiosk browser window on the given monitor. |
|
Disable touch-screen and touch-pad pinch gestures. |
Logging and debugging
Parameter |
Description |
|---|---|
|
Treated as the |
|
Treated as the |
|
Open the Browser Console. |
|
Open the DevTools on initial load. |
|
Open the Browser Toolbox. Defaults to the local build but can be overridden by a Firefox path. |
|
Spin the event loop until the JS debugger connects, enabling debugging of
(some) application startup code paths. Only has an effect when
|
|
Start the DevTools server on a TCP port or Unix domain socket path.
Defaults to TCP port 6000. Use the WebSocket protocol if the |
|
Enable the remote control (Marionette) server. |
|
Force the use of QUIC for the specified origin. |
Platform-specific parameters
Parameter |
Description |
|---|---|
|
On Windows, start Firefox with a debugging console. |
|
On Linux builds with DBus support, run as a DBus service for
|
|
On X11, the X display to use. |
|
On X11, make X calls synchronous. |
|
On Unix, make all warnings fatal. |
|
On Windows, |