---
schema_version: "1"
id: d911140064e8d3dea2a33bc6fac5a04875ac4d290a036c136612a283c7b1c9b0
title: org open
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/org/cli_reference_org_open.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_org_open.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: aa312292ee227a2d11ee17955f08e45ebd6162691bc80d9ab62817c56da7abed
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# org open

Open your default scratch org, or another specified org, in a browser.

## Description for org open

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.

## Aliases for org open

`force:org:open`

`force:source:open`

## Flags

| Flag Name (Long) | Flag Name (Short) | Description |
|------------------|-------------------|-------------|
| <code>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;browser</code> | <code>&#8209;b</code> | **Type:** Value<br>**Valid Values:** `chrome`, `edge`, `firefox`<br><br>Browser where the org opens. |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;path</code> | <code>&#8209;p</code> | **Type:** Value<br><br>Navigation URL path to open a specific page. |
| <code>&#8209;&#8209;private</code> | N/A | **Type:** Boolean<br><br>Open the org in the default browser using private (incognito) mode. |
| <code>&#8209;&#8209;source&#8209;file</code> | <code>&#8209;f</code> | **Type:** Value<br><br>Path to ApexPage, FlexiPage, Flow, or Agent metadata to open in the associated Builder. |
| <code>&#8209;&#8209;target&#8209;org</code> | <code>&#8209;o</code> | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |
| <code>&#8209;&#8209;url&#8209;only</code> | <code>&#8209;r</code> | **Type:** Boolean<br><br>Display navigation URL, but don’t launch browser. |

## Examples for org open

Open your default org in your default browser:

```shell
sf org open
```

Open your default org in an incognito window of your default browser:

```shell
sf org open --private
```

Open the org with alias MyTestOrg1 in the Firefox browser:

```shell
sf org open --target-org MyTestOrg1 --browser firefox
```

Display the navigation URL for the Lightning Experience page for your default org, but don't open the page in a browser:

```shell
sf org open --url-only --path lightning
```

Open a local Lightning page in your default org's Lightning App Builder:

```shell
sf org open --source-file force-app/main/default/flexipages/Hello.flexipage-meta.xml
```

Open a local Flow in Flow Builder:

```shell
sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
```

Open local Agent metadata (Bot) in Agent Builder:

```shell
sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
```
<!-- prettier-ignore-end -->
