Command Line Options

  • Revision slug: Command_Line_Options
  • Revision title: Command Line Options
  • Revision id: 309435
  • Created:
  • Creator: madarche
  • Is current revision? No
  • Comment Write permission test (again). I will remove this change afterward.

Revision Content

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.

Syntax Rules

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:
    • to=foo@nowhere.net
    • subject=cool page
    • attachment=www.mozilla.org
    • attachment='file:///c:/test.txt'
    • body=check this page
  • Multiple message options are separated by comma (,), for example: "to=foo@nowhere.net,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: "to='foo@nowhere.net,foo@foo.de',subject=cool page" .

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

Examples

The following examples show the use of the "-ProfileManager" command, which will open the Profile Manager prior to starting Firefox or Thunderbird:

Windows

Select Run from Windows Start menu. Type:

firefox -ProfileManager
Mac OS X

Go to Applications > Utilities. Open Terminal and type:

/Applications/Firefox.app/Contents/MacOS
./firefox -ProfileManager
Linux

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.

User Profile

-CreateProfile profile_name

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"

-ProfileManager

Start with Profile Manager. Short form: -P without a profile name.

-P "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"

-profile "profile_path"

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 ("path/to/profile").

Note: On Mac OS X specifying a relative path is not supported anymore from Firefox 4.0 and up due to a regression, see {{ bug(673955) }}.

-no-remote

Allows multiple copies of application to be open at a time.

firefox -no-remote -P "Another Profile"
Note: Since Firefox 9, this does really mean what its name implies on all platforms, i.e. instances created with this parameter do not accept or send remote commands, see {{ bug(650078) }}. That means that such instances won't be re-used. Also when using this argument a new instance is created in any case.

-migration

Start with Import Wizard.

-override /path/to/override.ini

Load the specified override.ini file to override application.ini ({{ Source("browser/app/application.ini") }}). This can be used to suppress the Migration Wizard at startup by loading the following override.ini. Firefox only.

[XRE]
EnableProfileMigrator=0

Browser

-browser

Start with the browser component. Firefox and SeaMonkey only.

-url URL

Open URL in a new tab or window, depend on the browser option. -url can be omitted. Firefox and SeaMonkey only.

Note: When opening multiple URLs, Firefox always opens them as tabs in a new window.
firefox www.mozilla.com

-private

Opens Firefox in private browsing mode, regardless of the current user preference. Firefox 3.6 and later only.

-private-toggle

Toggles private browsing mode. Firefox 3.6 and later only.

-new-tab URL

Open URL in a new tab. Firefox and SeaMonkey2.x only.

-new-window URL

Open URL in a new window. Firefox and SeaMonkey2.x only.

-search term

Search term with your default search engine. Firefox and SeaMonkey 2.1 and later only.

-preferences

Open Options/Preferences window. Firefox and SeaMonkey2.x only.

-setDefaultBrowser

Set the application as the default browser. Firefox only.

Mail/News

-mail

Start with the mail client. Thunderbird and SeaMonkey only.

-mail mailto_URL

Start the Compose Message window for the given mailto_URL Thunderbird only.

thunderbird -mail mailto:me@isp.net?subject=hi

-news news_URL

Start with the news client. If news_URL (optional) is given, open the specified newsgroup. Thunderbird and SeaMonkey only.

thunderbird -news news://server/group

-compose message_options

Start with mail composer. See syntax rules. Thunderbird and SeaMonkey only.

thunderbird -compose "to=foo@nowhere.net"

-addressbook

Start with address book. Thunderbird and SeaMonkey only.

-options

Open Options/Preferences window. Thunderbird only.

-offline

Start with the offline mode. Thunderbird and SeaMonkey only.

-setDefaultMail

Set the application as the default email client. Thunderbird only.

Calendar

-calendar

Start with the calendar client. Sunbird only.

-subscribe URL or -url URL

Subscribe to the given URL. Sunbird only.

-showdate date

Show your schedule of the given date. Sunbird only.

sunbird -showdate 08/04/2008

Other Components

-editor URL or -edit URL

Start with editor (Composer) for the given URL (where URL is optional). SeaMonkey only.

seamonkey -edit www.mozilla.org

-jsconsole

Start application with the Error Console.

-inspector URL

Start with the DOM Inspector, if installed, and inspect the given URL (where URL is optional).

-venkman

Start with the JavaScript debugger, Venkman, if installed.

-chat

