Command line options are used to specify various startup options for Mozilla applications. For example, you can use command line configuration options to bypass the Profile Manager and open a specific profile (if you have multiple profiles). You can also control how Mozilla applications open, which components open initially, and what the components do when they open. This page describes the commonly used options and how to use them.
But first, let's describe the syntax rules that apply for all options.
- Command parameters containing spaces must be enclosed in quotes; for example, "Joel User".
- Command actions are not case sensitive.
- Command parameters except profile names are not case sensitive.
- Blank spaces ( ) separate commands and parameters.
- Each message option follows the syntax
field=value, for example:
body=check this page
- Multiple message options are separated by comma (,), for example:
"email@example.com,subject=cool page". Comma separators must not follow or precede spaces ( ). To assign multiple values to a field, enclose the values in single quotes ('), for example:
Using command line options
Command line options are entered after the command to start the application. Some options have arguments. These are entered after the command line option. Some options have abbreviations. For example, the command line option "-editor" can be abbreviated as "-edit". (Where abbreviations are available, they are described in the text below.) In some cases option arguments must be enclosed in quotation marks. (This is noted in the option descriptions below.) Multiple command line options can be specified. In general, the syntax is as follows:
application -option -option "argument" -option argument
The following examples show the use of the "-ProfileManager" command, which will open the Profile Manager prior to starting Firefox or Thunderbird:
Select Run from Windows Start menu. Type:
Mac OS X
Go to Applications > Utilities. Open Terminal and type:
/Applications/Firefox.app/Contents/MacOS ./firefox -ProfileManager
Open Terminal and type:
cd Thunderbird installation directory ./thunderbird -ProfileManager
The example above invokes the "-ProfileManager" command line option with Mozilla's Thunderbird mail client.
Create a new profile named profile_name, but do not start application. profile_name must not contain spaces ( ).
firefox -CreateProfile JoelUser
-CreateProfile "profile_name profile_dir"
Creates a new profile named profile_name in the profile_dir directory, but do not start application. Note profile_name and profile_dir are quoted together.
NOTE: profile_dir must not exist and you must not already have a profile called profile_name.
firefox -CreateProfile "JoelUser c:\internet\moz-profile"
Start with Profile Manager. Short form: -P without a profile name.
Bypass Profile Manager and launch application with the profile named profile_name. Useful for dealing with multiple profiles. Note profile_name is case sensitive. If you don't specify a profile name then the profile manager is opened instead. You must use an upper case P on Linux with versions older than 7.x, as there lower case invokes Purify mode (memory and leak detection). Other platforms accept both upper and lower case.
firefox -P "Joel User"
Start with the profile with the given path. Firefox, Thunderbird and SeaMonkey2.x only.
"profile_path" can either be an absolute path (
"/path/to/profile") or a relative path
Allows multiple copies of application to be open at a time.
firefox -no-remote -P "Another Profile"
Start with Import Wizard.
Load the specified
override.ini file to override
browser/app/application.ini). This can be used to suppress the Migration Wizard at startup by loading the following
override.ini. Firefox only.
Start with the browser component. Firefox and SeaMonkey only.
Open URL in a new tab or window, depend on the browser option.
-url can be omitted. You may list multiple URLs, separated by spaces. Firefox and SeaMonkey only.
firefox www.mozilla.com firefox www.mozilla.com developer.mozilla.org
Opens Firefox in permanent private browsing mode. Firefox 3.6 and later only.
Not Applicable in Ubuntu for Firefox 20 and later.
Opens a new private browsing window in an existing instance of Firefox. Firefox 20 and later only.
Open URL in a new tab. Firefox and SeaMonkey2.x only.
Open URL in a new window. Firefox and SeaMonkey2.x only.
Search term with your default search engine. Firefox and SeaMonkey 2.1 and later only.
Open Options/Preferences window. Firefox and SeaMonkey2.x only.
Set the application as the default browser. Firefox only.
Start with the mail client. Thunderbird and SeaMonkey only.
Start with the news client. If news_URL (optional) is given, open the specified newsgroup. Thunderbird and SeaMonkey only.
thunderbird -news news://server/group
Start with mail composer. See syntax rules. Thunderbird and SeaMonkey only.
thunderbird -compose "firstname.lastname@example.org"
Start with address book. Thunderbird and SeaMonkey only.
Open Options/Preferences window. Thunderbird only.
Start with the offline mode. Thunderbird and SeaMonkey only.
Set the application as the default email client. Thunderbird only.
Start with the calendar client. Sunbird only.
-subscribe URL or
Subscribe to the given URL. Sunbird only.
Show your schedule of the given date. Sunbird only.
sunbird -showdate 08/04/2008
-editor URL or
Start with editor (Composer) for the given URL (where URL is optional). SeaMonkey only.
seamonkey -edit www.mozilla.org
Start application with the Error Console.
The Error Console is deprecated in Firefox, and is now only made available if you set the
devtools.errorconsole.enabled preference to
true. Use the Web Console instead, for web content, or the Browser Console for chrome content.
Beginning with Firefox 28, -jsconsole will start Firefox with Browser Console instead.
Start with the DOM Inspector, if installed, and inspect the given URL (where URL is optional).
Start with the IRC client, ChatZilla, if installed.
Start a new process running the XULRunner application at path/to. Also works with Firefox version 3 and above.
Registers XULRunner on the system for all users. Must be run as admin / root.
Registers XULRunner for a single user.
Unregisters XULRunner for all users.
Unregisters XULRunner for a single user.
Installs the XULRunner application at path/to onto the system. Applications are installed into the default location for your system (program files|Applications|usr/lib) at vendorname/applicationName. Applications may be uninstalled per usual methods for your system.
"C:\Program Files\Mozilla XULRunner\18.104.22.168\xulrunner\xulrunner.exe" --install-app "C:\Users\Billdo\Desktop\myapplication.xpi"
/opt/xulrunner/22.214.171.124/xulrunner/xulrunner --install-app ~/Desktop/myapplication.xulapp
/Library/Frameworks/XUL.framework/xulrunner-bin --install-app ~/Desktop/myapplication.xpi
Load the specified chrome.
firefox -chrome chrome://inspector/content
Register the specified chrome, but do not start application.
Installs the extension into the application directory. The parameter is the path to the extension. You must have administrative privileges.
Same as above, but for themes. You must have administrative privileges.
Note: Since Firefox 126.96.36.199, use of the
-install-global-theme command line arguments have been restricted to only allow installing add-ons that are on local disks or mapped drives. Installing from a network share directly will no longer succeed.
Launches the application with all extensions disabled, for that launch only. (Extensions are not loaded, but are not permanently disabled in the Extension Manager data source).
Start with locale resources as UI Locale.
firefox -UILocale en-US
Execute remote_command in an already running application process (see remote control).
firefox -remote "openURL(www.mozilla.org, new-tab)"
Start application minimized to system tray. Useful with autorun.
Don't open default windows. Useful with those command-line arguments that open their own windows but don't already prevent default windows from opening. Firefox, Thunderbird3.x and SeaMonkey2.x only.
Start application with a debugging console. Note: Windows only.
If you would like the console messages to appear in the console you used to launch the application, you can use the Gecko Console Redirector. Precompiled binaries are available in the zipped archive https://github.com/matthewkastor/Redirector/archive/master.zip under
Redirector-master\Gecko\Console Redirector\bin\Release Copy all the dll's and the exe to wherever you want. Then run
Console Redirector.exe /?
Print the list of all available command line options. Note that on Windows this only works with a redirection such as
|more (bug 355889). This option is available only in a command console.
Print application version. Note that on Windows this only works with a redirection such as
|more (bug 355889). This option is available only in a command console.
Tells the application that it is being launched by the OS shell. This should not be specified unless the caller provides all of the functionality provided by the OS shell when launching the application (bug 384384).
Tells the application that there will be a Windows DDE request to open the same url specified on the command line. This should not be specified unless the caller provides all of the functionality provided by the OS shell when launching the application (bug 354005).
These options are only available for an application build for and running atop the X11/X.org display and window system to be found on Linux and other Unix-based systems.
Set the X display to use
Set the WM_CLASS resource class of the X11 windows created by the application.
Make X calls synchronous
Make all warnings fatal
Other options need to be documented
- GTK options
- Chrome: Command Line
- Test Documentation for Command-line Features (mozilla.org)
- Installer command line options
Original Document Information
- Author(s): Ben Goodger, Steffen Wilberg, Seth Spitzer, Daniel Wang
- Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details.