@salesforce/plugin-org 2.2.24 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +4 -0
  2. package/lib/commands/force/org/clone.d.ts +21 -9
  3. package/lib/commands/force/org/clone.js +52 -83
  4. package/lib/commands/force/org/clone.js.map +1 -1
  5. package/lib/commands/force/org/create.d.ts +27 -12
  6. package/lib/commands/force/org/create.js +87 -106
  7. package/lib/commands/force/org/create.js.map +1 -1
  8. package/lib/commands/force/org/delete.d.ts +14 -7
  9. package/lib/commands/force/org/delete.js +26 -16
  10. package/lib/commands/force/org/delete.js.map +1 -1
  11. package/lib/commands/force/org/status.d.ts +18 -6
  12. package/lib/commands/force/org/status.js +43 -37
  13. package/lib/commands/force/org/status.js.map +1 -1
  14. package/lib/commands/org/create/sandbox.d.ts +40 -0
  15. package/lib/commands/org/create/sandbox.js +245 -0
  16. package/lib/commands/org/create/sandbox.js.map +1 -0
  17. package/lib/commands/org/create/scratch.d.ts +30 -0
  18. package/lib/commands/org/create/scratch.js +183 -0
  19. package/lib/commands/org/create/scratch.js.map +1 -0
  20. package/lib/commands/org/delete/sandbox.d.ts +18 -0
  21. package/lib/commands/org/delete/sandbox.js +59 -0
  22. package/lib/commands/org/delete/sandbox.js.map +1 -0
  23. package/lib/commands/org/delete/scratch.d.ts +18 -0
  24. package/lib/commands/org/delete/scratch.js +52 -0
  25. package/lib/commands/org/delete/scratch.js.map +1 -0
  26. package/lib/commands/org/display.d.ts +20 -0
  27. package/lib/commands/{force/org → org}/display.js +38 -27
  28. package/lib/commands/org/display.js.map +1 -0
  29. package/lib/commands/org/list.d.ts +26 -0
  30. package/lib/commands/org/list.js +192 -0
  31. package/lib/commands/org/list.js.map +1 -0
  32. package/lib/commands/org/open.d.ts +25 -0
  33. package/lib/commands/{force/org → org}/open.js +47 -33
  34. package/lib/commands/org/open.js.map +1 -0
  35. package/lib/commands/org/resume/sandbox.d.ts +26 -0
  36. package/lib/commands/org/resume/sandbox.js +199 -0
  37. package/lib/commands/org/resume/sandbox.js.map +1 -0
  38. package/lib/commands/org/resume/scratch.d.ts +14 -0
  39. package/lib/commands/org/resume/scratch.js +61 -0
  40. package/lib/commands/org/resume/scratch.js.map +1 -0
  41. package/lib/shared/orgHighlighter.d.ts +2 -2
  42. package/lib/shared/orgHighlighter.js +7 -5
  43. package/lib/shared/orgHighlighter.js.map +1 -1
  44. package/lib/shared/orgHooks.d.ts +24 -0
  45. package/lib/shared/orgHooks.js +9 -0
  46. package/lib/shared/orgHooks.js.map +1 -0
  47. package/lib/shared/orgListUtil.d.ts +15 -25
  48. package/lib/shared/orgListUtil.js +71 -81
  49. package/lib/shared/orgListUtil.js.map +1 -1
  50. package/lib/shared/orgTypes.d.ts +39 -11
  51. package/lib/shared/sandboxCommandBase.d.ts +33 -0
  52. package/lib/shared/sandboxCommandBase.js +168 -0
  53. package/lib/shared/sandboxCommandBase.js.map +1 -0
  54. package/lib/shared/sandboxProgress.d.ts +28 -0
  55. package/lib/shared/sandboxProgress.js +104 -0
  56. package/lib/shared/sandboxProgress.js.map +1 -0
  57. package/lib/shared/sandboxReporter.d.ts +1 -1
  58. package/lib/shared/sandboxRequest.d.ts +9 -0
  59. package/lib/shared/sandboxRequest.js +58 -0
  60. package/lib/shared/sandboxRequest.js.map +1 -0
  61. package/lib/shared/scratchOrgOutput.d.ts +9 -0
  62. package/lib/shared/scratchOrgOutput.js +47 -0
  63. package/lib/shared/scratchOrgOutput.js.map +1 -0
  64. package/lib/shared/stagedProgress.d.ts +33 -0
  65. package/lib/shared/stagedProgress.js +98 -0
  66. package/lib/shared/stagedProgress.js.map +1 -0
  67. package/lib/shared/timeUtils.d.ts +10 -0
  68. package/lib/shared/timeUtils.js +37 -0
  69. package/lib/shared/timeUtils.js.map +1 -0
  70. package/lib/shared/utils.d.ts +1 -1
  71. package/lib/shared/utils.js.map +1 -1
  72. package/messages/clone.md +67 -0
  73. package/messages/create.md +125 -0
  74. package/messages/create.sandbox.md +123 -0
  75. package/messages/create_scratch.md +109 -0
  76. package/messages/delete.md +47 -0
  77. package/messages/delete_sandbox.md +46 -0
  78. package/messages/delete_scratch.md +42 -0
  79. package/messages/display.md +33 -0
  80. package/messages/list.md +65 -0
  81. package/messages/messages.md +81 -0
  82. package/messages/open.md +63 -0
  83. package/messages/resume.sandbox.md +71 -0
  84. package/messages/resume_scratch.md +41 -0
  85. package/messages/sandboxbase.md +17 -0
  86. package/messages/status.md +33 -0
  87. package/oclif.manifest.json +1191 -1
  88. package/package.json +136 -26
  89. package/lib/commands/force/org/display.d.ts +0 -11
  90. package/lib/commands/force/org/display.js.map +0 -1
  91. package/lib/commands/force/org/list.d.ts +0 -15
  92. package/lib/commands/force/org/list.js +0 -191
  93. package/lib/commands/force/org/list.js.map +0 -1
  94. package/lib/commands/force/org/open.d.ts +0 -15
  95. package/lib/commands/force/org/open.js.map +0 -1
  96. package/messages/clone.json +0 -24
  97. package/messages/create.json +0 -37
  98. package/messages/delete.json +0 -13
  99. package/messages/display.json +0 -11
  100. package/messages/list.json +0 -19
  101. package/messages/messages.json +0 -24
  102. package/messages/open.json +0 -19
  103. package/messages/status.json +0 -13
