You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/display.md
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,42 @@
1
+
# summary
2
+
3
+
Display details about an environment.
4
+
1
5
# description
2
6
3
-
Display details about a specific environment
7
+
Specify an environment with either the username you used when you ran the "sf login" command or the environment's alias. Run "sf env list" to view all your environments and their aliases.
8
+
9
+
Output depends on the type of environment. For example, scratch org details include the access token, alias, username of the associated Dev Hub, the creation and expiration date, the generated scratch org username, and more. Compute environment details include the associated orgs, the list of functions, the project name, and more.
4
10
5
11
# examples
6
12
7
-
- sf env display -e my-scratch-org
8
-
- sf env display -e user@name.com
13
+
- Display details about a scratch org with alias my-scratch-org:
List the environments you’ve created or logged into.
4
+
1
5
# description
2
6
3
-
List the environments you’ve created or logged into.
7
+
By default, the command displays only active environments. For orgs, active means unexpired scratch orgs and orgs you’re currently logged into. For compute environments, active means the environments connected to orgs you’re currently logged into. Use the --all flag to list expired or deleted scratch orgs and compute environments that aren’t connected to logged-in orgs. Warning: the latter list could be very long.
8
+
9
+
Output is displayed in multiple tables, one for each environment type. For example, the Salesforce Orgs table lists the non-scratch orgs you’re logged into, such as sandboxes, Dev Hubs, production orgs, and so on. Scratch orgs and compute environments get their own tables.
10
+
11
+
For non-scratch orgs, the Username column refers to the user you logged into the org with. For scratch orgs it refers to the username that was generated for you when you created the scratch org. The first column indicates the default environment for each type.
12
+
13
+
Run "sf env display" to view details about a specific environment.
4
14
5
15
# examples
6
16
7
-
- sf env list
8
-
- sf env list --all
17
+
- List all environments:
18
+
19
+
<%= config.bin %> <%= command.id %> --all
20
+
21
+
- Filter the output to list only connected orgs. Rows from only the Salesforce Orgs table are displayed because it’s the only table with a "Status" column.
Copy file name to clipboardExpand all lines: messages/open.md
+26-30Lines changed: 26 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,39 @@ Open an environment in your web browser.
6
6
7
7
You can open the following types of environments in a web browser: scratch orgs, sandboxes, Dev Hubs, and production orgs.
8
8
9
-
If you run the command without flags, it attempts to open your default environment in your default web browser.
9
+
If you run the command without flags, it attempts to open your default environment in your default web browser. Run "sf env list" to view your default environment.
10
10
11
-
# flags.path.summary
11
+
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.
12
+
13
+
# examples
14
+
15
+
- Open your default environment:
16
+
17
+
<%= config.bin %> <%= command.id %>
18
+
19
+
- Open the Visualforce page /apex/StartHere in a scratch org with alias test-org:
Each of your environments is associated with an instance URL, such as https://<mydomian>.my.salesforce.com. To open a specific web page at that URL, specify the portion of the URL after "<URL>/" with the --path flag, such as /apex/YourPage to open a Visualforce page.
33
+
Path to append to the end of the login URL.
18
34
19
35
# flags.url-only.summary
20
36
21
37
Display the URL, but don’t launch it in a browser.
22
38
23
39
# flags.target-env.summary
24
40
25
-
Environment name or alias to open.
41
+
Environment login user or alias to open.
26
42
27
43
# flags.target-env.description
28
44
@@ -36,40 +52,20 @@ Browser in which to open the environment.
36
52
37
53
# flags.browser.description
38
54
39
-
Specify a browser by its app name according to your operating system. For example, Chrome’s app name is "google chrome" on macOS, "google-chrome" on Linux and "chrome" on Windows. So to open an environment in Chrome on macOS, specify --browser "google chrome". If you don’t specify --browser, the environment opens in your default browser.
40
-
41
-
For convenience, "chrome", "firefox", and "edge" are mapped to the OS specific app name.
42
-
43
-
# examples
44
-
45
-
- To open your default environment, run the command without flags:
46
-
47
-
<%= config.bin %> env open
48
-
49
-
- This example opens the Visualforce page /apex/StartHere in a scratch org with alias "test-org":
50
-
51
-
<%= config.bin %> env open --target-env test-org --path /apex/StartHere
52
-
53
-
- If you want to view the URL for the preceding command, but not launch it in a browser:
54
-
55
-
<%= config.bin %> env open --target-env test-org --path /apex/StartHere --url-only
56
-
57
-
- The preceding examples open the environment in your default web browser. To use a different browser, set the --browser flag to its OS-specific name. For example, to use Chrome on macOS:
You can specify that the environment open in one of the following browsers: Firefox, Safari, Google Chrome, or Windows Edge. If you don’t specify --browser, the environment opens in your default browser.
60
56
61
57
# error.NoDefaultEnv
62
58
63
-
No default target-env found. Use --target-env to specify which env to open.
59
+
No default target-env found. Use --target-env to specify the environment to open.
0 commit comments