2019-09-11 15:27:40 +01:00
|
|
|
# firefox
|
|
|
|
|
|
|
|
> A free and open source web browser.
|
2019-09-21 21:39:37 +01:00
|
|
|
> More information: <https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options>.
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-21 21:39:37 +01:00
|
|
|
- Launch Firefox and open a web page:
|
2019-09-11 15:27:40 +01:00
|
|
|
|
|
|
|
`firefox {{https://www.duckduckgo.com}}`
|
|
|
|
|
2019-09-21 21:39:37 +01:00
|
|
|
- Open a new window:
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-13 19:17:51 +01:00
|
|
|
`firefox --new-window {{https://www.duckduckgo.com}}`
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-21 21:39:37 +01:00
|
|
|
- Open a private (incognito) window:
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-13 19:17:51 +01:00
|
|
|
`firefox --private-window`
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-21 21:39:37 +01:00
|
|
|
- Search for "wikipedia" using the default search engine:
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-21 21:39:37 +01:00
|
|
|
`firefox --search "{{wikipedia}}"`
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-21 21:39:37 +01:00
|
|
|
- Launch Firefox in safe mode, with all extensions disabled:
|
2019-09-11 15:27:40 +01:00
|
|
|
|
2019-09-13 19:17:51 +01:00
|
|
|
`firefox --safe-mode`
|
|
|
|
|
|
|
|
- Take a screenshot of a web page in headless mode:
|
|
|
|
|
2019-09-21 21:39:37 +01:00
|
|
|
`firefox --headless --screenshot {{path/to/output_file.png}} {{https://example.com/}}`
|
2019-09-13 19:17:51 +01:00
|
|
|
|
2019-10-14 15:18:41 +01:00
|
|
|
- Use a specific profile to allow multiple separate instances of Firefox to run at once:
|
|
|
|
|
|
|
|
`firefox --profile {{path/to/directory}} {{https://example.com/}}`
|
|
|
|
|
2019-10-14 14:55:35 +01:00
|
|
|
- Set Firefox as the default browser:
|
2019-10-10 17:32:17 +01:00
|
|
|
|
2019-10-10 17:41:49 +01:00
|
|
|
`firefox --setDefaultBrowser`
|