Skip to content

Commit

Permalink
fix: remove mention of orgs (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshackell-sfdc authored Feb 20, 2023
1 parent c934116 commit 7feb07e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
18 changes: 5 additions & 13 deletions messages/open.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@ Open an environment in a web browser.

# description

You can open the following types of environments in a web browser: scratch orgs, sandboxes, Dev Hubs, and production orgs. Run "sf env list" to view your environments and their aliases and login usernames.

Each of your environments is associated with an instance URL, such as https://login.salesforce.com. To open a specific web page, specify the portion of the URL after "<URL>/" with the --path flag, such as /apex/YourPage to open a Visualforce page.
Each of your environments is associated with an instance URL, such as https://login.salesforce.com. To open a specific web page, specify the portion of the URL after "<URL>/" with the --path flag.

# examples

- Open the Visualforce page /apex/StartHere in a scratch org with alias test-org:
- Open the compute environment with alias "test-compute":

<%= config.bin %> <%= command.id %> --target-env test-org --path /apex/StartHere
<%= config.bin %> <%= command.id %> --target-env test-compute

- View the URL but don't launch it in a browser:

<%= config.bin %> <%= command.id %> --target-env test-org --path /apex/StartHere --url-only
<%= config.bin %> <%= command.id %> --target-env test-compute --url-only

- Open the environment in the Google Chrome browser:

<%= config.bin %> <%= command.id %> --target-env test-org --path /apex/StartHere --browser chrome
<%= config.bin %> <%= command.id %> --target-env test-compute --url-only --browser chrome

# flags.path.summary

Expand All @@ -34,12 +32,6 @@ Display the URL, but don’t launch it in a browser.

Login user or alias of the environment to open.

# flags.target-env.description

Specify the login user or alias that’s associated with the environment. For scratch orgs, the login user is generated by the command that created the scratch org. You can also set an alias for the scratch org when you create it.

For Dev Hubs, sandboxes, and production orgs, specify the alias you set when you logged into the org with "sf login".

# flags.browser.summary

Browser in which to open the environment.
Expand Down
1 change: 0 additions & 1 deletion src/commands/env/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default class EnvOpen extends SfCommand<OpenResult> {
'target-env': Flags.string({
char: 'e',
summary: messages.getMessage('flags.target-env.summary'),
description: messages.getMessage('flags.target-env.description'),
}),
browser: Flags.string({
summary: messages.getMessage('flags.browser.summary'),
Expand Down

0 comments on commit 7feb07e

Please sign in to comment.