Command line arguments

Show content customized for:

A command line argument is a command added to the end of a program file path, that controls how the program is opened.

Table Of Contents

How to use command line arguments

Windows:
  1. Right-click the Firefox shortcut icon and choose Properties.
  2. Click on the Shortcut tab.
  3. In the Target input box, put the command line argument after the quote. For example


"C:\Program Files\Mozilla Firefox\firefox.exe" "http://www.mozilla.com"

Mac OS:
  1. Go to your Applications/Utilities folder and open Terminal.
  2. Enter the path to Firefox, then a space, followed by the command-line argument. For example,


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

Linux:
  1. Open the Terminal application.
  2. Enter the path to Firefox, then a space, followed by the command-line argument. For example,


firefox -ProfileManager

Syntax rules

  • Command parameters containing spaces must be enclosed in quotes (eg. "Joel User").
  • Command arguments are not case sensitive.
  • Command parameters may or may not be case sensitive, depending on the OS and the command.
  • Command parameters are separated from each other by one or more space, and parameters are separated from arguments by one or more spaces.

Command line arguments

Command
Result
-height <value>Set height of startup window to <integer> pixels
-width <value>Set width of startup window to <integer> pixels
-P <profile>Start Firefox with profile with name <profile>
-profile <directory>Start Firefox with profile <directory>. When the directory is something like .../Profiles/a1wnj55g.default/, the name is default.
-ProfileManagerStart with profile manager
-CreateProfile <profilename>Creates a new profile with name <profilename>
-safe-modeStart Firefox in Safe mode
-urlStart Firefox and load this URL immediately




Based on information from Command line arguments (mozillaZine KB)


Did this article solve a problem you had with Firefox?

Was this article easy to understand?



Page last modified on Sunday 06 of July, 2008 21:09:39 PST.
Contributors to this page: raekwon , AliceWyman , djstsys , ehsan , RayKiddy , Chris_Ilias and kf4lnq .
- This is a help article -

Tags in This Article