@salesforce/plugin-auth 2.5.2 → 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.
Files changed (39) hide show
  1. package/lib/commands/{auth/list.d.ts → org/list/auth.d.ts} +1 -1
  2. package/lib/commands/{auth/list.js → org/list/auth.js} +10 -10
  3. package/lib/commands/org/list/auth.js.map +1 -0
  4. package/lib/commands/{auth/accesstoken/store.d.ts → org/login/access-token.d.ts} +1 -1
  5. package/lib/commands/{auth/accesstoken/store.js → org/login/access-token.js} +18 -17
  6. package/lib/commands/org/login/access-token.js.map +1 -0
  7. package/lib/commands/{auth/device/login.d.ts → org/login/device.d.ts} +1 -1
  8. package/lib/commands/{auth/device/login.js → org/login/device.js} +20 -19
  9. package/lib/commands/org/login/device.js.map +1 -0
  10. package/lib/commands/{auth/jwt/grant.d.ts → org/login/jwt.d.ts} +1 -1
  11. package/lib/commands/{auth/jwt/grant.js → org/login/jwt.js} +19 -18
  12. package/lib/commands/org/login/jwt.js.map +1 -0
  13. package/lib/commands/{auth/sfdxurl/store.d.ts → org/login/sfdx-url.d.ts} +1 -1
  14. package/lib/commands/{auth/sfdxurl/store.js → org/login/sfdx-url.js} +15 -15
  15. package/lib/commands/org/login/sfdx-url.js.map +1 -0
  16. package/lib/commands/{auth/web/login.d.ts → org/login/web.d.ts} +1 -1
  17. package/lib/commands/{auth/web/login.js → org/login/web.js} +23 -21
  18. package/lib/commands/org/login/web.js.map +1 -0
  19. package/lib/commands/{auth → org}/logout.d.ts +2 -1
  20. package/lib/commands/org/logout.js +188 -0
  21. package/lib/commands/org/logout.js.map +1 -0
  22. package/messages/accesstoken.store.md +7 -5
  23. package/messages/device.login.md +14 -7
  24. package/messages/jwt.grant.md +31 -11
  25. package/messages/list.md +6 -4
  26. package/messages/logout.md +54 -18
  27. package/messages/messages.md +23 -15
  28. package/messages/sfdxurl.store.md +18 -12
  29. package/messages/web.login.md +31 -11
  30. package/oclif.manifest.json +145 -126
  31. package/package.json +39 -29
  32. package/lib/commands/auth/accesstoken/store.js.map +0 -1
  33. package/lib/commands/auth/device/login.js.map +0 -1
  34. package/lib/commands/auth/jwt/grant.js.map +0 -1
  35. package/lib/commands/auth/list.js.map +0 -1
  36. package/lib/commands/auth/logout.js +0 -98
  37. package/lib/commands/auth/logout.js.map +0 -1
  38. package/lib/commands/auth/sfdxurl/store.js.map +0 -1
  39. package/lib/commands/auth/web/login.js.map +0 -1
@@ -1,30 +1,50 @@
1
1
  # summary
2
2
 
3
- authorize an org using the web login flow
3
+ Log in to a Salesforce org using the web server flow.
4
4
 
5
5
  # description
6
6
 
7
- authorize an org using the web login flow
8
- If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log in to a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
9
- To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If you don't specify --browser, the org opens in your default browser.
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
- - $ <%= config.bin %> <%= command.id %> -a TestOrg1
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
- - $ <%= config.bin %> <%= command.id %> -i <OAuth client id>
35
+ <%= config.bin %> <%= command.id %> --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default --browser chrome --client-id 04580y4051234051
16
36
 
17
- - $ <%= config.bin %> <%= command.id %> -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com
37
+ # flags.browser.summary
18
38
 
19
- - $ <%= config.bin %> <%= command.id %> -a TestOrg1 -b firefox
39
+ Browser in which to open the org.
20
40
 
21
- # browser
41
+ # flags.browser.description
22
42
 
23
- browser where the org opens
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
- auth:web:login doesn't work when authorizing to a headless environment. Use auth:device:login instead.
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