Start with the IRC client, ChatZilla, if installed.

XULRunner

-app /path/to/application.ini

Start a new process running the XULRunner application at path/to. Firefox only, version 3 and above.

Chrome

-chrome chrome_URL

Load the specified chrome.

firefox -chrome chrome://inspector/content

-register chrome_URL

Register the specified chrome, but do not start application.

Add-ons

{{ gecko_minversion_note("1.9.2", "-install-global-extension and -install-global-theme have been removed from Gecko 1.9.2 and upwards.") }}

-install-global-extension /path/to/extension

Installs the extension into the application directory. The parameter is the path to the extension. You must have administrative privileges.

-install-global-theme /path/to/theme

Same as above, but for themes. You must have administrative privileges.

Note: Since Firefox 2.0.0.7, use of the -install-global-extension and -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.

-safe-mode

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).

Locale

-UILocale locale

Start with locale resources as UI Locale.

firefox -UILocale en-US

Remote Control

-remote remote_command

Execute remote_command in an already running application process (see remote control).

firefox -remote "openURL(www.mozilla.org, new-tab)"

Miscellaneous

-tray

Start application minimized to system tray. Useful with autorun.

-silent

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.

-console

Start application with a debugging console. Note: Windows only.

-h or -help or -?

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.

-v or -version

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.

-osint

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) }}).

-requestPending

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) }}).

X11 options

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.

--display=DISPLAY

Set the X display to use

--sync

Make X calls synchronous

--g-fatal-warnings

Make all warnings fatal

Other options need to be documented

  • -print-xpcom-dir
  • -print-xpcom-dirlist
  • -kill
  • -killAll
  • -f
  • -ftimeout
  • -fwait
  • -unsetDefaultMail
  • -foreground
  • GTK options

References

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.

{{ languages( { "ja": "ja/Command_Line_Options" } ) }}

Test3

Revision Source

