org open
Open your default scratch org, or another specified org, in a browser.
To open a specific page, specify the portion of the URL after “https://mydomain.my.salesforce.com” as the value for the –path flag. For example, specify “–path lightning” to open Lightning Experience, or specify “–path /apex/YourPage” to open a Visualforce page.
Use the –source-file flag to open ApexPage, FlexiPage, Flow, or Agent metadata from your local project in the associated Builder within the Org.
To generate a URL but not launch it in your browser, specify –url-only.
To open in a specific browser, use the –browser flag. Supported browsers are “chrome”, “edge”, and “firefox”. If you don’t specify –browser, the org opens in your default browser.
force:org:open
force:source:open
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑api‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑browser | ‑b | Type: Value Valid Values: chrome, edge, firefoxBrowser where the org opens. |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑path | ‑p | Type: Value Navigation URL path to open a specific page. |
‑‑private | N/A | Type: Boolean Open the org in the default browser using private (incognito) mode. |
‑‑source‑file | ‑f | Type: Value Path to ApexPage, FlexiPage, Flow, or Agent metadata to open in the associated Builder. |
‑‑target‑org | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
‑‑url‑only | ‑r | Type: Boolean Display navigation URL, but don’t launch browser. |
Open your default org in your default browser:
Open your default org in an incognito window of your default browser:
Open the org with alias MyTestOrg1 in the Firefox browser:
Display the navigation URL for the Lightning Experience page for your default org, but don’t open the page in a browser:
Open a local Lightning page in your default org’s Lightning App Builder:
Open a local Flow in Flow Builder:
Open local Agent metadata (Bot) in Agent Builder: