@salesforce/plugin-org 5.10.14 → 5.11.1
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/README.md +154 -17
- package/lib/commands/org/auth/show-access-token.d.ts +14 -0
- package/lib/commands/org/auth/show-access-token.js +69 -0
- package/lib/commands/org/auth/show-access-token.js.map +1 -0
- package/lib/commands/org/auth/show-sfdx-auth-url.d.ts +14 -0
- package/lib/commands/org/auth/show-sfdx-auth-url.js +60 -0
- package/lib/commands/org/auth/show-sfdx-auth-url.js.map +1 -0
- package/lib/commands/org/auth/show-user-password.d.ts +14 -0
- package/lib/commands/org/auth/show-user-password.js +59 -0
- package/lib/commands/org/auth/show-user-password.js.map +1 -0
- package/lib/commands/org/create/scratch.js +30 -3
- package/lib/commands/org/create/scratch.js.map +1 -1
- package/lib/commands/org/display.js +31 -5
- package/lib/commands/org/display.js.map +1 -1
- package/lib/commands/org/list.js +12 -1
- package/lib/commands/org/list.js.map +1 -1
- package/lib/commands/org/resume/scratch.js +30 -2
- package/lib/commands/org/resume/scratch.js.map +1 -1
- package/lib/shared/orgListUtil.js +22 -7
- package/lib/shared/orgListUtil.js.map +1 -1
- package/messages/org.auth.show-access-token.md +41 -0
- package/messages/org.auth.show-sfdx-auth-url.md +41 -0
- package/messages/org.auth.show-user-password.md +43 -0
- package/messages/secrets-redacted.md +19 -0
- package/oclif.manifest.json +214 -1
- package/package.json +6 -3
package/oclif.manifest.json
CHANGED
|
@@ -385,6 +385,219 @@
|
|
|
385
385
|
"open:org"
|
|
386
386
|
]
|
|
387
387
|
},
|
|
388
|
+
"org:auth:show-access-token": {
|
|
389
|
+
"aliases": [],
|
|
390
|
+
"args": {},
|
|
391
|
+
"description": "Because access tokens are sensitive credentials that grant full access to an org, this command prompts for confirmation before revealing the token. Skip confirmation by specifying either the --no-prompt or --json flag.",
|
|
392
|
+
"examples": [
|
|
393
|
+
"Show the access token for the default org:\n<%= config.bin %> <%= command.id %>",
|
|
394
|
+
"Show the access token for an org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --target-org my-org",
|
|
395
|
+
"Show the access token without the confirmation prompt:\n<%= config.bin %> <%= command.id %> --target-org my-org --no-prompt",
|
|
396
|
+
"Get the access token as JSON for use in scripts:\n<%= config.bin %> <%= command.id %> --target-org my-org --json"
|
|
397
|
+
],
|
|
398
|
+
"flags": {
|
|
399
|
+
"json": {
|
|
400
|
+
"description": "Format output as json.",
|
|
401
|
+
"helpGroup": "GLOBAL",
|
|
402
|
+
"name": "json",
|
|
403
|
+
"allowNo": false,
|
|
404
|
+
"type": "boolean"
|
|
405
|
+
},
|
|
406
|
+
"flags-dir": {
|
|
407
|
+
"helpGroup": "GLOBAL",
|
|
408
|
+
"name": "flags-dir",
|
|
409
|
+
"summary": "Import flag values from a directory.",
|
|
410
|
+
"hasDynamicHelp": false,
|
|
411
|
+
"multiple": false,
|
|
412
|
+
"type": "option"
|
|
413
|
+
},
|
|
414
|
+
"target-org": {
|
|
415
|
+
"char": "o",
|
|
416
|
+
"name": "target-org",
|
|
417
|
+
"noCacheDefault": true,
|
|
418
|
+
"required": true,
|
|
419
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
420
|
+
"hasDynamicHelp": true,
|
|
421
|
+
"multiple": false,
|
|
422
|
+
"type": "option"
|
|
423
|
+
},
|
|
424
|
+
"no-prompt": {
|
|
425
|
+
"char": "p",
|
|
426
|
+
"name": "no-prompt",
|
|
427
|
+
"summary": "Skip the security warning and reveal the access token without confirmation.",
|
|
428
|
+
"allowNo": false,
|
|
429
|
+
"type": "boolean"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"hasDynamicHelp": true,
|
|
433
|
+
"hiddenAliases": [],
|
|
434
|
+
"id": "org:auth:show-access-token",
|
|
435
|
+
"pluginAlias": "@salesforce/plugin-org",
|
|
436
|
+
"pluginName": "@salesforce/plugin-org",
|
|
437
|
+
"pluginType": "core",
|
|
438
|
+
"strict": true,
|
|
439
|
+
"summary": "Show the current access token for an org.",
|
|
440
|
+
"enableJsonFlag": true,
|
|
441
|
+
"isESM": true,
|
|
442
|
+
"relativePath": [
|
|
443
|
+
"lib",
|
|
444
|
+
"commands",
|
|
445
|
+
"org",
|
|
446
|
+
"auth",
|
|
447
|
+
"show-access-token.js"
|
|
448
|
+
],
|
|
449
|
+
"aliasPermutations": [],
|
|
450
|
+
"permutations": [
|
|
451
|
+
"org:auth:show-access-token",
|
|
452
|
+
"auth:org:show-access-token",
|
|
453
|
+
"auth:show-access-token:org",
|
|
454
|
+
"org:show-access-token:auth",
|
|
455
|
+
"show-access-token:org:auth",
|
|
456
|
+
"show-access-token:auth:org"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"org:auth:show-sfdx-auth-url": {
|
|
460
|
+
"aliases": [],
|
|
461
|
+
"args": {},
|
|
462
|
+
"description": "Shows the SFDX Auth URL for an org. This URL is only available for orgs authenticated via a web-based OAuth flow. This command prompts for confirmation before revealing it. Skip confirmation by specifying either the --no-prompt or --json flag.",
|
|
463
|
+
"examples": [
|
|
464
|
+
"Show the SFDX Auth URL for the default org:\n<%= config.bin %> <%= command.id %>",
|
|
465
|
+
"Show the SFDX Auth URL for an org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --target-org my-org",
|
|
466
|
+
"Show the SFDX Auth URL without the confirmation prompt:\n<%= config.bin %> <%= command.id %> --target-org my-org --no-prompt",
|
|
467
|
+
"Get the SFDX Auth URL as JSON for use in scripts:\n<%= config.bin %> <%= command.id %> --target-org my-org --json"
|
|
468
|
+
],
|
|
469
|
+
"flags": {
|
|
470
|
+
"json": {
|
|
471
|
+
"description": "Format output as json.",
|
|
472
|
+
"helpGroup": "GLOBAL",
|
|
473
|
+
"name": "json",
|
|
474
|
+
"allowNo": false,
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
},
|
|
477
|
+
"flags-dir": {
|
|
478
|
+
"helpGroup": "GLOBAL",
|
|
479
|
+
"name": "flags-dir",
|
|
480
|
+
"summary": "Import flag values from a directory.",
|
|
481
|
+
"hasDynamicHelp": false,
|
|
482
|
+
"multiple": false,
|
|
483
|
+
"type": "option"
|
|
484
|
+
},
|
|
485
|
+
"target-org": {
|
|
486
|
+
"char": "o",
|
|
487
|
+
"name": "target-org",
|
|
488
|
+
"noCacheDefault": true,
|
|
489
|
+
"required": true,
|
|
490
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
491
|
+
"hasDynamicHelp": true,
|
|
492
|
+
"multiple": false,
|
|
493
|
+
"type": "option"
|
|
494
|
+
},
|
|
495
|
+
"no-prompt": {
|
|
496
|
+
"char": "p",
|
|
497
|
+
"name": "no-prompt",
|
|
498
|
+
"summary": "Skip the security warning and reveal the SFDX Auth URL without confirmation.",
|
|
499
|
+
"allowNo": false,
|
|
500
|
+
"type": "boolean"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"hasDynamicHelp": true,
|
|
504
|
+
"hiddenAliases": [],
|
|
505
|
+
"id": "org:auth:show-sfdx-auth-url",
|
|
506
|
+
"pluginAlias": "@salesforce/plugin-org",
|
|
507
|
+
"pluginName": "@salesforce/plugin-org",
|
|
508
|
+
"pluginType": "core",
|
|
509
|
+
"strict": true,
|
|
510
|
+
"summary": "Show the SFDX Auth URL for an org.",
|
|
511
|
+
"enableJsonFlag": true,
|
|
512
|
+
"isESM": true,
|
|
513
|
+
"relativePath": [
|
|
514
|
+
"lib",
|
|
515
|
+
"commands",
|
|
516
|
+
"org",
|
|
517
|
+
"auth",
|
|
518
|
+
"show-sfdx-auth-url.js"
|
|
519
|
+
],
|
|
520
|
+
"aliasPermutations": [],
|
|
521
|
+
"permutations": [
|
|
522
|
+
"org:auth:show-sfdx-auth-url",
|
|
523
|
+
"auth:org:show-sfdx-auth-url",
|
|
524
|
+
"auth:show-sfdx-auth-url:org",
|
|
525
|
+
"org:show-sfdx-auth-url:auth",
|
|
526
|
+
"show-sfdx-auth-url:org:auth",
|
|
527
|
+
"show-sfdx-auth-url:auth:org"
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"org:auth:show-user-password": {
|
|
531
|
+
"aliases": [],
|
|
532
|
+
"args": {},
|
|
533
|
+
"description": "This command shows only passwords that were generated locally in your DX project with either the \"org generate password\" or \"org create user\" CLI command. If you generated a password for a user in Setup in your org, you can't show it with this command.\n\nBecause passwords are sensitive credentials, this command prompts for confirmation before revealing it. Skip confirmation by specifying either the --no-prompt or --json flag.",
|
|
534
|
+
"examples": [
|
|
535
|
+
"Show the password for the default org's user:\n<%= config.bin %> <%= command.id %>",
|
|
536
|
+
"Show the password for an org with alias \"my-org\":\n<%= config.bin %> <%= command.id %> --target-org my-org",
|
|
537
|
+
"Show the password without the confirmation prompt:\n<%= config.bin %> <%= command.id %> --target-org my-org --no-prompt",
|
|
538
|
+
"Get the password as JSON for use in scripts:\n<%= config.bin %> <%= command.id %> --target-org my-org --json"
|
|
539
|
+
],
|
|
540
|
+
"flags": {
|
|
541
|
+
"json": {
|
|
542
|
+
"description": "Format output as json.",
|
|
543
|
+
"helpGroup": "GLOBAL",
|
|
544
|
+
"name": "json",
|
|
545
|
+
"allowNo": false,
|
|
546
|
+
"type": "boolean"
|
|
547
|
+
},
|
|
548
|
+
"flags-dir": {
|
|
549
|
+
"helpGroup": "GLOBAL",
|
|
550
|
+
"name": "flags-dir",
|
|
551
|
+
"summary": "Import flag values from a directory.",
|
|
552
|
+
"hasDynamicHelp": false,
|
|
553
|
+
"multiple": false,
|
|
554
|
+
"type": "option"
|
|
555
|
+
},
|
|
556
|
+
"target-org": {
|
|
557
|
+
"char": "o",
|
|
558
|
+
"name": "target-org",
|
|
559
|
+
"noCacheDefault": true,
|
|
560
|
+
"required": true,
|
|
561
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
562
|
+
"hasDynamicHelp": true,
|
|
563
|
+
"multiple": false,
|
|
564
|
+
"type": "option"
|
|
565
|
+
},
|
|
566
|
+
"no-prompt": {
|
|
567
|
+
"char": "p",
|
|
568
|
+
"name": "no-prompt",
|
|
569
|
+
"summary": "Skip the security warning and reveal the password without confirmation.",
|
|
570
|
+
"allowNo": false,
|
|
571
|
+
"type": "boolean"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"hasDynamicHelp": true,
|
|
575
|
+
"hiddenAliases": [],
|
|
576
|
+
"id": "org:auth:show-user-password",
|
|
577
|
+
"pluginAlias": "@salesforce/plugin-org",
|
|
578
|
+
"pluginName": "@salesforce/plugin-org",
|
|
579
|
+
"pluginType": "core",
|
|
580
|
+
"strict": true,
|
|
581
|
+
"summary": "Show the stored password for an org's user.",
|
|
582
|
+
"enableJsonFlag": true,
|
|
583
|
+
"isESM": true,
|
|
584
|
+
"relativePath": [
|
|
585
|
+
"lib",
|
|
586
|
+
"commands",
|
|
587
|
+
"org",
|
|
588
|
+
"auth",
|
|
589
|
+
"show-user-password.js"
|
|
590
|
+
],
|
|
591
|
+
"aliasPermutations": [],
|
|
592
|
+
"permutations": [
|
|
593
|
+
"org:auth:show-user-password",
|
|
594
|
+
"auth:org:show-user-password",
|
|
595
|
+
"auth:show-user-password:org",
|
|
596
|
+
"org:show-user-password:auth",
|
|
597
|
+
"show-user-password:org:auth",
|
|
598
|
+
"show-user-password:auth:org"
|
|
599
|
+
]
|
|
600
|
+
},
|
|
388
601
|
"org:create:agent-user": {
|
|
389
602
|
"aliases": [],
|
|
390
603
|
"args": {},
|
|
@@ -2098,5 +2311,5 @@
|
|
|
2098
2311
|
]
|
|
2099
2312
|
}
|
|
2100
2313
|
},
|
|
2101
|
-
"version": "5.
|
|
2314
|
+
"version": "5.11.1"
|
|
2102
2315
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "Commands to interact with Salesforce orgs",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.11.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"enableO11y": true,
|
|
@@ -80,6 +80,9 @@
|
|
|
80
80
|
},
|
|
81
81
|
"disable": {
|
|
82
82
|
"description": "Disable source tracking in an org."
|
|
83
|
+
},
|
|
84
|
+
"auth": {
|
|
85
|
+
"description": "Commands for printing sensitive auth info."
|
|
83
86
|
}
|
|
84
87
|
},
|
|
85
88
|
"external": true
|
|
@@ -230,7 +233,7 @@
|
|
|
230
233
|
"exports": "./lib/index.js",
|
|
231
234
|
"type": "module",
|
|
232
235
|
"sfdx": {
|
|
233
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.
|
|
234
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.
|
|
236
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.11.1.crt",
|
|
237
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.11.1.sig"
|
|
235
238
|
}
|
|
236
239
|
}
|