<p>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.</p>
<h3 id="Syntax_Rules" name="Syntax_Rules">Syntax Rules</h3>
<p>But first, let's describe the syntax rules that apply for all options.</p>
<ul>
  <li>Command parameters containing spaces must be enclosed in quotes; for example, "Joel User".</li>
  <li>Command actions are not case sensitive.</li>
  <li>Command parameters except profile names are not case sensitive.</li>
  <li>Blank spaces (&nbsp;) separate commands and parameters.</li>
  <li>Each message option follows the syntax <code><var>field</var>=<var>value</var></code>, for example:
    <ul>
      <li><code>to=</code><span class="nowiki"><code>foo@nowhere.net</code></span></li>
      <li><code>subject=cool page</code></li>
      <li><code>attachment=www.mozilla.org</code></li>
      <li><code>attachment='<span class="nowiki">file:///c:/test.txt</span>'</code></li>
      <li><code>body=check this page</code></li>
    </ul>
  </li>
  <li>Multiple message options are separated by comma (,), for example: <code>"<span class="nowiki">to=foo@nowhere.net,subject=cool page</span>"</code> . Comma separators must not follow or precede spaces (&nbsp;). To assign multiple values to a field, enclose the values in single quotes ('), for example: <code>"<span class="nowiki">to='foo@nowhere.net,foo@foo.de',subject=cool page</span>"</code> .</li>
</ul>
<h3 id="How_to_use_command_options" name="How_to_use_command_options">Using command line options</h3>
<p>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:</p>
<pre>
application -option -option "argument" -option argument
</pre>
<h4 id="Examples">Examples</h4>
<p>The following examples show the use of the "-ProfileManager" command, which will open the Profile Manager prior to starting Firefox or Thunderbird:</p>
<h5 id="Windows">Windows</h5>
<p>Select Run from Windows Start menu. Type:</p>
<pre class="eval">
firefox -ProfileManager
</pre>
<h5 id="Mac_OS_X">Mac OS X</h5>
<p>Go to Applications &gt; Utilities. Open Terminal and type:</p>
<pre class="eval">
/Applications/Firefox.app/Contents/MacOS
./firefox -ProfileManager
</pre>
<h5 id="Linux">Linux</h5>
<p>Open Terminal and type:</p>
<pre class="eval">
cd <span style="font-style: italic;">Thunderbird</span><var> installation directory</var>
./thunderbird -ProfileManager
</pre>
<p>The example above invokes the "-ProfileManager" command line option with Mozilla's Thunderbird mail client.</p>
<h3 id="User_Profile" name="User_Profile">User Profile</h3>
<h4 id="-CreateProfile_profile_name" name="-CreateProfile_profile_name"><code>-CreateProfile <var>profile_name</var></code></h4>
<p>Create a new profile named <var>profile_name</var>, but do not start application. <var>profile_name</var> must not contain spaces (&nbsp;).</p>
<pre class="eval">
firefox -CreateProfile JoelUser
</pre>
<h4 id="-CreateProfile_.22profile_name_profile_dir.22" name="-CreateProfile_.22profile_name_profile_dir.22"><code>-CreateProfile "<var>profile_name</var> <var>profile_dir</var>"</code></h4>
<p>Creates a new profile named <var>profile_name</var> in the <var>profile_dir</var> directory, but do not start application. Note <var>profile_name</var> and <var>profile_dir</var> are quoted together.</p>
<p>NOTE: <var>profile_dir</var> must not exist and you must not already have a profile called <var>profile_name</var>.</p>
<pre class="eval">
firefox -CreateProfile "JoelUser c:\internet\moz-profile"
</pre>
<h4 id="-ProfileManager_or_-P" name="-ProfileManager_or_-P"><code>-ProfileManager</code></h4>
<p>Start with Profile Manager. Short form: <strong>-P</strong> without a profile name.</p>
<h4 id="-P_.22profile_name.22" name="-P_.22profile_name.22"><code>-P "<var>profile_name</var>"</code></h4>
<p>Bypass Profile Manager and launch application with the profile named <var>profile_name</var>. Useful for dealing with multiple profiles. Note <var>profile_name</var> 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&nbsp;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.</p>
<pre class="eval">
firefox -P "Joel User"
</pre>
<h4 id="-profile_.22.2Fpath.2Fto.2Fprofile.22" name="-profile_.22.2Fpath.2Fto.2Fprofile.22"><code>-profile "<var>profile_path</var>"</code></h4>
<p>Start with the profile with the given path. <strong>Firefox</strong>, <strong>Thunderbird</strong> and <strong>SeaMonkey2.x</strong> only.</p>
<p><code>"profile_path"</code> can either be an absolute path (<code>"<var>/path/to/profile</var>"</code>) or a relative path <code>("<var>path/to/profile</var>"</code>).</p>
<div class="note">
  <strong>Note: </strong>On Mac OS&nbsp;X specifying a relative path is not supported anymore from Firefox 4.0 and up due to a regression, see {{ bug(673955) }}.</div>
<h4 id="-no-remote" name="-no-remote"><code>-no-remote</code></h4>
<!-- move to "Remote Control"? -->
<p>Allows multiple copies of application to be open at a time.</p>
<pre class="eval">
firefox -no-remote -P "Another Profile"
</pre>
<div class="note">
  <strong>Note: </strong>Since Firefox 9, this does really mean what its name implies on all platforms, i.e. instances created with this parameter do not accept or send remote commands, see {{ bug(650078) }}. That means that such instances won't be re-used. Also when using this argument a new instance is created in any case.</div>
<!-- TODO: document changes that come with bug 716110 once it's clear that it's going to stick -->
<h4 id="-migration" name="-migration"><code>-migration</code></h4>
<p>Start with Import Wizard.</p>
<h4 id="-override_.2Fpath.2Fto.2Foverride.ini" name="-override_.2Fpath.2Fto.2Foverride.ini"><code>-override <em>/path/to/</em>override.ini</code></h4>
<p>Load the specified <code>override.ini</code> file to override <code>application.ini</code> ({{ Source("browser/app/application.ini") }}). This can be used to suppress the Migration Wizard at startup by loading the following <code>override.ini</code>. <strong>Firefox</strong> only.</p>
<pre class="eval">
[XRE]
EnableProfileMigrator=0
</pre>
<h3 id="Browser" name="Browser">Browser</h3>
<h4 id="-browser" name="-browser"><code>-browser</code></h4>
<p>Start with the browser component. <strong>Firefox</strong> and <strong>SeaMonkey</strong> only.</p>
<h4 id="-url_URL" name="-url_URL"><code>-url <var>URL</var></code></h4>
<p>Open <var>URL</var> in a new tab or window, depend on the browser option. <code>-url</code> can be omitted. <strong>Firefox</strong> and <strong>SeaMonkey</strong> only.</p>
<div class="note">
  <strong>Note: </strong>When opening multiple URLs, Firefox always opens them as tabs in a new window.</div>
<pre class="eval">
firefox www.mozilla.com
</pre>
<h4 id="-private" name="-private"><code>-private</code></h4>
<p>Opens Firefox in private browsing mode, regardless of the current user preference. <strong>Firefox 3.6</strong> and later only.</p>
<h4 id="-private-toggle" name="-private-toggle"><code>-private-toggle</code></h4>
<p>Toggles private browsing mode. <strong>Firefox 3.6</strong> and later only.</p>
<h4 id="-new-tab_URL" name="-new-tab_URL"><code>-new-tab <var>URL</var></code></h4>
<p>Open <var>URL</var> in a new tab. <strong>Firefox</strong> and <strong>SeaMonkey2.x</strong> only.</p>
<h4 id="-new-window_URL" name="-new-window_URL"><code>-new-window <var>URL</var></code></h4>
<p>Open <var>URL</var> in a new window. <strong>Firefox</strong> and <strong>SeaMonkey2.x</strong> only.</p>
<h4 id="-search_term" name="-search_term"><code>-search <var>term</var></code></h4>
<p>Search <var>term</var> with your default search engine. <strong>Firefox</strong> and <strong>SeaMonkey 2.1</strong> and later only.</p>
<h4 id="-preferences" name="-preferences"><code>-preferences</code></h4>
<p>Open Options/Preferences window. <strong>Firefox</strong> and <strong>SeaMonkey2.x</strong> only.</p>
<h4 id="-setDefaultBrowser" name="-setDefaultBrowser"><code>-setDefaultBrowser</code></h4>
<p>Set the application as the default browser. <strong>Firefox</strong> only.</p>
<h3 id="Mail.2FNews" name="Mail.2FNews">Mail/News</h3>
<h4 id="-mail" name="-mail"><code>-mail</code></h4>
<p>Start with the mail client. <strong>Thunderbird</strong> and <strong>SeaMonkey</strong> only.</p>
<h4 id="-mail_mailto_URL" name="-mail_mailto_URL"><code>-mail <var>mailto_URL</var></code></h4>
<p>Start the Compose Message window for the given <var>mailto_URL</var> <strong>Thunderbird</strong> only.</p>
<pre class="eval">
thunderbird -mail <span class="nowiki">mailto:me@isp.net?subject=hi</span>
</pre>
<h4 id="-news_news_URL" name="-news_news_URL"><code>-news</code> <var>news_URL</var></h4>
<p>Start with the news client. If <var>news_URL</var> (optional) is given, open the specified newsgroup. <strong>Thunderbird</strong> and <strong>SeaMonkey</strong> only.</p>
<pre class="eval">
thunderbird -news <span class="nowiki">news://server/group</span>
</pre>
<h4 id="-compose_message_options" name="-compose_message_options"><code>-compose <var>message_options</var></code></h4>
<p>Start with mail composer. See <a href="#Syntax_Rules">syntax rules</a>. <strong>Thunderbird</strong> and <strong>SeaMonkey</strong> only.</p>
<pre class="eval">
thunderbird -compose "<span class="nowiki">to=foo@nowhere.net</span>"
</pre>
<h4 id="-addressbook" name="-addressbook"><code>-addressbook</code></h4>
<p>Start with address book. <strong>Thunderbird</strong> and <strong>SeaMonkey</strong> only.</p>
<h4 id="-options" name="-options"><code>-options</code></h4>
<p>Open Options/Preferences window. <strong>Thunderbird</strong> only.</p>
<h4 id="-offline" name="-offline"><code>-offline</code></h4>
<p>Start with the offline mode. <strong>Thunderbird</strong> and <strong>SeaMonkey</strong> only.</p>
<h4 id="-setDefaultMail" name="-setDefaultMail"><code>-setDefaultMail</code></h4>
<p>Set the application as the default email client. <strong>Thunderbird</strong> only.</p>
<h3 id="Calendar" name="Calendar">Calendar</h3>
<h4 id="-calendar" name="-calendar"><code>-calendar</code></h4>
<p>Start with the calendar client. <strong>Sunbird</strong> only.</p>
<h4 id="-subscribe_URL_or_-url_URL" name="-subscribe_URL_or_-url_URL"><code>-subscribe <var>URL</var></code> or <code>-url <var>URL</var></code></h4>
<p>Subscribe to the given <var>URL</var>. <strong>Sunbird</strong> only.</p>
<h4 id="-showdate_date" name="-showdate_date"><code>-showdate <var>date</var></code></h4>
<p>Show your schedule of the given <var>date</var>. <strong>Sunbird</strong> only.</p>
<pre class="eval">
sunbird -showdate 08/04/2008
</pre>
<h3 id="Other_Components" name="Other_Components">Other Components</h3>
<h4 id="-editor_URL_or_-edit_URL" name="-editor_URL_or_-edit_URL"><code>-editor <var>URL</var></code> or <code>-edit <var>URL</var></code></h4>
<p>Start with editor (Composer) for the given <var>URL</var> (where <var>URL</var> is optional). <strong>SeaMonkey</strong> only.</p>
<pre class="eval">
seamonkey -edit www.mozilla.org
</pre>
<h4 id="-jsconsole" name="-jsconsole"><code>-jsconsole</code></h4>
<p>Start application with the <a href="/en/Error_Console" title="en/Error_Console">Error Console</a>.</p>
<h4 id="-inspector_URL" name="-inspector_URL"><code>-inspector <var>URL</var></code></h4>
<p>Start with the <a href="/en/DOM_Inspector" title="en/DOM_Inspector">DOM Inspector</a>, if installed, and inspect the given <var>URL</var> (where <var>URL</var> is optional).</p>
<h4 id="-venkman" name="-venkman"><code>-venkman</code></h4>
<p>Start with the JavaScript debugger, <a href="/en/Venkman" title="en/Venkman">Venkman</a>, if installed.</p>
<h4 id="-chat" name="-chat"><code>-chat</code></h4>
<p>Start with the IRC client, <a class="link-https" href="https://addons.mozilla.org/en-US/firefox/addon/16">ChatZilla</a>, if installed.</p>
<h3 id="XULRunner" name="XULRunner">XULRunner</h3>
<h4 id="-app_.2Fpath.2Fto.2Fapplication.ini" name="-app_.2Fpath.2Fto.2Fapplication.ini"><code>-app <em>/path/to/</em>application.ini</code></h4>
<p>Start a new process running the <a href="/en/XULRunner" title="en/XULRunner">XULRunner</a> application at <em>path/to</em>. <strong>Firefox</strong> only, version 3 and above.</p>
<h3 id="Chrome" name="Chrome">Chrome</h3>
<h4 id="-chrome_chrome_URL" name="-chrome_chrome_URL"><code>-chrome <var>chrome_URL</var></code></h4>
<p>Load the specified chrome.</p>
<pre class="eval">
firefox -chrome <a class="external" href="chrome://inspector/content" rel="freelink">chrome://inspector/content</a>
</pre>
<h4 id="-register_chrome_URL" name="-register_chrome_URL"><code>-register <var>chrome_URL</var></code></h4>
<p>Register the specified chrome, but do not start application.</p>
<h3 id="Add-ons" name="Add-ons">Add-ons</h3>
<p>{{ gecko_minversion_note("1.9.2", "-install-global-extension and -install-global-theme have been removed from Gecko 1.9.2 and upwards.") }}</p>
<h4 id="-install-global-extension_.2Fpath.2Fto.2Fextension" name="-install-global-extension_.2Fpath.2Fto.2Fextension"><code>-install-global-extension <var>/path/to/extension</var></code></h4>
<p>Installs the extension into the application directory. The parameter is the path to the extension. You must have administrative privileges.</p>
<h4 id="-install-global-theme_.2Fpath.2Fto.2Ftheme" name="-install-global-theme_.2Fpath.2Fto.2Ftheme"><code>-install-global-theme <var>/path/to/theme</var></code></h4>
<p>Same as above, but for themes. You must have administrative privileges.</p>
<div class="note">
  <p><strong>Note: </strong>Since Firefox 2.0.0.7, use of the <code>-install-global-extension</code> and <code>-install-global-theme</code> 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.</p>
</div>
<h4 id="-safe-mode" name="-safe-mode"><code>-safe-mode</code></h4>
<p>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).</p>
<h3 id="Locale" name="Locale">Locale</h3>
<h4 id="-UILocale_locale" name="-UILocale_locale"><code>-UILocale <var>locale</var></code></h4>
<p>Start with <var>locale</var> resources as UI Locale.</p>
<pre class="eval">
firefox -UILocale en-US
</pre>
<h3 id="Remote_Control" name="Remote_Control">Remote Control</h3>
<h4 id="-remote_remote_command" name="-remote_remote_command"><code>-remote <var>remote_command</var></code></h4>
<p>Execute <var>remote_command</var> in an already running application process (see <a class="external" href="http://www.mozilla.org/unix/remote.html">remote control</a>).</p>
<pre class="eval">
firefox -remote "openURL(www.mozilla.org, new-tab)"
</pre>
<h3 id="Miscellaneous" name="Miscellaneous">Miscellaneous</h3>
<h4 id="-console" name="-console"><code><strong>-tray</strong></code></h4>
<p>Start application minimized to system tray. Useful with autorun.</p>
<h4 id="-console" name="-console"><code>-silent</code></h4>
<p>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. <strong>Firefox</strong>, <strong>Thunderbird3.x</strong> and <strong>SeaMonkey2.x</strong> only.</p>
<h4 id="-console" name="-console"><code>-console</code></h4>
<p>Start application with a debugging console. Note:&nbsp;Windows only.</p>
<h4 id="-h_or_-help_or_-.3F" name="-h_or_-help_or_-.3F"><code>-h</code> or <code>-help</code> or <code>-?</code></h4>
<p>Print the list of all available command line options. Note that on Windows this only works with a redirection such as <code><span class="nowiki">|more</span></code> ({{ Bug(355889) }}). This option is available only in a command console.</p>
<h4 id="-v_or_-version" name="-v_or_-version"><code>-v</code> or <code>-version</code></h4>
<p>Print application version. Note that on Windows this only works with a redirection such as <code><span class="nowiki">|more</span></code> ({{ Bug(355889) }}). This option is available only in a command console.</p>
<h4 id="-osint" name="-osint"><code>-osint</code></h4>
<p>Tells the application that it is being launched by the OS&nbsp;shell. This should not be specified unless the caller provides all of the functionality provided by the OS&nbsp;shell when launching the application ({{ Bug(384384) }}).</p>
<h4 id="-requestPending" name="-requestPending"><code>-requestPending</code></h4>
<p>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&nbsp;shell when launching the application ({{ Bug(354005) }}).</p>
<h4 id="X11_options">X11 options</h4>
<p>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.</p>
<h5 id="--display.3DDISPLAY">--display=DISPLAY</h5>
<p>Set the X display to use</p>
<h5 id="--sync">--sync</h5>
<p>Make X calls synchronous</p>
<h5 id="--g-fatal-warnings">--g-fatal-warnings</h5>
<p>Make all warnings fatal</p>
<h3 id="Other_options_need_to_be_documented" name="Other_options_need_to_be_documented">Other options need to be documented</h3>
<ul>
  <li><code>-print-xpcom-dir</code></li>
  <li><code>-print-xpcom-dirlist</code></li>
  <li><code>-kill</code></li>
  <li><code>-killAll</code></li>
  <li><code>-f</code></li>
  <li><code>-ftimeout</code></li>
  <li><code>-fwait</code></li>
  <li><code>-unsetDefaultMail</code></li>
  <li><code>-foreground</code></li>
  <li>GTK options</li>
</ul>
<h3 id="References" name="References">References</h3>
<ul>
  <li><a href="/en/Chrome/Command_Line" title="en/Chrome/Command_Line">Chrome: Command Line</a></li>
  <li><a class="external" href="http://www-archive.mozilla.org/quality/browser/front-end/testcases/cmd-line/">Test Documentation for Command-line Features</a> (mozilla.org)</li>
  <li>{{ Source("toolkit/xre/nsAppRunner.cpp") }}</li>
  <li>{{ Source("browser/components/nsBrowserContentHandler.js") }}</li>
  <li>{{ Source("suite/browser/nsBrowserContentHandler.js") }}</li>
  <li>{{ Source("mail/components/nsMailDefaultHandler.js") }}</li>
  <li><a class="link-https" href="https://wiki.mozilla.org/Installer:Command_Line_Arguments">Installer command line options</a></li>
</ul>
<div class="originaldocinfo">
  <h2 id="Original_Document_Information" name="Original_Document_Information">Original Document Information</h2>
  <ul>
    <li>Author(s): Ben Goodger, Steffen Wilberg, Seth Spitzer, Daniel Wang</li>
    <li>Copyright Information: Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | <a class="external" href="http://www.mozilla.org/foundation/licensing/website-content.html">Details</a>.</li>
  </ul>
</div>
<p>{{ languages( { "ja": "ja/Command_Line_Options" } ) }}</p>
<p>Test3</p>
Revert to this revision