Command line arguments: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(→‎Command Line Arguments (incomplete): Add open multiples pages in tabs)
(added in all content from Using a Command Line Switch)
Line 1: Line 1:
You can use command line arguments to change the way Firefox, Thunderbird, and Mozilla Suite start.
You can use command line arguments to change the way Firefox, Thunderbird, and Mozilla Suite start.


==Command Line Arguments (incomplete)==
==How to use command line arguments==
 
===For Windows users===
* Go to "Start -> Run" and entering the what you wish to execute with the switch. For example,
"C:\Program Files\Mozilla\Mozilla.exe" -ProfileManager
(with the quotation marks).
* You may also create a shortcut on your Desktop or wherever you like to make this less tedious. Right click on an open space. Choose New -> Shortcut. Follow the wizard in creating a new shortcut. When it prompts you for location (not name), type what you want to execute. For an example, see above.
 
===For Linux and Mac OS X users===
* Go to your Terminal window and type what you want to execute. On Linux, the shortcuts to your Terminal window will vary in location depending on your desktop environment. On Mac OS X go to your Applications folder and choose "Terminal".
 
 
==Command line arguments (incomplete)==
  {| {{prettytable}}
  {| {{prettytable}}
  ! Command
  ! Command
Line 64: Line 76:
  |}
  |}


==External Links==
==External links==
* [http://www.mozilla.org/docs/command-line-args.html Mozilla Suite's command line options]: some of these apply to Firefox and Thunderbird too. The page being outdated, some command line options may not work.
* [http://www.mozilla.org/docs/command-line-args.html Mozilla Suite's command line options]: some of these apply to Firefox and Thunderbird too. The page being outdated, some command line options may not work.
* [http://www.mozilla.org/projects/firefox/extensions/commandlineoptions.html Extensions Manager's command line options]: applies to Firefox, Thunderbird, and other applications that use the Extension Manager code in those two programs. (Does not apply to the Mozilla Suite.)
* [http://www.mozilla.org/projects/firefox/extensions/commandlineoptions.html Extensions Manager's command line options]: applies to Firefox, Thunderbird, and other applications that use the Extension Manager code in those two programs. (Does not apply to the Mozilla Suite.)

Revision as of 08:44, 17 October 2005

You can use command line arguments to change the way Firefox, Thunderbird, and Mozilla Suite start.

How to use command line arguments

For Windows users

  • Go to "Start -> Run" and entering the what you wish to execute with the switch. For example,
"C:\Program Files\Mozilla\Mozilla.exe" -ProfileManager

(with the quotation marks).

  • You may also create a shortcut on your Desktop or wherever you like to make this less tedious. Right click on an open space. Choose New -> Shortcut. Follow the wizard in creating a new shortcut. When it prompts you for location (not name), type what you want to execute. For an example, see above.

For Linux and Mac OS X users

  • Go to your Terminal window and type what you want to execute. On Linux, the shortcuts to your Terminal window will vary in location depending on your desktop environment. On Mac OS X go to your Applications folder and choose "Terminal".


Command line arguments (incomplete)

Command Result Example
profile "path" Starts firefox with profile located at the given path. firefox.exe -profile "E:\myprofile"
p "profile name" Starts firefox with the profile of the given name. firefox.exe -p "JoelUser"
url Launches firefox and opens the given URL(s). firefox.exe "www.mozilla.org|www.mozillazine.org"
safe-mode Launches firefox without loading extensions or themes. firefox.exe -safe-mode
height <value> Set height of startup window to <value>. firefox.exe -height 600
width <value> Set width of startup window to <value>. firefox.exe -width 800
ProfileManager Start with Profile Manager. firefox.exe -ProfileManager
UILocale <locale> Start with <locale> resources as UI Locale. firefox.exe -UILocale th-TH
contentLocale <locale> Start with <locale> resources as content Locale. firefox.exe -contentLocale TH
console Start Mozilla with a debugging console. firefox.exe -console
jsconsole Start with Javascript Console. firefox.exe -jsconsole
inspector <url> Start with the DOM Inspector. firefox.exe -inspector http://www.google.com/
chrome <url> Load the specified chrome. firefox.exe -chrome chrome://inspector/content/inspector.xul
new Load a new browser window. firefox.exe -new

External links