@@ -0,0 +1,65 @@
1
+ # summary
2
+
3
+ List all orgs you’ve created or authenticated to.
4
+
5
+ # examples
6
+
7
+ - List all orgs you've created or authenticated to:
8
+
9
+ $ <%= config.bin %> <%= command.id %>
10
+
11
+ - List all orgs, including expired, deleted, and unknown-status orgs; don't include the connection status:
12
+
13
+ $ <%= config.bin %> <%= command.id %> --skip-connection-status --all
14
+
15
+ - List orgs and remove local org authorization info about non-active scratch orgs:
16
+
17
+ $ <%= config.bin %> <%= command.id %> --clean
18
+
19
+ # flags.verbose.summary
20
+
21
+ List more information about each org.
22
+
23
+ # flags.all.summary
24
+
25
+ Include expired, deleted, and unknown-status scratch orgs.
26
+
27
+ # flags.clean.summary
28
+
29
+ Remove all local org authorizations for non-active scratch orgs. Use auth:logout to remove non-scratch orgs.
30
+
31
+ # flags.noPrompt.summary
32
+
33
+ Don't prompt for confirmation.
34
+
35
+ # flags.skipConnectionStatus.summary
36
+
37
+ Skip retrieving the connection status of non-scratch orgs.
38
+
39
+ # prompt
40
+
41
+ Found (%s) org configurations to delete. Are you sure (yes/no)?
42
+
43
+ # noActiveScratchOrgs
44
+
45
+ No active scratch orgs found. Specify --all to see all scratch orgs.
46
+
47
+ # deleteOrgs
48
+
49
+ You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run org:list --clean.
50
+
51
+ # noOrgsFound
52
+
53
+ No orgs can be found.
54
+
55
+ # noOrgsFoundAction
56
+
57
+ Use one of the auth commands or org:create:scratch to add or create a scratch org.
58
+
59
+ # noResultsFound
60
+
61
+ No non-scratch orgs found.
62
+
63
+ # cleanWarning
64
+
65
+ Unable to clean org with username %s. You can run "sfdx org:delete:scratch -o %s" to remove it.`
@@ -0,0 +1,81 @@
1
+ # HelpDefaults
2
+
3
+ If not supplied, the apiversion, template, and outputdir use default values.
4
+
5
+ # HelpOutputDirRelative
6
+
7
+ The outputdir can be an absolute path or relative to the current working directory.
8
+
9
+ # HelpOutputDirRelativeLightning
10
+
11
+ If you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.
12
+
13
+ # HelpExamplesTitle
14
+
15
+ Examples:
16
+
17
+ # OutputDirFlagDescription
18
+
19
+ folder for saving the created files
20
+
21
+ # OutputDirFlagLongDescription
22
+
23
+ The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.
24
+
25
+ # TemplateFlagDescription
26
+
27
+ template to use for file creation
28
+
29
+ # TemplateFlagLongDescription
30
+
31
+ The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.
32
+
33
+ # TargetDirOutput
34
+
35
+ target dir = %s
36
+
37
+ # App
38
+
39
+ app
40
+
41
+ # Event
42
+
43
+ event
44
+
45
+ # Interface
46
+
47
+ interface
48
+
49
+ # Test
50
+
51
+ test
52
+
53
+ # Component
54
+
55
+ component
56
+
57
+ # Page
58
+
59
+ page
60
+
61
+ # AlphaNumericNameError
62
+
63
+ Name must contain only alphanumeric characters.
64
+
65
+ # NameMustStartWithLetterError
66
+
67
+ Name must start with a letter.
68
+
69
+ # EndWithUnderscoreError
70
+
71
+ Name can't end with an underscore.
72
+
73
+ # DoubleUnderscoreError
74
+
75
+ Name can't contain 2 consecutive underscores.
76
+
77
+ # SecurityWarning
78
+
79
+ This command will expose sensitive information that allows for subsequent activity using your current authenticated session.
80
+ Sharing this information is equivalent to logging someone in under the current credential, resulting in unintended access and escalation of privilege.
81
+ For additional information, please review the authorization section of the https://developer.salesforce.com/docs/atlas.en-us.234.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm
@@ -0,0 +1,63 @@
1
+ # summary
2
+
3
+ Open your default scratch org, or another specified org, in a browser.
4
+
5
+ # description
6
+
7
+ To open a specific page, specify the portion of the URL after "https://MyDomainName.my.salesforce.com/" as the value for the --path flag. For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a Visualforce page.
8
+
9
+ To generate a URL but not launch it in your browser, specify --url-only.
10
+
11
+ To open in a specific browser, use the --browser flag. Supported browsers are "chrome", "edge", and "firefox". If you don't specify --browser, the org opens in your default browser.
12
+
13
+ # examples
14
+
15
+ - Open your default org in your default browser:
16
+
17
+ $ <%= config.bin %> <%= command.id %>
18
+
19
+ - Open the org with alias MyTestOrg1 in the Firefox browser:
20
+
21
+ $ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox
22
+
23
+ - Display the navigation URL for the Lightning Experience page for your default org, but don't open the page in a browser:
24
+
25
+ $ <%= config.bin %> <%= command.id %> --url-only --path lightning
26
+
27
+ # flags.browser.summary
28
+
29
+ Browser where the org opens.
30
+
31
+ # flags.path.summary
32
+
33
+ Navigation URL path to open a specific page.
34
+
35
+ # flags.url-only.summary
36
+
37
+ Display navigation URL, but don’t launch browser.
38
+
39
+ # containerAction
40
+
41
+ You are in a headless environment. To access the org %s, open this URL in a browser:
42
+
43
+ %s
44
+
45
+ # humanSuccess
46
+
47
+ Access org %s as user %s with the following URL: %s
48
+
49
+ # humanSuccessNoUrl
50
+
51
+ Opening org %s as user %s
52
+
53
+ # domainWaiting
54
+
55
+ Waiting to resolve the Lightning Experience-enabled custom domain...
56
+
57
+ # domainTimeoutError
58
+
59
+ The Lightning Experience-enabled custom domain is unavailable.
60
+
61
+ # domainTimeoutAction
62
+
63
+ The Lightning Experience-enabled custom domain may take a few more minutes to resolve. Try the "org:open" command again.
@@ -0,0 +1,71 @@
1
+ # summary
2
+
3
+ Check the status of a sandbox creation, and log in to it if it's ready.
4
+
5
+ # description
6
+
7
+ Sandbox creation can take a long time. If the original "<%= config.bin %> org create sandbox" command either times out, or you specified the --async flag, the command displays a job ID. Use this job ID to check whether the sandbox creation is complete, and if it is, the command then logs into it.
8
+
9
+ You can also use the sandbox name to check the status or the --use-most-recent flag to use the job ID of the most recent sandbox creation.
10
+
11
+ # examples
12
+
13
+ - Check the status of a sandbox creation using its name and specify a production org with alias "prodOrg":
14
+
15
+ <%= config.bin %> <%= command.id %> --name mysandbox --target-org prodOrg
16
+
17
+ - Check the status using the job ID:
18
+
19
+ <%= config.bin %> <%= command.id %> --job-id 0GRxxxxxxxx
20
+
21
+ - Check the status of the most recent sandbox create request:
22
+
23
+ <%= config.bin %> <%= command.id %> --use-most-recent
24
+
25
+ # flags.id.summary
26
+
27
+ Job ID of the incomplete sandbox creation that you want to check the status of.
28
+
29
+ # flags.id.description
30
+
31
+ The job ID is valid for 24 hours after you start the sandbox creation.
32
+
33
+ # flags.targetOrg.summary
34
+
35
+ Username or alias of the production org that contains the sandbox license.
36
+
37
+ # flags.targetOrg.description
38
+
39
+ When it creates the sandbox org, Salesforce copies the metadata, and optionally data, from your production org to the new sandbox org.
40
+
41
+ # flags.name.summary
42
+
43
+ Name of the sandbox org.
44
+
45
+ # flags.wait.summary
46
+
47
+ Number of minutes to wait for the sandbox org to be ready.
48
+
49
+ # flags.wait.description
50
+
51
+ If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To resume checking the sandbox creation, rerun this command.
52
+
53
+ # flags.use-most-recent.summary
54
+
55
+ Use the most recent sandbox create request.
56
+
57
+ # error.NoSandboxNameOrJobId
58
+
59
+ No sandbox name or job ID were provided.
60
+
61
+ # error.LatestSandboxRequestNotFound
62
+
63
+ Retry the command using either the --name or --job-id flags.
64
+
65
+ # error.NoSandboxRequestFound
66
+
67
+ Couldn't find a sandbox creation request using the provided sandbox name or job ID.
68
+
69
+ # error.SandboxNameLength
70
+
71
+ The sandbox name "%s" should be 10 or fewer characters.
@@ -0,0 +1,41 @@
1
+ # summary
2
+
3
+ Resume the creation of an incomplete scratch org.
4
+
5
+ # description
6
+
7
+ When the original "<%= config.bin %> org create scratch" command either times out or is run with the --async flag, it displays a job ID.
8
+
9
+ Run this command by either passing it a job ID or using the --use-most-recent flag to specify the most recent incomplete scratch org.
10
+
11
+ # examples
12
+
13
+ - Resume a scratch org create with a job ID:
14
+
15
+ <%= config.bin %> <%= command.id %> --job-id 2SR3u0000008fBDGAY
16
+
17
+ - Resume your most recent incomplete scratch org:
18
+
19
+ <%= config.bin %> <%= command.id %> --use-most-recent
20
+
21
+ # flags.job-id.summary
22
+
23
+ Job ID of the incomplete scratch org create that you want to resume.
24
+
25
+ # flags.job-id.description
26
+
27
+ The job ID is the same as the record ID of the incomplete scratch org in the ScratchOrgInfo object of the Dev Hub.
28
+
29
+ The job ID is valid for 24 hours after you start the scratch org creation.
30
+
31
+ # flags.use-most-recent.summary
32
+
33
+ Use the job ID of the most recent incomplete scratch org.
34
+
35
+ # error.NoRecentJobId
36
+
37
+ There are no recent job IDs (ScratchOrgInfo requests) in your cache. Maybe it completed or already resumed?
38
+
39
+ # success
40
+
41
+ Your scratch org is ready.
@@ -0,0 +1,17 @@
1
+ # sandboxSuccess
2
+
3
+ The sandbox org creation was successful.
4
+
5
+ # sandboxSuccess.actions
6
+
7
+ The username for the sandbox is %s.
8
+ You can open the org by running "%s org open -e %s"
9
+
10
+ # checkSandboxStatus
11
+
12
+ Run "%s org resume sandbox --job-id %s -o %s" to check for status.
13
+ If the org is ready, checking the status also authorizes the org for use with Salesforce CLI.
14
+
15
+ # warning.ClientTimeoutWaitingForSandboxCreate
16
+
17
+ The wait time for the sandbox creation has been exhausted. Please see the results below for more information.
@@ -0,0 +1,33 @@
1
+ # summary
2
+
3
+ Check the status of a sandbox, and if complete, authenticate to it.
4
+
5
+ # examples
6
+
7
+ - $ <%= config.bin %> <%= command.id %> --sandboxname DevSbx1 --setalias MySandbox -u prodOrg
8
+
9
+ - $ <%= config.bin %> <%= command.id %> --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
10
+
11
+ # description
12
+
13
+ Use this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to it.
14
+
15
+ Use the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or clone to complete before returning control of the terminal to you.
16
+
17
+ Set the --target-org (-o) parameter to the username or alias of the production org that contains the sandbox license.
18
+
19
+ # flags.sandboxname
20
+
21
+ Name of the sandbox org to check status for.
22
+
23
+ # flags.wait
24
+
25
+ Number of minutes to wait while polling for status.
26
+
27
+ # flags.setdefaultusername
28
+
29
+ Set the created or cloned org as your default.
30
+
31
+ # flags.setalias
32
+
33
+ Alias for the created or cloned org.