Replies: 5 comments 7 replies
-
This issue has been linked to a new work item: W-12264011 |
Beta Was this translation helpful? Give feedback.
-
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
Beta Was this translation helpful? Give feedback.
-
We use the open library to open the browser here adding those flags would be pretty easy to pass to the library as arguments |
Beta Was this translation helpful? Give feedback.
-
Here's a Slack, Good Day, Sir conversation that could leverage this feature. This gist of the discussion is being able to open the browser with an explicit profile versus the default, which in Chrome's case could be achieved using the This Slack group does not have long-term history enabled, so this link my become broken eventually. |
Beta Was this translation helpful? Give feedback.
-
Would love to see this too. If you are trying to authorize devhub or existing sandbox you are still forced to use your default browser, copy url into your preferred browser and then do the oauth dance. And to throw a spanner into all of this - Illuminated Cloud in Jetbrains suite mostly respects my preferred browser that I've setup in Jetbrains itself. So the browser should be inherited from there instead of global/project based setting. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions