Skip to content

Further support for custom browser specification #1852

@john-storey-devops

Description

@john-storey-devops

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:

  1. Command specified browser
  2. Config-sourced browser
  3. OS default browser

Describe alternatives you've considered
None. But I'm happy to evolve the feature with others.

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue or pull request for a new featurehelp wantedHelp wanted to implement this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions