Firefox CLI is very poor - it doesn't allow scripts to interact with Firefox easily.
Adding the following CLI options would enhance Firefox compatibility with scripts:
* Display a list of all profiles (one profile per line). * Display the directory in which a profile is stored (input: profile name). * Import/Export bookmarks for a given profile (input: profile name ; input/output: path for the bookmarks). * Un/Install an Extension/Add-on. * Configure Action ("Open in Firefox" / "Always ask" / "Save File") per Application (Excel/mailto/XML/PDF/SVG/WebP etc.) * Enable/Disable permissions (Location/Camera etc.)