This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Further support for custom browser specification #1852
Labels
You can continue the conversation there. Go to discussion →
Is your feature request related to a problem? Please describe.
No, and thank you for the -b flag on force:org:open that enables a more customizable experience with sfdx.
What are you trying to do
Having both Firefox and Firefox Developer installed, the new force:org:open -b flag for "firefox" opens the standard version, whereas for development work I prefer Firefox Developer.
Also I've seen comments asking about incognito or private browser instances.
Describe the solution you'd like
Explicitly supporting all permutations of browsers and options would quickly get out of hand. Therefore a more flexible solution is needed.
Enable the user to specify, perhaps in the config hierarchy, the browser program and options to be executed. In a Windows, private-window Firefox Developer situation, the config setting could be similar to
"browser": "c:/Program Files/Firefox Developer Edition/firefox.exe -private-window"
. The syntax for supporting folders containing spaces is TBD. Perhaps the most canonical styles could be supported.When an sfdx command offers the -b flag, provide a -B flag that takes the "path/program -flags" syntax.
sfdx force:org:open -B "c:/Program Files/Firefox Developer Edition/firefox.exe -private-window"
. Again that path, file name, flags syntax is TBD.The precedence would be:
Describe alternatives you've considered
None. But I'm happy to evolve the feature with others.
Additional context
None.
The text was updated successfully, but these errors were encountered: