為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

where could I find a complete set of command line options for firefox?

  • 2 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 John99

more options

i believe the gnu/linux manual "man firefox" is wrong

"man firefox" on lubuntu 16.04 with default installed firefox "firefox -v => Mozilla Firefox 53.0" says "-private

             Start firefox in private browsing mode"

but i only managed to create a command line to open firefox in private with "firefox -private-window " according to "firefox -private-window"

I also used "-url "about:privatebrowsing""

there is no mention to -url in the "man firefox"

i believe the gnu/linux manual "man firefox" is wrong "man firefox" on lubuntu 16.04 with default installed firefox "firefox -v => Mozilla Firefox 53.0" says "-private Start firefox in private browsing mode" but i only managed to create a command line to open firefox in private with "firefox -private-window " according to "firefox -private-window" I also used "-url "about:privatebrowsing"" there is no mention to -url in the "man firefox"

所有回覆 (2)

more options

https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options?redirectlocale=en-US&redirectslug=Command_Line_Options

Command Line Options - Mozilla

Example Usage: C:\PROGRA~1\MOZILL~1\firefox.exe [ options ... ] [URL]

      where options include:
 -h or –help		Print this message.
 -v or –version	Print Firefox version.
 -P <profile>		Start with <profile>.
 -migration		Start with migration wizard.
 -ProfileManager	Start with ProfileManager.
 -no-remote		Do not accept or send remote commands; implies -new-instance.
 -new-instance	Open new instance, not a new window in running instance.
 -UILocale <locale> Start with <locale> resources as UI Locale.
 -safe-mode		Disables extensions and themes for this session.
 -console		Start Firefox with a debugging console.
 -jsconsole		Open the Error console.
 -browser		Open a browser window.
 -new-window <url> Open <url> in a new window.
 -new-tab <url>	Open <url> in a new tab.
 -preferences	Open Options dialog.
 -search <term>	Search <term> with your default search engine.
 -setDefaultBrowser Set this app as the default browser.
more options

Not too sure what your problem is but it seems to work as expected. You need to place the url after the option. From a CLI

firefox -private http://example.com 

works for me to open the url in a private mode window.

I note from http://manpages.ubuntu.com/manpages/xenial/en/man1/firefox.1.html It explains:

SYNOPSIS
      firefox [OPTIONS] [url]
....
OPTIONS

...

     -private
             Start firefox in private browsing mode