@salesforce/plugin-auth 2.0.0 → 2.0.3
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 +23 -0
- package/README.md +9 -9
- package/lib/commands/auth/logout.js +1 -2
- package/lib/commands/auth/logout.js.map +1 -1
- package/messages/accesstoken.store.json +3 -2
- package/messages/device.login.json +3 -3
- package/messages/jwt.grant.json +3 -3
- package/messages/logout.json +1 -1
- package/messages/sfdxurl.store.json +2 -2
- package/messages/web.login.json +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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
|
+
### [2.0.3](https://github.com/salesforcecli/plugin-auth/compare/v2.0.2...v2.0.3) (2022-05-20)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- add prompt to example in messages ([dbbb69e](https://github.com/salesforcecli/plugin-auth/commit/dbbb69e9540796c051847203c7398c1731ba40e2))
|
|
10
|
+
- add prompt to examples ([a7ddc31](https://github.com/salesforcecli/plugin-auth/commit/a7ddc31a8567d0a0064125a4b3966c6564702333))
|
|
11
|
+
- add prompt to examples ([753ee39](https://github.com/salesforcecli/plugin-auth/commit/753ee39c9548b6e8a25380021fde0a2e3ab6f811))
|
|
12
|
+
- add prompt to examples ([db042db](https://github.com/salesforcecli/plugin-auth/commit/db042db69126f428fcd06cbf4c150d89052d8379))
|
|
13
|
+
- add prompt to examples ([4110039](https://github.com/salesforcecli/plugin-auth/commit/41100398c99d67970145f9ff8907000ca5a60b7d))
|
|
14
|
+
- add prompt to examples ([75c41bd](https://github.com/salesforcecli/plugin-auth/commit/75c41bde49f707708865bdb320d8e6c7281b3239))
|
|
15
|
+
|
|
16
|
+
### [2.0.2](https://github.com/salesforcecli/plugin-auth/compare/v2.0.1...v2.0.2) (2022-04-21)
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- use configAgg on command ([#391](https://github.com/salesforcecli/plugin-auth/issues/391)) ([1e0a29c](https://github.com/salesforcecli/plugin-auth/commit/1e0a29c5209b9c4a907962123f6df85af0850197))
|
|
21
|
+
|
|
22
|
+
### [2.0.1](https://github.com/salesforcecli/plugin-auth/compare/v2.0.0...v2.0.1) (2022-04-21)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- force a new release ([#390](https://github.com/salesforcecli/plugin-auth/issues/390)) ([0fc1e05](https://github.com/salesforcecli/plugin-auth/commit/0fc1e0592073a75fd5bf8adf1de832643c530657))
|
|
27
|
+
|
|
5
28
|
## [2.0.0](https://github.com/salesforcecli/plugin-auth/compare/v1.8.2...v2.0.0) (2022-04-11)
|
|
6
29
|
|
|
7
30
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -125,12 +125,12 @@ ALIASES
|
|
|
125
125
|
EXAMPLES
|
|
126
126
|
$ sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com
|
|
127
127
|
|
|
128
|
-
export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx
|
|
128
|
+
$ export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx
|
|
129
129
|
|
|
130
130
|
$ sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
_See code: [src/commands/auth/accesstoken/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.
|
|
133
|
+
_See code: [src/commands/auth/accesstoken/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.2/src/commands/auth/accesstoken/store.ts)_
|
|
134
134
|
|
|
135
135
|
## `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]`
|
|
136
136
|
|
|
@@ -175,7 +175,7 @@ EXAMPLES
|
|
|
175
175
|
$ sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
_See code: [src/commands/auth/device/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.
|
|
178
|
+
_See code: [src/commands/auth/device/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.2/src/commands/auth/device/login.ts)_
|
|
179
179
|
|
|
180
180
|
## `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]`
|
|
181
181
|
|
|
@@ -226,7 +226,7 @@ EXAMPLES
|
|
|
226
226
|
$ sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com
|
|
227
227
|
```
|
|
228
228
|
|
|
229
|
-
_See code: [src/commands/auth/jwt/grant.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.
|
|
229
|
+
_See code: [src/commands/auth/jwt/grant.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.2/src/commands/auth/jwt/grant.ts)_
|
|
230
230
|
|
|
231
231
|
## `sfdx auth:list [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
232
232
|
|
|
@@ -248,7 +248,7 @@ ALIASES
|
|
|
248
248
|
$ sfdx force:auth:list
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
-
_See code: [src/commands/auth/list.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.
|
|
251
|
+
_See code: [src/commands/auth/list.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.2/src/commands/auth/list.ts)_
|
|
252
252
|
|
|
253
253
|
## `sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
254
254
|
|
|
@@ -286,7 +286,7 @@ EXAMPLES
|
|
|
286
286
|
$ sfdx auth:logout -p
|
|
287
287
|
```
|
|
288
288
|
|
|
289
|
-
_See code: [src/commands/auth/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.
|
|
289
|
+
_See code: [src/commands/auth/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.2/src/commands/auth/logout.ts)_
|
|
290
290
|
|
|
291
291
|
## `sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
292
292
|
|
|
@@ -342,7 +342,7 @@ EXAMPLES
|
|
|
342
342
|
$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg
|
|
343
343
|
```
|
|
344
344
|
|
|
345
|
-
_See code: [src/commands/auth/sfdxurl/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.
|
|
345
|
+
_See code: [src/commands/auth/sfdxurl/store.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.2/src/commands/auth/sfdxurl/store.ts)_
|
|
346
346
|
|
|
347
347
|
## `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]`
|
|
348
348
|
|
|
@@ -388,7 +388,7 @@ EXAMPLES
|
|
|
388
388
|
$ sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com
|
|
389
389
|
```
|
|
390
390
|
|
|
391
|
-
_See code: [src/commands/auth/web/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.
|
|
391
|
+
_See code: [src/commands/auth/web/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v2.0.2/src/commands/auth/web/login.ts)_
|
|
392
392
|
|
|
393
393
|
## `sfdx force:auth:accesstoken:store -r <url> [-d] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
394
394
|
|
|
@@ -430,7 +430,7 @@ ALIASES
|
|
|
430
430
|
EXAMPLES
|
|
431
431
|
$ sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com
|
|
432
432
|
|
|
433
|
-
export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx
|
|
433
|
+
$ export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx
|
|
434
434
|
|
|
435
435
|
$ sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt
|
|
436
436
|
```
|
|
@@ -19,10 +19,9 @@ class Logout extends command_1.SfdxCommand {
|
|
|
19
19
|
throw new core_1.SfError(messages.getMessage('specifiedBothUserAndAllError'), 'SpecifiedBothUserAndAllError');
|
|
20
20
|
}
|
|
21
21
|
const remover = await core_1.AuthRemover.create();
|
|
22
|
-
const ca = core_1.ConfigAggregator.getInstance();
|
|
23
22
|
const targetUsername = this.flags.targetusername
|
|
24
23
|
? this.flags.targetusername
|
|
25
|
-
:
|
|
24
|
+
: this.configAggregator.getInfo(core_1.OrgConfigProperties.TARGET_ORG).value;
|
|
26
25
|
let usernames;
|
|
27
26
|
try {
|
|
28
27
|
usernames = this.shouldFindAllAuths()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.js","sourceRoot":"","sources":["../../../src/commands/auth/logout.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"logout.js","sourceRoot":"","sources":["../../../src/commands/auth/logout.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yBAAyB;AACzB,2CAAqG;AACrG,iDAAsE;AACtE,2CAAwC;AAExC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CAAC;AAC5E,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAEpF,MAAqB,MAAO,SAAQ,qBAAW;IAoBtC,KAAK,CAAC,GAAG;QACd,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;YAC/C,MAAM,IAAI,cAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,8BAA8B,CAAC,CAAC;SACxG;QAED,MAAM,OAAO,GAAG,MAAM,kBAAW,CAAC,MAAM,EAAE,CAAC;QAE3C,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc;YAC9C,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,cAAyB;YACvC,CAAC,CAAE,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,0BAAmB,CAAC,UAAU,CAAC,CAAC,KAAgB,CAAC;QACpF,IAAI,SAAmB,CAAC;QACxB,IAAI;YACF,SAAS,GAAG,IAAI,CAAC,kBAAkB,EAAE;gBACnC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;gBACrC,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;SACzD;QAAC,OAAO,CAAC,EAAE;YACV,wCAAwC;YACxC,MAAM,GAAG,GAAG,CAAU,CAAC;YACvB,GAAG,CAAC,IAAI,GAAG,YAAY,CAAC;YACxB,MAAM,cAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACzB;QAED,IAAI,MAAM,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE;YAC1C,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;gBAChC,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;aACpC;YACD,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACtF,OAAO,SAAS,CAAC;SAClB;aAAM;YACL,OAAO,EAAE,CAAC;SACX;IACH,CAAC;IAEO,kBAAkB;QACxB,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,IAAI,aAAM,CAAC,kBAAkB,EAAE,KAAK,WAAI,CAAC,IAAI,CAAC,CAAC;IACvG,CAAC;IAEO,KAAK,CAAC,gBAAgB,CAAC,SAAmB;QAChD,MAAM,YAAY,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9C,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;QACxE,OAAO,iBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;;AA7DH,yBA8DC;AA7DwB,kBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,eAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AACzD,uBAAgB,GAAG,IAAI,CAAC;AACjC,cAAO,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAEvB,kBAAW,GAAgB;IAChD,GAAG,EAAE,eAAK,CAAC,OAAO,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;QACvC,eAAe,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;QAC/C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACF,QAAQ,EAAE,eAAK,CAAC,OAAO,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC;QAClD,QAAQ,EAAE,KAAK;KAChB,CAAC;CACH,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"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.",
|
|
3
3
|
"examples": [
|
|
4
|
-
"sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com",
|
|
5
|
-
"export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx
|
|
4
|
+
"$ sfdx auth:accesstoken:store --instanceurl https://mycompany.my.salesforce.com",
|
|
5
|
+
"$ export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxx",
|
|
6
|
+
"$ sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com --noprompt"
|
|
6
7
|
],
|
|
7
8
|
"invalidAccessTokenFormat": "The access token isn't in the correct format.\nIt should follow this pattern: %s."
|
|
8
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"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.",
|
|
3
3
|
"examples": [
|
|
4
|
-
"sfdx auth:device:login -d -a TestOrg1",
|
|
5
|
-
"sfdx auth:device:login -i <OAuth client id>",
|
|
6
|
-
"sfdx auth:device:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"
|
|
4
|
+
"$ sfdx auth:device:login -d -a TestOrg1",
|
|
5
|
+
"$ sfdx auth:device:login -i <OAuth client id>",
|
|
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",
|
package/messages/jwt.grant.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
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
|
-
"sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>",
|
|
5
|
-
"sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg",
|
|
6
|
-
"sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com"
|
|
4
|
+
"$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id>",
|
|
5
|
+
"$ sfdx auth:jwt:grant -u me@my.org -f <path to jwt key file> -i <OAuth client id> -s -a MyDefaultOrg",
|
|
6
|
+
"$ sfdx auth:jwt:grant -u me@acme.org -f <path to jwt key file> -i <OAuth client id> -r https://acme.my.salesforce.com"
|
|
7
7
|
],
|
|
8
8
|
"username": "authentication username",
|
|
9
9
|
"key": "path to a file containing the private key",
|
package/messages/logout.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "log out from authorized orgs\nBy default, this command logs you out from your default scratch org.",
|
|
3
|
-
"examples": ["sfdx auth:logout -u me@my.org", "sfdx auth:logout -a", "sfdx auth:logout -p"],
|
|
3
|
+
"examples": ["$ sfdx auth:logout -u me@my.org", "$ sfdx auth:logout -a", "$ sfdx auth:logout -p"],
|
|
4
4
|
"all": "include all authenticated orgs",
|
|
5
5
|
"allLong": "Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.",
|
|
6
6
|
"logoutCommandYesNo": "Are you sure you want to log out from these org(s)?\n%s\n\nImportant: You need a password to reauthorize scratch orgs. By default, scratch orgs have no password. If you still need your scratch orgs, run \"sfdx force:user:password:generate\" before logging out. If you don't need the scratch orgs anymore, run \"sfdx force:org:delete\" instead of logging out.\n\nLog out (y/n)?",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
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
|
-
"sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>",
|
|
6
|
-
"sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg"
|
|
5
|
+
"$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file>",
|
|
6
|
+
"$ sfdx auth:sfdxurl:store -f <path to sfdxAuthUrl file> -s -a MyDefaultOrg"
|
|
7
7
|
]
|
|
8
8
|
}
|
package/messages/web.login.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
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
|
-
"sfdx auth:web:login -a TestOrg1",
|
|
5
|
-
"sfdx auth:web:login -i <OAuth client id>",
|
|
6
|
-
"sfdx auth:web:login -r https://MyDomainName--SandboxName.sandbox.my.salesforce.com"
|
|
4
|
+
"$ sfdx auth:web:login -a TestOrg1",
|
|
5
|
+
"$ sfdx auth:web:login -i <OAuth client id>",
|
|
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"
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.0.0","commands":{"auth:list":{"id":"auth:list","description":"list auth connection information","strict":true,"usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[],"flagsConfig":{}},"auth:logout":{"id":"auth:logout","description":"log out from authorized orgs\nBy default, this command logs you out from your default scratch org.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"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":[],"supportsUsername":true,"flagsConfig":{"all":{"kind":"boolean","char":"a","description":"include all authenticated orgs","longDescription":"Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.","required":false,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false,"type":"boolean"}}},"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>\"","strict":true,"usage":"<%= command.id %> -r <url> [-d] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"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","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[],"flagsConfig":{"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","default":false,"allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","default":false,"allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"default":false,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"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","multiple":false},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false}},"args":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"jwtkeyfile":{"name":"jwtkeyfile","type":"option","char":"f","description":"path to a file containing the private key","required":true,"multiple":false},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"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","multiple":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":[],"flagsConfig":{"username":{"kind":"string","char":"u","description":"authentication username","required":true,"input":[],"multiple":false,"type":"option"},"jwtkeyfile":{"kind":"filepath","char":"f","description":"path to a file containing the private key","required":true,"input":[],"multiple":false,"type":"option"},"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"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","multiple":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":[],"flagsConfig":{"sfdxurlfile":{"kind":"filepath","char":"f","description":"path to a file containing the sfdx url","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"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","multiple":false},"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":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}}}}
|
|
1
|
+
{"version":"2.0.3","commands":{"auth:list":{"id":"auth:list","description":"list auth connection information","strict":true,"usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@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)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[],"flagsConfig":{}},"auth:logout":{"id":"auth:logout","description":"log out from authorized orgs\nBy default, this command logs you out from your default scratch org.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"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":[],"supportsUsername":true,"flagsConfig":{"all":{"kind":"boolean","char":"a","description":"include all authenticated orgs","longDescription":"Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.","required":false,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false,"type":"boolean"}}},"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>\"","strict":true,"usage":"<%= command.id %> -r <url> [-d] [-s] [-a <string>] [-p] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-auth","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"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","multiple":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"allowNo":false}},"args":[],"flagsConfig":{"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","default":false,"allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","default":false,"allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for confirmation","required":false,"default":false,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"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","multiple":false},"disablemasking":{"name":"disablemasking","type":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false}},"args":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"jwtkeyfile":{"name":"jwtkeyfile","type":"option","char":"f","description":"path to a file containing the private key","required":true,"multiple":false},"clientid":{"name":"clientid","type":"option","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"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","multiple":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":[],"flagsConfig":{"username":{"kind":"string","char":"u","description":"authentication username","required":true,"input":[],"multiple":false,"type":"option"},"jwtkeyfile":{"kind":"filepath","char":"f","description":"path to a file containing the private key","required":true,"input":[],"multiple":false,"type":"option"},"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","required":true,"input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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,"multiple":false},"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","multiple":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":[],"flagsConfig":{"sfdxurlfile":{"kind":"filepath","char":"f","description":"path to a file containing the sfdx url","required":true,"input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}},"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.","strict":true,"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","pluginAlias":"@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)","multiple":false,"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)","multiple":false},"instanceurl":{"name":"instanceurl","type":"option","char":"r","description":"the login URL of the instance the org lives on","multiple":false},"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","multiple":false},"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":[],"flagsConfig":{"clientid":{"kind":"string","char":"i","description":"OAuth client ID (sometimes called the consumer key)","input":[],"multiple":false,"type":"option"},"instanceurl":{"kind":"url","char":"r","description":"the login URL of the instance the org lives on","input":[],"multiple":false,"type":"option"},"setdefaultdevhubusername":{"kind":"boolean","char":"d","description":"set the authenticated org as the default dev hub org for scratch org creation","allowNo":false,"type":"boolean"},"setdefaultusername":{"kind":"boolean","char":"s","description":"set the authenticated org as the default username that all commands run against","allowNo":false,"type":"boolean"},"setalias":{"kind":"string","char":"a","description":"set an alias for the authenticated org","input":[],"multiple":false,"type":"option"},"disablemasking":{"kind":"boolean","description":"disable masking of user input (for use with problematic terminals)","hidden":true,"allowNo":false,"type":"boolean"},"noprompt":{"kind":"boolean","char":"p","description":"do not prompt for auth confirmation in demo mode","required":false,"hidden":true,"allowNo":false,"type":"boolean"}}}}}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-auth",
|
|
3
3
|
"description": "plugin for sfdx auth commands",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@oclif/core": "^1.5.2",
|
|
10
10
|
"@salesforce/command": "^5.0.4",
|
|
11
|
-
"@salesforce/core": "^3.
|
|
11
|
+
"@salesforce/core": "^3.13.0",
|
|
12
12
|
"@salesforce/kit": "^1.5.17",
|
|
13
13
|
"chalk": "^4.1.2",
|
|
14
14
|
"fs-extra": "^10.0.1",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"access": "public"
|
|
138
138
|
},
|
|
139
139
|
"sfdx": {
|
|
140
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.0.
|
|
141
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.0.
|
|
140
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.0.3.crt",
|
|
141
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-auth/2.0.3.sig"
|
|
142
142
|
}
|
|
143
143
|
}
|