@salesforce/plugin-auth 1.7.4 → 1.8.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/CHANGELOG.md CHANGED
@@ -2,35 +2,58 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [1.7.4](https://github.com/salesforcecli/plugin-auth/compare/v1.7.3...v1.7.4) (2021-10-19)
5
+ ## [1.8.0](https://github.com/salesforcecli/plugin-auth/compare/v1.7.7...v1.8.0) (2021-12-02)
6
+
7
+ ### Features
8
+
9
+ - bump deps ([5c943c8](https://github.com/salesforcecli/plugin-auth/commit/5c943c8129e8e8ce2e937378fd4eda51181de114))
10
+
11
+ ### [1.7.7](https://github.com/salesforcecli/plugin-auth/compare/v1.7.6...v1.7.7) (2021-11-30)
12
+
13
+ ### Bug Fixes
14
+
15
+ - remove incorrect auth url format option ([26bf11e](https://github.com/salesforcecli/plugin-auth/commit/26bf11ea5cb8e9705d720fbc2fc0352cc43c6b30))
16
+ - update help ... ([7a5b88e](https://github.com/salesforcecli/plugin-auth/commit/7a5b88eedf59dc6223bab495f3fa86d9bfc05ffa))
17
+
18
+ ### [1.7.6](https://github.com/salesforcecli/plugin-auth/compare/v1.7.5...v1.7.6) (2021-11-17)
19
+
20
+ ### Bug Fixes
21
+
22
+ - update sandbox url ([a62a0e3](https://github.com/salesforcecli/plugin-auth/commit/a62a0e3324134d7ea64fdc6a33430c187f9bf8c6))
23
+ - update sandbox URL ([db5d850](https://github.com/salesforcecli/plugin-auth/commit/db5d850f2e212788039d2e41d66d3b4a61190877))
24
+ - update sandbox URL ([b003ca6](https://github.com/salesforcecli/plugin-auth/commit/b003ca6210f5f8c2137be684ef82793c1c7beb62))
25
+
26
+ ### [1.7.5](https://github.com/salesforcecli/plugin-auth/compare/v1.7.4...v1.7.5) (2021-10-26)
27
+
28
+ ### Bug Fixes
6
29
 
30
+ - change column header with OCLIF table method ([c577540](https://github.com/salesforcecli/plugin-auth/commit/c57754059b6cb5a2c85059a3cf0f1f55ce85ac99))
31
+
32
+ ### [1.7.4](https://github.com/salesforcecli/plugin-auth/compare/v1.7.3...v1.7.4) (2021-10-19)
7
33
 
8
34
  ### Bug Fixes
9
35
 
10
- * add missing long command description ([793ccac](https://github.com/salesforcecli/plugin-auth/commit/793ccac8bc5e3ce45ac9b07995bca00b24347eea))
36
+ - add missing long command description ([793ccac](https://github.com/salesforcecli/plugin-auth/commit/793ccac8bc5e3ce45ac9b07995bca00b24347eea))
11
37
 
12
38
  ### [1.7.3](https://github.com/salesforcecli/plugin-auth/compare/v1.7.2...v1.7.3) (2021-10-12)
13
39
 
14
40
  ### [1.7.2](https://github.com/salesforcecli/plugin-auth/compare/v1.7.1...v1.7.2) (2021-10-05)
15
41
 
16
-
17
42
  ### Bug Fixes
18
43
 
19
- * update deps ([59c8b30](https://github.com/salesforcecli/plugin-auth/commit/59c8b3029e7c03ac8d432f3506a72b6ff8722b92))
44
+ - update deps ([59c8b30](https://github.com/salesforcecli/plugin-auth/commit/59c8b3029e7c03ac8d432f3506a72b6ff8722b92))
20
45
 
21
46
  ### [1.7.1](https://github.com/salesforcecli/plugin-auth/compare/v1.7.0...v1.7.1) (2021-06-25)
22
47
 
23
-
24
48
  ### Bug Fixes
25
49
 
26
- * edit help for auth:accesstoken:store ([61d51d8](https://github.com/salesforcecli/plugin-auth/commit/61d51d81d311ace1674fa9c71e7d3bbe9ae698fe))
50
+ - edit help for auth:accesstoken:store ([61d51d8](https://github.com/salesforcecli/plugin-auth/commit/61d51d81d311ace1674fa9c71e7d3bbe9ae698fe))
27
51
 
28
52
  ## [1.7.0](https://github.com/salesforcecli/plugin-auth/compare/v1.6.1...v1.7.0) (2021-06-23)
29
53
 
30
-
31
54
  ### Features
32
55
 
33
- * add auth:accesstoken:store command ([#165](https://github.com/salesforcecli/plugin-auth/issues/165)) ([3f7d75a](https://github.com/salesforcecli/plugin-auth/commit/3f7d75a4d1490037610b55c3f49823ed94decbbd)), closes [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#148](https://github.com/salesforcecli/plugin-auth/issues/148) [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#152](https://github.com/salesforcecli/plugin-auth/issues/152)
56
+ - add auth:accesstoken:store command ([#165](https://github.com/salesforcecli/plugin-auth/issues/165)) ([3f7d75a](https://github.com/salesforcecli/plugin-auth/commit/3f7d75a4d1490037610b55c3f49823ed94decbbd)), closes [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#148](https://github.com/salesforcecli/plugin-auth/issues/148) [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#152](https://github.com/salesforcecli/plugin-auth/issues/152) [#152](https://github.com/salesforcecli/plugin-auth/issues/152)
34
57
 
35
58
  ### [1.6.1](https://github.com/salesforcecli/plugin-auth/compare/v1.6.0...v1.6.1) (2021-05-27)
36
59
 
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018, Salesforce.com, Inc.
1
+ Copyright (c) 2021, Salesforce.com, Inc.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
package/README.md CHANGED
@@ -69,13 +69,14 @@ sfdx plugins
69
69
  # Commands
70
70
 
71
71
  <!-- commands -->
72
- * [`sfdx auth:accesstoken:store -r <url> [-s] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authaccesstokenstore--r-url--s--s--a-string--p---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
73
- * [`sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authdevicelogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
74
- * [`sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authjwtgrant--u-string--f-filepath--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
75
- * [`sfdx auth:list [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlist---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
76
- * [`sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlogout--a--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
77
- * [`sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authsfdxurlstore--f-filepath--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
78
- * [`sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authweblogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
72
+
73
+ - [`sfdx auth:accesstoken:store -r <url> [-s] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authaccesstokenstore--r-url--s--s--a-string--p---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
74
+ - [`sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authdevicelogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
75
+ - [`sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authjwtgrant--u-string--f-filepath--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
76
+ - [`sfdx auth:list [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlist---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
77
+ - [`sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlogout--a--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
78
+ - [`sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authsfdxurlstore--f-filepath--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
79
+ - [`sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authweblogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
79
80
 
80
81
  ## `sfdx auth:accesstoken:store -r <url> [-s] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
81
82
 
@@ -87,7 +88,7 @@ By default, the command runs interactively and asks you for the access token. If
87
88
  To use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the command with the --noprompt parameter. "<org id>!<accesstoken>"
88
89
 
89
90
  USAGE
90
- $ sfdx auth:accesstoken:store -r <url> [-s] [-s] [-a <string>] [-p] [--json] [--loglevel
91
+ $ sfdx auth:accesstoken:store -r <url> [-s] [-s] [-a <string>] [-p] [--json] [--loglevel
91
92
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
92
93
 
93
94
  OPTIONS
@@ -113,9 +114,9 @@ OPTIONS
113
114
  this command invocation
114
115
 
115
116
  DESCRIPTION
116
- By default, the command runs interactively and asks you for the access token. If you previously authorized the org,
117
+ By default, the command runs interactively and asks you for the access token. If you previously authorized the org,
117
118
  the command prompts whether you want to overwrite the local file. Specify --noprompt to not be prompted.
118
- To use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the
119
+ To use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the
119
120
  command with the --noprompt parameter. "<org id>!<accesstoken>"
120
121
 
121
122
  ALIASES
@@ -127,7 +128,7 @@ EXAMPLES
127
128
  sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt
128
129
  ```
129
130
 
130
- _See code: [src/commands/auth/accesstoken/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.3/src/commands/auth/accesstoken/store.ts)_
131
+ _See code: [src/commands/auth/accesstoken/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.7/src/commands/auth/accesstoken/store.ts)_
131
132
 
132
133
  ## `sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
133
134
 
@@ -138,7 +139,7 @@ authorize an org using a device code
138
139
  You must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and you’ll be prompted to allow the device to connect to the org.
139
140
 
140
141
  USAGE
141
- $ sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
142
+ $ sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
142
143
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
143
144
 
144
145
  OPTIONS
@@ -165,7 +166,7 @@ OPTIONS
165
166
  this command invocation
166
167
 
167
168
  DESCRIPTION
168
- You must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and
169
+ You must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and
169
170
  you’ll be prompted to allow the device to connect to the org.
170
171
 
171
172
  ALIASES
@@ -174,10 +175,10 @@ ALIASES
174
175
  EXAMPLES
175
176
  sfdx auth:device:login -d -a TestOrg1
176
177
  sfdx auth:device:login -i <OAuth client id>
177
- sfdx auth:device:login -r https://test.salesforce.com
178
+ sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com
178
179
  ```
179
180
 
180
- _See code: [src/commands/auth/device/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.3/src/commands/auth/device/login.ts)_
181
+ _See code: [src/commands/auth/device/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.7/src/commands/auth/device/login.ts)_
181
182
 
182
183
  ## `sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
183
184
 
@@ -186,10 +187,10 @@ authorize an org using the JWT flow
186
187
  ```
187
188
  authorize an org using the JWT flow
188
189
  Use a certificate associated with your private key that has been uploaded to a personal connected app.
189
- If you specify an --instanceurl 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 specify a sandbox, set --instanceurl to https://test.salesforce.com.
190
+ If you specify an --instanceurl 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 specify a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
190
191
 
191
192
  USAGE
192
- $ sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
193
+ $ sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
193
194
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
194
195
 
195
196
  OPTIONS
@@ -222,9 +223,9 @@ OPTIONS
222
223
 
223
224
  DESCRIPTION
224
225
  Use a certificate associated with your private key that has been uploaded to a personal connected app.
225
- If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
226
- specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To
227
- specify a sandbox, set --instanceurl to https://test.salesforce.com.
226
+ If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
227
+ specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To
228
+ specify a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
228
229
 
229
230
  ALIASES
230
231
  $ sfdx force:auth:jwt:grant
@@ -235,7 +236,7 @@ EXAMPLES
235
236
  sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com
236
237
  ```
237
238
 
238
- _See code: [src/commands/auth/jwt/grant.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.3/src/commands/auth/jwt/grant.ts)_
239
+ _See code: [src/commands/auth/jwt/grant.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.7/src/commands/auth/jwt/grant.ts)_
239
240
 
240
241
  ## `sfdx auth:list [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
241
242
 
@@ -257,7 +258,7 @@ ALIASES
257
258
  $ sfdx force:auth:list
258
259
  ```
259
260
 
260
- _See code: [src/commands/auth/list.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.3/src/commands/auth/list.ts)_
261
+ _See code: [src/commands/auth/list.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.7/src/commands/auth/list.ts)_
261
262
 
262
263
  ## `sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
263
264
 
@@ -268,7 +269,7 @@ log out from authorized orgs
268
269
  By default, this command logs you out from your default scratch org.
269
270
 
270
271
  USAGE
271
- $ sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel
272
+ $ sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel
272
273
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
273
274
 
274
275
  OPTIONS
@@ -298,27 +299,27 @@ EXAMPLES
298
299
  sfdx auth:logout -p
299
300
  ```
300
301
 
301
- _See code: [src/commands/auth/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.3/src/commands/auth/logout.ts)_
302
+ _See code: [src/commands/auth/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.7/src/commands/auth/logout.ts)_
302
303
 
303
304
  ## `sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
304
305
 
305
- Authorize an org using an SFDX auth URL
306
+ authorize an org using an SFDX auth URL stored within a file
306
307
 
307
308
  ```
308
- Authorize an org using an SFDX auth URL
309
- Authorize a Salesforce org using an SFDX auth URL stored within a file. The URL must have the format "force://<refreshToken>@<instanceUrl>" or "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>".
310
- You have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file.
311
- For example, using an org you have already authorized:
309
+ authorize an org using an SFDX auth URL stored within a file
310
+ The SFDX auth URL must have the format "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>". NOTE: The SFDX auth URL uses the "force" protocol, and not "http" or "https". Also, the "instanceUrl" inside the SFDX auth URL doesn't include the protocol ("https://").
311
+
312
+ You have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file. For example, using an org you have already authorized:
312
313
 
313
- $ sfdx force:org:display -u <DevHub> --verbose --json > authFile.json
314
+ $ sfdx force:org:display -u <OrgUsername> --verbose --json > authFile.json
314
315
  $ sfdx auth:sfdxurl:store -f authFile.json
315
316
 
316
- The resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object.
317
- You can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL.
318
- Finally, you can create a normal text file that includes just the URL and nothing else.
317
+ The resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The `force:org:display --verbose` command displays the refresh token only for orgs authorized with the web server flow, and not the JWT bearer flow.
318
+
319
+ You can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL. Finally, you can create a normal text file that includes just the URL and nothing else.
319
320
 
320
321
  USAGE
321
- $ sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel
322
+ $ sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel
322
323
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
323
324
 
324
325
  OPTIONS
@@ -342,18 +343,22 @@ OPTIONS
342
343
  this command invocation
343
344
 
344
345
  DESCRIPTION
345
- Authorize a Salesforce org using an SFDX auth URL stored within a file. The URL must have the format
346
- "force://<refreshToken>@<instanceUrl>" or "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>".
347
- You have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx
348
- force:org:display --verbose --json` command into a file.
349
- For example, using an org you have already authorized:
346
+ The SFDX auth URL must have the format "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>". NOTE: The
347
+ SFDX auth URL uses the "force" protocol, and not "http" or "https". Also, the "instanceUrl" inside the SFDX auth URL
348
+ doesn't include the protocol ("https://").
350
349
 
351
- $ sfdx force:org:display -u <DevHub> --verbose --json > authFile.json
350
+ You have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx
351
+ force:org:display --verbose --json` command into a file. For example, using an org you have already authorized:
352
+
353
+ $ sfdx force:org:display -u <OrgUsername> --verbose --json > authFile.json
352
354
  $ sfdx auth:sfdxurl:store -f authFile.json
353
355
 
354
- The resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object.
355
- You can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL.
356
- Finally, you can create a normal text file that includes just the URL and nothing else.
356
+ The resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The
357
+ `force:org:display --verbose` command displays the refresh token only for orgs authorized with the web server flow,
358
+ and not the JWT bearer flow.
359
+
360
+ You can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL. Finally,
361
+ you can create a normal text file that includes just the URL and nothing else.
357
362
 
358
363
  ALIASES
359
364
  $ sfdx force:auth:sfdxurl:store
@@ -363,7 +368,7 @@ EXAMPLES
363
368
  sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg
364
369
  ```
365
370
 
366
- _See code: [src/commands/auth/sfdxurl/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.3/src/commands/auth/sfdxurl/store.ts)_
371
+ _See code: [src/commands/auth/sfdxurl/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.7/src/commands/auth/sfdxurl/store.ts)_
367
372
 
368
373
  ## `sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
369
374
 
@@ -371,10 +376,10 @@ authorize an org using the web login flow
371
376
 
372
377
  ```
373
378
  authorize an org using the web login flow
374
- If you specify an --instanceurl 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://test.salesforce.com.
379
+ If you specify an --instanceurl 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.
375
380
 
376
381
  USAGE
377
- $ sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
382
+ $ sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
378
383
  trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
379
384
 
380
385
  OPTIONS
@@ -401,9 +406,9 @@ OPTIONS
401
406
  this command invocation
402
407
 
403
408
  DESCRIPTION
404
- If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
405
- specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log
406
- in to a sandbox, set --instanceurl to https://test.salesforce.com.
409
+ If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
410
+ specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log
411
+ in to a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
407
412
 
408
413
  ALIASES
409
414
  $ sfdx force:auth:web:login
@@ -411,8 +416,9 @@ ALIASES
411
416
  EXAMPLES
412
417
  sfdx auth:web:login -a TestOrg1
413
418
  sfdx auth:web:login -i <OAuth client id>
414
- sfdx auth:web:login -r https://test.salesforce.com
419
+ sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com
415
420
  ```
416
421
 
417
- _See code: [src/commands/auth/web/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.3/src/commands/auth/web/login.ts)_
422
+ _See code: [src/commands/auth/web/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.7.7/src/commands/auth/web/login.ts)_
423
+
418
424
  <!-- commandsstop -->
@@ -15,9 +15,17 @@ class List extends command_1.SfdxCommand {
15
15
  try {
16
16
  const auths = await core_1.AuthInfo.listAllAuthorizations();
17
17
  const hasErrors = auths.filter((auth) => !!auth.error).length > 0;
18
- const columns = ['alias', 'username', 'orgId', 'instanceUrl', 'oauthMethod'];
18
+ const columns = {
19
+ columns: [
20
+ { key: 'alias', label: 'ALIAS' },
21
+ { key: 'username', label: 'USERNAME' },
22
+ { key: 'orgId', label: 'ORG ID' },
23
+ { key: 'instanceUrl', label: 'INSTANCE URL' },
24
+ { key: 'oauthMethod', label: 'AUTH METHOD' },
25
+ ],
26
+ };
19
27
  if (hasErrors) {
20
- columns.push('error');
28
+ columns.columns.push({ key: 'error', label: 'ERROR' });
21
29
  }
22
30
  this.ux.styledHeader('authenticated orgs');
23
31
  this.ux.table(auths, columns);
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/auth/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG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CAAC;;AA5BH,uBA6BC;AA5BwB,gBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAC1D,YAAO,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAErB,gBAAW,GAAgB,EAAE,CAAC"}
@@ -14,8 +14,7 @@ const common_1 = require("../../../common");
14
14
  core_1.Messages.importMessagesDirectory(__dirname);
15
15
  const messages = core_1.Messages.loadMessages('@salesforce/plugin-auth', 'sfdxurl.store');
16
16
  const commonMessages = core_1.Messages.loadMessages('@salesforce/plugin-auth', 'messages');
17
- const AUTH_URL_FORMAT1 = 'force://<refreshToken>@<instanceUrl>';
18
- const AUTH_URL_FORMAT2 = 'force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>';
17
+ const AUTH_URL_FORMAT = 'force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>';
19
18
  class Store extends command_1.SfdxCommand {
20
19
  async run() {
21
20
  if (await prompts_1.Prompts.shouldExitCommand(this.ux, this.flags.noprompt))
@@ -44,7 +43,7 @@ class Store extends command_1.SfdxCommand {
44
43
  }
45
44
  }
46
45
  exports.default = Store;
47
- Store.description = messages.getMessage('description', [AUTH_URL_FORMAT1, AUTH_URL_FORMAT2]);
46
+ Store.description = messages.getMessage('description', [AUTH_URL_FORMAT]);
48
47
  Store.examples = messages.getMessage('examples').split(os.EOL);
49
48
  Store.aliases = ['force:auth:sfdxurl:store'];
50
49
  Store.flagsConfig = {
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../src/commands/auth/sfdxurl/store.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,2CAAsE;AAEtE,8CAA2C;AAC3C,4CAAyC;AAEzC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,eAAe,CAAC,CAAC;AACnF,M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;KACf,CAAC;IACF,wBAAwB,EAAE,eAAK,CAAC,OAAO,CAAC;QACtC,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,kBAAkB,CAAC;KAC3D,CAAC;IACF,kBAAkB,EAAE,eAAK,CAAC,OAAO,CAAC;QAChC,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,oBAAoB,CAAC;KAC7D,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC;KACnD,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,cAAc,CAAC;QACtD,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;KACb,CAAC;CACH,CAAC"}
@@ -3,7 +3,7 @@
3
3
  "examples": [
4
4
  "sfdx auth:device:login -d -a TestOrg1",
5
5
  "sfdx auth:device:login -i <OAuth client id>",
6
- "sfdx auth:device:login -r https://test.salesforce.com"
6
+ "sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"
7
7
  ],
8
8
  "actionRequired": "Action Required!",
9
9
  "enterCode": "Enter %s user code in the verification URL %s",
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "authorize an org using the JWT flow\nUse a certificate associated with your private key that has been uploaded to a personal connected app.\nIf you specify an --instanceurl 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 specify a sandbox, set --instanceurl to https://test.salesforce.com.",
2
+ "description": "authorize an org using the JWT flow\nUse a certificate associated with your private key that has been uploaded to a personal connected app.\nIf you specify an --instanceurl 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 specify a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.",
3
3
  "examples": [
4
4
  "sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>",
5
5
  "sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg",
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "Authorize an org using an SFDX auth URL\nAuthorize a Salesforce org using an SFDX auth URL stored within a file. The URL must have the format \"%s\" or \"%s\".\nYou have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file.\nFor example, using an org you have already authorized:\n\n $ sfdx force:org:display -u <DevHub> --verbose --json > authFile.json\n $ sfdx auth:sfdxurl:store -f authFile.json\n\nThe resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object.\nYou can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL.\nFinally, you can create a normal text file that includes just the URL and nothing else.",
2
+ "description": "authorize an org using an SFDX auth URL stored within a file\nThe SFDX auth URL must have the format \"%s\". NOTE: The SFDX auth URL uses the \"force\" protocol, and not \"http\" or \"https\". Also, the \"instanceUrl\" inside the SFDX auth URL doesn't include the protocol (\"https://\").\n\nYou have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file. For example, using an org you have already authorized:\n\n $ sfdx force:org:display -u <OrgUsername> --verbose --json > authFile.json\n $ sfdx auth:sfdxurl:store -f authFile.json\n\nThe resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The `force:org:display --verbose` command displays the refresh token only for orgs authorized with the web server flow, and not the JWT bearer flow. \n\nYou can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL. Finally, you can create a normal text file that includes just the URL and nothing else.",
3
3
  "file": "path to a file containing the sfdx url",
4
4
  "examples": [
5
5
  "sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>",
@@ -1,9 +1,9 @@
1
1
  {
2
- "description": "authorize an org using the web login flow\nIf you specify an --instanceurl 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://test.salesforce.com.",
2
+ "description": "authorize an org using the web login flow\nIf you specify an --instanceurl 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.",
3
3
  "examples": [
4
4
  "sfdx auth:web:login -a TestOrg1",
5
5
  "sfdx auth:web:login -i <OAuth client id>",
6
- "sfdx auth:web:login -r https://test.salesforce.com"
6
+ "sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"
7
7
  ],
8
8
  "deviceWarning": "auth:web:login doesn't work when authorizing to a headless environment. Use auth:device:login instead.",
9
9
  "invalidClientId": "Invalid client credentials. Verify the OAuth client secret and ID. %s"
@@ -1 +1 @@
1
- {"version":"1.7.4","commands":{"auth:list":{"id":"auth:list","description":"list auth connection information","usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:list"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[]},"auth:logout":{"id":"auth:logout","description":"log out from authorized orgs\nBy default, this command logs you out from your default scratch org.","usage":"<%= command.id %> [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:logout"],"examples":["sfdx auth:logout -u me@my.org","sfdx auth:logout -a","sfdx auth:logout -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"all":{"name":"all","type":"boolean","char":"a","description":"include all authenticated orgs","required":false,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[]},"auth:accesstoken:store":{"id":"auth:accesstoken:store","description":"authorize an org using an existing Salesforce access token\nBy default, the command runs interactively and asks you for the access token. If you previously authorized the org, the command prompts whether you want to overwrite the local file. Specify --noprompt to not be prompted.\nTo use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the command with the --noprompt parameter. \"<org id>!<accesstoken>\"","usage":"<%= command.id %> -r <url> [-s] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:accesstoken:store"],"examples":["sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com","export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx","sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","required":true},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"s","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[]},"auth:device:login":{"id":"auth:device:login","description":"authorize an org using a device code\nYou must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and you’ll be prompted to allow the device to connect to the org.","usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:device:login"],"examples":["sfdx auth:device:login -d -a TestOrg1","sfdx auth:device:login -i <OAuth client id>","sfdx auth:device:login -r https://test.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on"},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false}},"args":[]},"auth:jwt:grant":{"id":"auth:jwt:grant","description":"authorize an org using the JWT flow\nUse a certificate associated with your private key that has been uploaded to a personal connected app.\nIf you specify an --instanceurl 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 specify a sandbox, set --instanceurl to https://test.salesforce.com.","usage":"<%= command.id %> -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:jwt:grant"],"examples":["sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>","sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg","sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"username":{"name":"username","type":"option","char":"u","description":"authentication username","required":true},"jwtkeyfile":{"name":"jwtkeyfile","type":"option","char":"f","description":"path to a file containing the private key","required":true},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on"},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[]},"auth:sfdxurl:store":{"id":"auth:sfdxurl:store","description":"Authorize an org using an SFDX auth URL\nAuthorize a Salesforce org using an SFDX auth URL stored within a file. The URL must have the format \"force://<refreshToken>@<instanceUrl>\" or \"force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>\".\nYou have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file.\nFor example, using an org you have already authorized:\n\n $ sfdx force:org:display -u <DevHub> --verbose --json > authFile.json\n $ sfdx auth:sfdxurl:store -f authFile.json\n\nThe resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object.\nYou can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL.\nFinally, you can create a normal text file that includes just the URL and nothing else.","usage":"<%= command.id %> -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:sfdxurl:store"],"examples":["sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>","sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sfdxurlfile":{"name":"sfdxurlfile","type":"option","char":"f","description":"path to a file containing the sfdx url","required":true},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[]},"auth:web:login":{"id":"auth:web:login","description":"authorize an org using the web login flow\nIf you specify an --instanceurl 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://test.salesforce.com.","usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:web:login"],"examples":["sfdx auth:web:login -a TestOrg1","sfdx auth:web:login -i <OAuth client id>","sfdx auth:web:login -r https://test.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on"},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[]}}}
1
+ {"version":"1.8.0","commands":{"auth:list":{"id":"auth:list","description":"list auth connection information","usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:list"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[]},"auth:logout":{"id":"auth:logout","description":"log out from authorized orgs\nBy default, this command logs you out from your default scratch org.","usage":"<%= command.id %> [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:logout"],"examples":["sfdx auth:logout -u me@my.org","sfdx auth:logout -a","sfdx auth:logout -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"all":{"name":"all","type":"boolean","char":"a","description":"include all authenticated orgs","required":false,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[]},"auth:accesstoken:store":{"id":"auth:accesstoken:store","description":"authorize an org using an existing Salesforce access token\nBy default, the command runs interactively and asks you for the access token. If you previously authorized the org, the command prompts whether you want to overwrite the local file. Specify --noprompt to not be prompted.\nTo use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the command with the --noprompt parameter. \"<org id>!<accesstoken>\"","usage":"<%= command.id %> -r <url> [-s] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:accesstoken:store"],"examples":["sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com","export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx","sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","required":true},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"s","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[]},"auth:device:login":{"id":"auth:device:login","description":"authorize an org using a device code\nYou must open a browser, navigate to the verification URL, and enter the code. Log in, if not already logged in, and you’ll be prompted to allow the device to connect to the org.","usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:device:login"],"examples":["sfdx auth:device:login -d -a TestOrg1","sfdx auth:device:login -i <OAuth client id>","sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on"},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false}},"args":[]},"auth:jwt:grant":{"id":"auth:jwt:grant","description":"authorize an org using the JWT flow\nUse a certificate associated with your private key that has been uploaded to a personal connected app.\nIf you specify an --instanceurl 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 specify a sandbox, set --instanceurl to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.","usage":"<%= command.id %> -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:jwt:grant"],"examples":["sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>","sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg","sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"username":{"name":"username","type":"option","char":"u","description":"authentication username","required":true},"jwtkeyfile":{"name":"jwtkeyfile","type":"option","char":"f","description":"path to a file containing the private key","required":true},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on"},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[]},"auth:sfdxurl:store":{"id":"auth:sfdxurl:store","description":"authorize an org using an SFDX auth URL stored within a file\nThe SFDX auth URL must have the format \"force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>\". NOTE: The SFDX auth URL uses the \"force\" protocol, and not \"http\" or \"https\". Also, the \"instanceUrl\" inside the SFDX auth URL doesn't include the protocol (\"https://\").\n\nYou have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx force:org:display --verbose --json` command into a file. For example, using an org you have already authorized:\n\n $ sfdx force:org:display -u <OrgUsername> --verbose --json > authFile.json\n $ sfdx auth:sfdxurl:store -f authFile.json\n\nThe resulting JSON file contains the URL in the sfdxAuthUrl property inside of a results object. NOTE: The `force:org:display --verbose` command displays the refresh token only for orgs authorized with the web server flow, and not the JWT bearer flow. \n\nYou can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the auth URL. Finally, you can create a normal text file that includes just the URL and nothing else.","usage":"<%= command.id %> -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:sfdxurl:store"],"examples":["sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>","sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sfdxurlfile":{"name":"sfdxurlfile","type":"option","char":"f","description":"path to a file containing the sfdx url","required":true},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[]},"auth:web:login":{"id":"auth:web:login","description":"authorize an org using the web login flow\nIf you specify an --instanceurl 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.","usage":"<%= command.id %> [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginType":"core","aliases":["force:auth:web:login"],"examples":["sfdx auth:web:login -a TestOrg1","sfdx auth:web:login -i <OAuth client id>","sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)"},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on"},"setdefaultdevhubusername":{"name":"setdefaultdevhubusername","type":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"set an alias for the authenticated org"},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","hidden":true,"required":false,"allowNo":false}},"args":[]}}}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-auth",
3
3
  "description": "plugin for sfdx auth commands",
4
- "version": "1.7.4",
4
+ "version": "1.8.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
- "@oclif/config": "^1.17.0",
9
- "@salesforce/command": "^4.1.3",
10
- "@salesforce/core": "^2.28.0",
8
+ "@oclif/config": "^1.18.1",
9
+ "@salesforce/command": "^4.2.0",
10
+ "@salesforce/core": "^2.31.0",
11
11
  "@salesforce/kit": "^1.5.17",
12
12
  "chalk": "^4.1.2",
13
13
  "open": "^8.2.1",
@@ -18,7 +18,7 @@
18
18
  "@oclif/plugin-command-snapshot": "^2.2.2",
19
19
  "@salesforce/cli-plugins-testkit": "^1.4.10",
20
20
  "@salesforce/dev-config": "^2.1.2",
21
- "@salesforce/dev-scripts": "0.9.18",
21
+ "@salesforce/dev-scripts": "^1.0.0",
22
22
  "@salesforce/plugin-command-reference": "^1.3.16",
23
23
  "@salesforce/plugin-config": "^1.2.5",
24
24
  "@salesforce/prettier-config": "^0.0.2",
@@ -36,10 +36,10 @@
36
36
  "eslint-config-salesforce-license": "^0.1.6",
37
37
  "eslint-config-salesforce-typescript": "^0.2.7",
38
38
  "eslint-plugin-header": "^3.0.0",
39
- "eslint-plugin-import": "2.24.2",
39
+ "eslint-plugin-import": "2.25.2",
40
40
  "eslint-plugin-jsdoc": "^35.1.2",
41
41
  "eslint-plugin-prettier": "^3.4.0",
42
- "husky": "^4.3.8",
42
+ "husky": "^7.0.4",
43
43
  "lint-staged": "^11.0.0",
44
44
  "mocha": "^8.4.0",
45
45
  "nyc": "^15.1.0",
@@ -127,18 +127,11 @@
127
127
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
128
128
  "version": "oclif-dev readme"
129
129
  },
130
- "husky": {
131
- "hooks": {
132
- "pre-commit": "sf-husky-pre-commit",
133
- "commit-msg": "sf-husky-commit-msg",
134
- "pre-push": "sf-husky-pre-push"
135
- }
136
- },
137
130
  "publishConfig": {
138
131
  "access": "public"
139
132
  },
140
133
  "sfdx": {
141
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/1.7.4.crt",
142
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/1.7.4.sig"
134
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/1.8.0.crt",
135
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/1.8.0.sig"
143
136
  }
144
137
  }