A xbar plugin to open any Salesforce Org you've authorized with the Salesforce CLI. Just click the org you want to open!
- If you haven't already, install xbar.
- Download the latest version of the plugin from the releases tab (it's just a single JavaScript file) and place it in your xbar plugins folder.
- Make the plugin executable by running
chmod +x {filename}
.
If the Salesforce CLI (sfdx
) is not installed, the plugin will not work.
For more info on installing plugins, see the xbar plugin documentation.
The plugin requires no configuration to run, but the page an org opens to can be configured through a .bitbarrc
file in your home directory.
To set the page for all orgs, add the following to the file:
[open_salesforce_org]
DEFAULT_PATH=/path/to/open/to
To set the page for individual orgs, add an open_salesforce_org.paths
section, with a line for each org you want to customize. Orgs can be specified by alias or username.
[open_salesforce_org.paths]
myOrg@example.com=/path/to/open/to
myOtherOrgAlias=/other/path/to/open/to
The most specific configuration takes precedence, so if DEFAULT_PATH
is set along with a value for an individual org, the value for the individual org will be used.