HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

firefox — A free and open source web browser. More information: <https://wiki.mozilla.org/Firefox/CommandLineO

Submitted by: @import:tldr-pages··
0
Viewed 0 times
firefoxcommandandsourcecliopenfreeweb

Problem

How to use the firefox command: A free and open source web browser. More information: <https://wiki.mozilla.org/Firefox/CommandLineOptions>.

Solution

firefox — A free and open source web browser. More information: <https://wiki.mozilla.org/Firefox/CommandLineOptions>.

Launch Firefox and open a web page:
firefox {{https://www.duckduckgo.com}}


Open a new window:
firefox --new-window {{https://www.duckduckgo.com}}


Open a private (incognito) window:
firefox --private-window


Search for "wikipedia" using the default search engine:
firefox --search "{{wikipedia}}"


Launch Firefox in safe mode, with all extensions disabled:
firefox --safe-mode


Take a screenshot of a web page in headless mode:
firefox --headless --screenshot {{path/to/output_file.png}} {{https://example.com/}}


Use a specific profile to allow multiple separate instances of Firefox to run at once:
firefox --profile {{path/to/directory}} {{https://example.com/}}


Set Firefox as the default browser:
firefox --setDefaultBrowser

Code Snippets

Launch Firefox and open a web page

firefox {{https://www.duckduckgo.com}}

Open a new window

firefox --new-window {{https://www.duckduckgo.com}}

Open a private (incognito) window

firefox --private-window

Search for "wikipedia" using the default search engine

firefox --search "{{wikipedia}}"

Launch Firefox in safe mode, with all extensions disabled

firefox --safe-mode

Context

tldr-pages: common/firefox

Revisions (0)

No revisions yet.