@salesforce/plugin-auth 2.5.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/{auth/list.d.ts → org/list/auth.d.ts} +1 -1
- package/lib/commands/{auth/list.js → org/list/auth.js} +10 -10
- package/lib/commands/org/list/auth.js.map +1 -0
- package/lib/commands/{auth/accesstoken/store.d.ts → org/login/access-token.d.ts} +1 -1
- package/lib/commands/{auth/accesstoken/store.js → org/login/access-token.js} +18 -17
- package/lib/commands/org/login/access-token.js.map +1 -0
- package/lib/commands/{auth/device/login.d.ts → org/login/device.d.ts} +1 -1
- package/lib/commands/{auth/device/login.js → org/login/device.js} +20 -19
- package/lib/commands/org/login/device.js.map +1 -0
- package/lib/commands/{auth/jwt/grant.d.ts → org/login/jwt.d.ts} +1 -1
- package/lib/commands/{auth/jwt/grant.js → org/login/jwt.js} +19 -18
- package/lib/commands/org/login/jwt.js.map +1 -0
- package/lib/commands/{auth/sfdxurl/store.d.ts → org/login/sfdx-url.d.ts} +1 -1
- package/lib/commands/{auth/sfdxurl/store.js → org/login/sfdx-url.js} +15 -15
- package/lib/commands/org/login/sfdx-url.js.map +1 -0
- package/lib/commands/{auth/web/login.d.ts → org/login/web.d.ts} +1 -1
- package/lib/commands/{auth/web/login.js → org/login/web.js} +23 -21
- package/lib/commands/org/login/web.js.map +1 -0
- package/lib/commands/{auth → org}/logout.d.ts +2 -1
- package/lib/commands/org/logout.js +188 -0
- package/lib/commands/org/logout.js.map +1 -0
- package/messages/accesstoken.store.md +7 -5
- package/messages/device.login.md +14 -7
- package/messages/jwt.grant.md +31 -11
- package/messages/list.md +6 -4
- package/messages/logout.md +54 -18
- package/messages/messages.md +23 -15
- package/messages/sfdxurl.store.md +18 -12
- package/messages/web.login.md +31 -11
- package/oclif.manifest.json +145 -126
- package/package.json +36 -25
- package/lib/commands/auth/accesstoken/store.js.map +0 -1
- package/lib/commands/auth/device/login.js.map +0 -1
- package/lib/commands/auth/jwt/grant.js.map +0 -1
- package/lib/commands/auth/list.js.map +0 -1
- package/lib/commands/auth/logout.js +0 -98
- package/lib/commands/auth/logout.js.map +0 -1
- package/lib/commands/auth/sfdxurl/store.js.map +0 -1
- package/lib/commands/auth/web/login.js.map +0 -1
package/messages/web.login.md
CHANGED
|
@@ -1,30 +1,50 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Log in to a Salesforce org using the web server flow.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Opens a Salesforce instance URL in a web browser so you can enter your credentials and log in to your org. After you log in, you can close the browser window.
|
|
8
|
+
|
|
9
|
+
Logging into an org authorizes the CLI to run other commands that connect to that org, such as deploying or retrieving metadata. You can log into many types of orgs, such as sandboxes, Dev Hubs, Env Hubs, production orgs, and scratch orgs.
|
|
10
|
+
|
|
11
|
+
We recommend that you set an alias when you log into an org. Aliases make it easy to later reference this org when running commands that require it. If you don’t set an alias, you use the username that you specified when you logged in to the org. If you run multiple commands that reference the same org, consider setting the org as your default. Use --set-default for your default scratch org or sandbox, or --set-default-dev-hub for your default Dev Hub.
|
|
12
|
+
|
|
13
|
+
By default, this command uses the global out-of-the-box connected app in your org. If you need more security or control, such as setting the refresh token timeout or specifying IP ranges, create your own connected app using a digital certificate. Make note of the consumer key (also called cliend id) that’s generated for you. Then specify the consumer key with the --client-id flag.
|
|
10
14
|
|
|
11
15
|
# examples
|
|
12
16
|
|
|
13
|
-
-
|
|
17
|
+
- Run the command with no flags to open the default Salesforce login page (https://login.salesforce.com):
|
|
18
|
+
|
|
19
|
+
<%= config.bin %> <%= command.id %>
|
|
20
|
+
|
|
21
|
+
- Log in to your Dev Hub, set it as your default Dev Hub, and set an alias that you reference later when you create a scratch org:
|
|
22
|
+
|
|
23
|
+
<%= config.bin %> <%= command.id %> --set-default-dev-hub --alias dev-hub
|
|
24
|
+
|
|
25
|
+
- Log in to a sandbox and set it as your default org:
|
|
26
|
+
|
|
27
|
+
<%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default
|
|
28
|
+
|
|
29
|
+
- Use --browser to specify a specific browser, such as Google Chrome:
|
|
30
|
+
|
|
31
|
+
<%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome
|
|
32
|
+
|
|
33
|
+
- Use your own connected app by specifying its consumer key (also called client ID):
|
|
14
34
|
|
|
15
|
-
|
|
35
|
+
<%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome --client-id 04580y4051234051
|
|
16
36
|
|
|
17
|
-
|
|
37
|
+
# flags.browser.summary
|
|
18
38
|
|
|
19
|
-
|
|
39
|
+
Browser in which to open the org.
|
|
20
40
|
|
|
21
|
-
# browser
|
|
41
|
+
# flags.browser.description
|
|
22
42
|
|
|
23
|
-
browser
|
|
43
|
+
If you don’t specify --browser, the command uses your default browser. The exact names of the browser applications differ depending on the operating system you're on; check your documentation for details.
|
|
24
44
|
|
|
25
45
|
# deviceWarning
|
|
26
46
|
|
|
27
|
-
|
|
47
|
+
"<%= config.bin %> <%= command.id %>" doesn't work when authorizing to a headless environment. Use "<%= config.bin %> org login device" instead.
|
|
28
48
|
|
|
29
49
|
# invalidClientId
|
|
30
50
|
|