From 7feb07eccf0ea2efa714ee98d10bccd416c62e30 Mon Sep 17 00:00:00 2001 From: Juliet Shackell <63259011+jshackell-sfdc@users.noreply.github.com> Date: Mon, 20 Feb 2023 10:56:59 -0800 Subject: [PATCH] fix: remove mention of orgs (#520) --- messages/open.md | 18 +++++------------- src/commands/env/open.ts | 1 - 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/messages/open.md b/messages/open.md index 0160ca1c..e966e1db 100644 --- a/messages/open.md +++ b/messages/open.md @@ -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 "/" 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 "/" 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 @@ -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. diff --git a/src/commands/env/open.ts b/src/commands/env/open.ts index e3145d70..e2a60ba3 100644 --- a/src/commands/env/open.ts +++ b/src/commands/env/open.ts @@ -33,7 +33,6 @@ export default class EnvOpen extends SfCommand { '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'),