@salesforce/core 4.0.0-v3.0 → 4.0.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 (125) hide show
  1. package/CHANGELOG.md +569 -24
  2. package/LICENSE.txt +1 -1
  3. package/lib/config/config.d.ts +110 -42
  4. package/lib/config/config.js +309 -138
  5. package/lib/config/configAggregator.d.ts +22 -11
  6. package/lib/config/configAggregator.js +50 -26
  7. package/lib/config/configFile.js +10 -10
  8. package/lib/config/configStore.js +15 -14
  9. package/lib/config/envVars.d.ts +96 -0
  10. package/lib/config/envVars.js +433 -0
  11. package/lib/config/keychainConfig.js +1 -1
  12. package/lib/config/orgUsersConfig.d.ts +8 -0
  13. package/lib/config/orgUsersConfig.js +10 -0
  14. package/lib/config/sandboxOrgConfig.d.ts +8 -0
  15. package/lib/config/sandboxOrgConfig.js +10 -0
  16. package/lib/crypto/crypto.js +28 -8
  17. package/lib/crypto/keyChain.js +2 -1
  18. package/lib/crypto/keyChainImpl.js +8 -6
  19. package/lib/crypto/secureBuffer.js +1 -1
  20. package/lib/deviceOauthService.d.ts +3 -3
  21. package/lib/deviceOauthService.js +22 -20
  22. package/lib/exported.d.ts +13 -9
  23. package/lib/exported.js +25 -13
  24. package/lib/global.d.ts +6 -0
  25. package/lib/global.js +7 -1
  26. package/lib/globalInfo/accessors/aliasAccessor.d.ts +83 -0
  27. package/lib/globalInfo/accessors/aliasAccessor.js +130 -0
  28. package/lib/globalInfo/accessors/orgAccessor.d.ts +13 -0
  29. package/lib/globalInfo/accessors/orgAccessor.js +45 -0
  30. package/lib/globalInfo/accessors/tokenAccessor.d.ts +13 -0
  31. package/lib/globalInfo/accessors/tokenAccessor.js +35 -0
  32. package/lib/globalInfo/globalInfoConfig.d.ts +36 -0
  33. package/lib/globalInfo/globalInfoConfig.js +105 -0
  34. package/lib/globalInfo/index.d.ts +6 -0
  35. package/lib/globalInfo/index.js +29 -0
  36. package/lib/{config → globalInfo}/sfdxDataHandler.d.ts +10 -3
  37. package/lib/{config → globalInfo}/sfdxDataHandler.js +71 -19
  38. package/lib/globalInfo/types.d.ts +39 -0
  39. package/lib/globalInfo/types.js +10 -0
  40. package/lib/lifecycleEvents.d.ts +38 -1
  41. package/lib/lifecycleEvents.js +74 -3
  42. package/lib/logger.d.ts +2 -2
  43. package/lib/logger.js +16 -26
  44. package/lib/messages.js +12 -10
  45. package/lib/org/authInfo.d.ts +41 -65
  46. package/lib/org/authInfo.js +138 -233
  47. package/lib/org/authRemover.d.ts +11 -19
  48. package/lib/org/authRemover.js +47 -49
  49. package/lib/org/connection.d.ts +24 -26
  50. package/lib/org/connection.js +77 -92
  51. package/lib/org/index.js +1 -1
  52. package/lib/org/org.d.ts +134 -12
  53. package/lib/org/org.js +436 -97
  54. package/lib/org/orgConfigProperties.d.ts +8 -0
  55. package/lib/org/orgConfigProperties.js +29 -0
  56. package/lib/org/permissionSetAssignment.js +3 -3
  57. package/lib/org/scratchOrgCreate.d.ts +43 -0
  58. package/lib/org/scratchOrgCreate.js +142 -0
  59. package/lib/org/scratchOrgErrorCodes.d.ts +4 -0
  60. package/lib/org/scratchOrgErrorCodes.js +62 -0
  61. package/lib/org/scratchOrgFeatureDeprecation.d.ts +26 -0
  62. package/lib/org/scratchOrgFeatureDeprecation.js +110 -0
  63. package/lib/org/scratchOrgInfoApi.d.ts +94 -0
  64. package/lib/org/scratchOrgInfoApi.js +350 -0
  65. package/lib/org/scratchOrgInfoGenerator.d.ts +63 -0
  66. package/lib/org/scratchOrgInfoGenerator.js +223 -0
  67. package/lib/org/scratchOrgSettingsGenerator.d.ts +56 -0
  68. package/lib/org/scratchOrgSettingsGenerator.js +210 -0
  69. package/lib/org/user.d.ts +6 -1
  70. package/lib/org/user.js +69 -36
  71. package/lib/schema/printer.js +18 -18
  72. package/lib/schema/validator.js +8 -8
  73. package/lib/sfdxError.d.ts +6 -1
  74. package/lib/sfdxError.js +10 -2
  75. package/lib/sfdxProject.js +33 -22
  76. package/lib/status/myDomainResolver.js +6 -6
  77. package/lib/status/pollingClient.d.ts +2 -6
  78. package/lib/status/pollingClient.js +37 -63
  79. package/lib/status/streamingClient.d.ts +5 -80
  80. package/lib/status/streamingClient.js +18 -33
  81. package/lib/status/types.d.ts +89 -0
  82. package/lib/status/types.js +18 -0
  83. package/lib/testSetup.d.ts +7 -5
  84. package/lib/testSetup.js +38 -40
  85. package/lib/util/cache.d.ts +11 -0
  86. package/lib/util/cache.js +70 -0
  87. package/lib/util/checkLightningDomain.d.ts +1 -0
  88. package/lib/util/checkLightningDomain.js +30 -0
  89. package/lib/util/fs.d.ts +3 -0
  90. package/lib/util/fs.js +16 -12
  91. package/lib/util/getJwtAudienceUrl.d.ts +4 -0
  92. package/lib/util/getJwtAudienceUrl.js +19 -0
  93. package/lib/util/jsonXmlTools.d.ts +14 -0
  94. package/lib/util/jsonXmlTools.js +41 -0
  95. package/lib/util/mapKeys.d.ts +14 -0
  96. package/lib/util/mapKeys.js +48 -0
  97. package/lib/util/sfdc.d.ts +1 -13
  98. package/lib/util/sfdc.js +5 -52
  99. package/lib/util/sfdcUrl.d.ts +78 -0
  100. package/lib/util/sfdcUrl.js +206 -0
  101. package/lib/util/zipWriter.d.ts +14 -0
  102. package/lib/util/zipWriter.js +68 -0
  103. package/lib/webOAuthServer.d.ts +2 -3
  104. package/lib/webOAuthServer.js +11 -10
  105. package/messages/auth.md +2 -2
  106. package/messages/config.md +58 -6
  107. package/messages/core.json +3 -3
  108. package/messages/core.md +1 -1
  109. package/messages/envVars.md +279 -0
  110. package/messages/org.md +44 -0
  111. package/messages/scratchOrgCreate.md +27 -0
  112. package/messages/scratchOrgErrorCodes.md +99 -0
  113. package/messages/scratchOrgFeatureDeprecation.md +11 -0
  114. package/messages/scratchOrgInfoApi.md +11 -0
  115. package/messages/scratchOrgInfoGenerator.md +19 -0
  116. package/messages/user.md +12 -0
  117. package/package.json +50 -53
  118. package/lib/config/aliases.d.ts +0 -56
  119. package/lib/config/aliases.js +0 -96
  120. package/lib/config/configGroup.d.ts +0 -141
  121. package/lib/config/configGroup.js +0 -223
  122. package/lib/config/globalInfoConfig.d.ts +0 -74
  123. package/lib/config/globalInfoConfig.js +0 -144
  124. package/lib/status/client.d.ts +0 -15
  125. package/lib/status/client.js +0 -9
@@ -13,6 +13,7 @@ const url_1 = require("url");
13
13
  const net_1 = require("net");
14
14
  const kit_1 = require("@salesforce/kit");
15
15
  const ts_types_1 = require("@salesforce/ts-types");
16
+ const jsforce_1 = require("jsforce");
16
17
  const logger_1 = require("./logger");
17
18
  const authInfo_1 = require("./org/authInfo");
18
19
  const sfdxError_1 = require("./sfdxError");
@@ -58,7 +59,7 @@ class WebOAuthServer extends kit_1.AsyncCreatable {
58
59
  const sfdxProject = await sfdxProject_1.SfdxProjectJson.create();
59
60
  return sfdxProject.get('oauthLocalPort') || WebOAuthServer.DEFAULT_PORT;
60
61
  }
61
- catch (_a) {
62
+ catch {
62
63
  return WebOAuthServer.DEFAULT_PORT;
63
64
  }
64
65
  }
@@ -132,7 +133,7 @@ class WebOAuthServer extends kit_1.AsyncCreatable {
132
133
  if (!this.oauthConfig.redirectUri)
133
134
  this.oauthConfig.redirectUri = `http://localhost:${port}/OauthRedirect`;
134
135
  this.webServer = await WebServer.create({ port });
135
- this.oauth2 = new authInfo_1.OAuth2WithVerifier(this.oauthConfig);
136
+ this.oauth2 = new jsforce_1.OAuth2(this.oauthConfig);
136
137
  this.authUrl = authInfo_1.AuthInfo.getAuthorizationUrl(this.oauthConfig, this.oauth2);
137
138
  }
138
139
  /**
@@ -143,13 +144,13 @@ class WebOAuthServer extends kit_1.AsyncCreatable {
143
144
  async executeOauthRequest() {
144
145
  return new Promise((resolve, reject) => {
145
146
  this.logger.debug('Starting web auth flow');
146
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
147
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises, @typescript-eslint/no-explicit-any
147
148
  this.webServer.server.on('request', async (request, response) => {
148
- const url = url_1.parse(request.url);
149
+ const url = (0, url_1.parse)(request.url);
149
150
  this.logger.debug(`processing request for uri: ${url.pathname}`);
150
151
  if (request.method === 'GET') {
151
152
  if (url.pathname && url.pathname.startsWith('/OauthRedirect')) {
152
- request.query = querystring_1.parse(url.query);
153
+ request.query = (0, querystring_1.parse)(url.query);
153
154
  if (request.query.error) {
154
155
  const err = new sfdxError_1.SfdxError(request.query.error_description || request.query.error, request.query.error);
155
156
  this.webServer.reportError(err, response);
@@ -157,7 +158,7 @@ class WebOAuthServer extends kit_1.AsyncCreatable {
157
158
  }
158
159
  this.logger.debug(`request.query.state: ${request.query.state}`);
159
160
  try {
160
- this.oauthConfig.authCode = ts_types_1.asString(this.parseAuthCodeFromRequest(response, request));
161
+ this.oauthConfig.authCode = (0, ts_types_1.asString)(this.parseAuthCodeFromRequest(response, request));
161
162
  resolve(response);
162
163
  }
163
164
  catch (err) {
@@ -193,9 +194,9 @@ class WebOAuthServer extends kit_1.AsyncCreatable {
193
194
  this.webServer.sendError(400, `${error.message}\n`, response);
194
195
  this.closeRequest(request);
195
196
  this.logger.warn('urlStateMismatchAttempt detected.');
196
- if (!ts_types_1.get(this.webServer.server, 'urlStateMismatchAttempt')) {
197
+ if (!(0, ts_types_1.get)(this.webServer.server, 'urlStateMismatchAttempt')) {
197
198
  this.logger.error(error.message);
198
- kit_1.set(this.webServer.server, 'urlStateMismatchAttempt', true);
199
+ (0, kit_1.set)(this.webServer.server, 'urlStateMismatchAttempt', true);
199
200
  }
200
201
  }
201
202
  else {
@@ -232,7 +233,7 @@ class WebOAuthServer extends kit_1.AsyncCreatable {
232
233
  */
233
234
  validateState(request) {
234
235
  const state = request.query.state;
235
- const query = url_1.parse(this.authUrl, true).query;
236
+ const query = (0, url_1.parse)(this.authUrl, true).query;
236
237
  return !!(state && state === query.state);
237
238
  }
238
239
  }
@@ -371,7 +372,7 @@ class WebServer extends kit_1.AsyncCreatable {
371
372
  */
372
373
  getSocketTimeout() {
373
374
  const env = new kit_1.Env();
374
- const socketTimeout = kit_1.toNumber(env.getNumber('SFDX_HTTP_SOCKET_TIMEOUT'));
375
+ const socketTimeout = (0, kit_1.toNumber)(env.getNumber('SFDX_HTTP_SOCKET_TIMEOUT'));
375
376
  return Number.isInteger(socketTimeout) && socketTimeout > 0
376
377
  ? socketTimeout
377
378
  : WebServer.DEFAULT_CLIENT_SOCKET_TIMEOUT;
package/messages/auth.md CHANGED
@@ -1,8 +1,8 @@
1
- # defaultUsernameNotSet
1
+ # targetOrgNotSet
2
2
 
3
3
  A default user is not set.
4
4
 
5
- # defaultUsernameNotSet.actions
5
+ # targetOrgNotSet.actions
6
6
 
7
7
  - Run the "sfdx auth" commands with --setdefaultusername to connect to an org and set it as your default org.
8
8
  - Run "force:org:create" with --setdefaultusername to create a scratch org and set it as your default org.
@@ -1,10 +1,18 @@
1
1
  # unknownConfigKey
2
2
 
3
- Unknown config name: %s
3
+ Unknown config name: %s.
4
+
5
+ # deprecatedConfigKey
6
+
7
+ Deprecated config name: %s. Please use %s instead.
8
+
9
+ # invalidWrite
10
+
11
+ The writeSync method is not allowed on SfdxConfig. Use the async write method instead.
4
12
 
5
13
  # invalidConfigValue
6
14
 
7
- Invalid config value: %s
15
+ Invalid config value: %s.
8
16
 
9
17
  # invalidInstanceUrl
10
18
 
@@ -14,6 +22,10 @@ Specify a valid Salesforce instance URL.
14
22
 
15
23
  Specify a valid Salesforce API version, for example, 42.0.
16
24
 
25
+ # invalidCustomOrgMetadataTemplates
26
+
27
+ Specify a valid repository URL or directory for the custom org metadata templates.
28
+
17
29
  # invalidIsvDebuggerSid
18
30
 
19
31
  Specify a valid Debugger SID.
@@ -59,10 +71,50 @@ The path "%s", specified in sfdx-project.json, must be indicated as a relative p
59
71
 
60
72
  In sfdx-project.json, indicate only one package directory (path) as the default.
61
73
 
62
- # invalidWrite
63
-
64
- The writeSync method is not allowed on SfdxConfig. Use the async write method instead.
65
-
66
74
  # singleNonDefaultPackage
67
75
 
68
76
  The sfdx-project.json file must include one, and only one, default package directory (path). Because your sfdx-project.json file contains only one package directory, it must be the default. Remove the `"default": false` key and try again.
77
+
78
+ # targetOrg
79
+
80
+ Username or alias of the org that all commands run against by default. (sf only)
81
+
82
+ # targetDevHub
83
+
84
+ Username or alias of your default Dev Hub org. (sf only)
85
+
86
+ # defaultUsername
87
+
88
+ Username or alias of the org that all commands run against by default. (sfdx only)
89
+
90
+ # defaultDevHubUsername
91
+
92
+ Username or alias of your default Dev Hub org. (sfdx only)
93
+
94
+ # isvDebuggerSid
95
+
96
+ ISV debugger SID
97
+
98
+ # isvDebuggerUrl
99
+
100
+ ISV debugger URL
101
+
102
+ # apiVersion
103
+
104
+ API version of your project. Default: API version of your Dev Hub org.
105
+
106
+ # disableTelemetry
107
+
108
+ Disables the collection of usage and user environment information, etc. Default: true.
109
+
110
+ # maxQueryLimit
111
+
112
+ Maximum number of Salesforce records returned by a CLI command. Default: 10,000.
113
+
114
+ # restDeploy
115
+
116
+ Whether deployments use the Metadata REST API (true) or SOAP API (false, default value).
117
+
118
+ # instanceUrl
119
+
120
+ URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com.
@@ -12,9 +12,9 @@
12
12
  "OrgDataNotAvailableErrorAction2": "Use `sfdx force:config:set` to update the defaultusername.",
13
13
  "OrgDataNotAvailableErrorAction3": "Use `sfdx force:org:create` to create a new org.",
14
14
  "OrgDataNotAvailableErrorAction4": "Use `sfdx force:auth` to authenticate an existing org.",
15
- "NamedOrgNotFound": "No AuthInfo found for name %s",
16
- "NoAliasesFound": "Nothing to set",
17
- "InvalidFormat": "Setting aliases must be in the format <key>=<value> but found: [%s]",
15
+ "NamedOrgNotFound": "No authorization information found for %s %s.",
16
+ "NoAliasesFound": "Nothing to set.",
17
+ "InvalidFormat": "Setting aliases must be in the format <key>=<value> but found: [%s].",
18
18
  "NoAuthInfoFound": "No authorization information can be found.",
19
19
  "InvalidJsonCasing": "All JSON input must have heads down camelcase keys. E.g., { sfdcLoginUrl: \"https://login.salesforce.com\" }\nFound \"%s\" at %s"
20
20
  }
package/messages/core.md CHANGED
@@ -41,7 +41,7 @@ An attempt to refresh the authentication token failed with a 'Data Not Found Err
41
41
 
42
42
  # namedOrgNotFound
43
43
 
44
- No AuthInfo found for name %s.
44
+ No authorization information found for %s.
45
45
 
46
46
  # noAliasesFound
47
47
 
@@ -0,0 +1,279 @@
1
+ # forceOpenUrl
2
+
3
+ Web page that opens in your browser when you connect to an org. For example, to open Lightning Experience, set to "lightning".
4
+
5
+ # forceShowSpinner
6
+
7
+ Set to true to show a spinner animation on the command line when running asynchronous CLI commands. Default is false.
8
+
9
+ # forceSpinnerDelay
10
+
11
+ Speed of the spinner in milliseconds. Default is 60.
12
+
13
+ # httpProxy
14
+
15
+ HTTP URL and port of the proxy server when using Salesforce CLI behind a corporate firewall or web proxy.
16
+
17
+ # httpsProxy
18
+
19
+ HTTPS URL and port of the proxy server when using Salesforce CLI behind a corporate firewall or web proxy.
20
+
21
+ # nodeExtraCaCerts
22
+
23
+ Fully qualified path to your self-signed certificate. Will be installed after you run "sfdx update".
24
+
25
+ # nodeTlsRejectUnauthorized
26
+
27
+ Set to 0 to allow Node.js to use the self-signed certificate in the certificate chain.
28
+
29
+ # sfdxAccessToken
30
+
31
+ Specifies an access token when using the auth:accesstoken:store command.
32
+
33
+ # sfdxApiVersion
34
+
35
+ The API version for a specific project or all projects. Default value is the API version of your Dev Hub. Overrides the apiVersion config value.
36
+
37
+ # sfdxAudienceUrl
38
+
39
+ URL that overrides the aud (audience) field used for JWT authentication so that it matches the expected value of the authorization server URL for the org you’re logging into.
40
+
41
+ # sfdxCodeCoverageRequirement
42
+
43
+ Code coverage percentages that are displayed in green when you run force:apex:test:\* with the --codecoverage parameter.
44
+
45
+ # sfdxContentType
46
+
47
+ Set to JSON so that all CLI commands output results in JSON format.
48
+
49
+ # sfdxDefaultdevhubusername
50
+
51
+ Username or alias of your default Dev Hub org. Overrides the defaultdevhubusername configuration value.
52
+
53
+ # sfdxDefaultusername
54
+
55
+ Username or alias of your default org. Overrides the defaultusername configuration value.
56
+
57
+ # sfdxDisableAutoupdate
58
+
59
+ Set to true to disable the auto-update feature of Salesforce CLI. Default value is false.
60
+
61
+ # sfdxAutoupdateDisable
62
+
63
+ Set to true to disable the auto-update feature of Salesforce CLI. Default value is false.
64
+
65
+ # sfdxDisableSourceMemberPolling
66
+
67
+ Set to true to disable polling of your org’s SourceMember object when you run the force:source:push|pull commands. Default value is false.
68
+
69
+ # sfdxDisableTelemetry
70
+
71
+ Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configration variable.
72
+
73
+ # sfdxDnsTimeout
74
+
75
+ Number of seconds that the force:org:\* commands wait for a response when checking whether an org is connected. Default value is 3.
76
+
77
+ # sfdxDomainRetry
78
+
79
+ Time, in seconds, that Salesforce CLI waits for the Lightning Experience custom domain to resolve and become available in a scratch org. Default value is 240.
80
+
81
+ # sfdxImprovedCodeCoverage
82
+
83
+ Set to true to scope Apex test results to the classes entered during a test run when running force:apex:test:\*.
84
+
85
+ # sfdxInstanceUrl
86
+
87
+ URL of the Salesforce instance that is hosting your org. Default value is https://login.salesforce.com. Overrides the instanceUrl configuration value.
88
+
89
+ # sfdxJsonToStdout
90
+
91
+ Set to true to send messages resulting from failed Salesforce CLI commands to stdout instead of stderr.
92
+
93
+ # sfdxLogLevel
94
+
95
+ Level of messages that the CLI writes to the log file. Valid values are trace, debug, info, warn, error, fatal. Default value is warn.
96
+
97
+ # sfdxMaxQueryLimit
98
+
99
+ Maximum number of Salesforce records returned by a CLI command. Default value is 10,000. Overrides the maxQueryLimit configuration value.
100
+
101
+ # sfdxMdapiTempDir
102
+
103
+ Directory that contains files (in metadata format) when running certain Salesforce CLI commands, such as force:source:\*.
104
+
105
+ # sfdxNpmRegistry
106
+
107
+ URL to a private npm server, where all packages that you publish are private.
108
+
109
+ # sfdxPrecompileEnable
110
+
111
+ Set to true to enable Apex pre-compile before the tests are run with the force:apex:test:run command. Default is false.
112
+
113
+ # sfdxProjectAutoupdateDisableForPackageCreate
114
+
115
+ Set to true to disable automatic updates to sfdx-project.json when running force:package:create.
116
+
117
+ # sfdxProjectAutoupdateDisableForPackageVersionCreate
118
+
119
+ Set to true to disable automatic updates to sfdx-project.json when running force:package:version:create.
120
+
121
+ # sfdxRestDeploy
122
+
123
+ Set to true to make Salesforce CLI use the Metadata REST API for deployments. By default, the CLI uses SOAP.
124
+
125
+ # sfdxSourceMemberPollingTimeout
126
+
127
+ Number of seconds you want the force:source:push command to keep polling the SourceMember object before the command times out.
128
+
129
+ # sfdxUseGenericUnixKeychain
130
+
131
+ (Linux and macOS only) Set to true if you want to use the generic UNIX keychain instead of the Linux libsecret library or macOS keychain.
132
+
133
+ # sfdxUseProgressBar
134
+
135
+ Set to false to disable the progress bar when running force:mdapi:deploy, force:source:deploy, or force:source:push.
136
+
137
+ # sfdxLazyLoadModules
138
+
139
+ Set to true to enable lazy loading of sfdx modules
140
+
141
+ # sfdxS3Host
142
+
143
+ URL to S3 host
144
+
145
+ # sfdxUpdateInstructions
146
+
147
+ Text that describes how to update sfdx
148
+
149
+ # sfdxInstaller
150
+
151
+ Boolean indicating that the installer is running
152
+
153
+ # sfdxEnv
154
+
155
+ Describes if sfdx is in "demo" mode
156
+
157
+ # sfTargetOrg
158
+
159
+ Username or alias of your default org. Overrides the target-org configuration variable.
160
+
161
+ # sfTargetDevHub
162
+
163
+ Username or alias of your default Dev Hub org. Overrides the target-dev-hub configuration variable.
164
+
165
+ # sfAccessToken
166
+
167
+ Specifies an access token when using a login command that uses access tokens.
168
+
169
+ # sfApiVersion
170
+
171
+ API version for a specific project or all projects. Default value is the API version of your Dev Hub. Overrides the apiVersion configuration variable.
172
+
173
+ # sfAudienceUrl
174
+
175
+ URL that overrides the aud (audience) field used for JWT authentication so that it matches the expected value of the authorization server URL for the org you’re logging into.
176
+
177
+ # sfCodeCoverageRequirement
178
+
179
+ Code coverage percentages that are displayed in green when you run the Apex test CLIcommands with the --code-coverage flag.
180
+
181
+ # sfContentType
182
+
183
+ Set to JSON so that all CLI commands output results in JSON format.
184
+
185
+ # sfDisableAutoupdate
186
+
187
+ Set to true to disable the auto-update feature of Salesforce CLI. Default value is false.
188
+
189
+ # sfAutoupdateDisable
190
+
191
+ Set to true to disable the auto-update feature of Salesforce CLI. Default value is false.
192
+
193
+ # sfDisableSourceMemberPolling
194
+
195
+ Set to true to disable polling of your org’s SourceMember object when you run the commands to push and pull source. Default value is false.
196
+
197
+ # sfDisableTelemetry
198
+
199
+ Set to true to disable Salesforce CLI from collecting usage information, user environment information, and crash reports. Default value is false. Overrides the disableTelemetry configration variable.
200
+
201
+ # sfDnsTimeout
202
+
203
+ Number of seconds that the env commands wait for a response when checking whether an org is connected. Default value is 3.
204
+
205
+ # sfDomainRetry
206
+
207
+ Time, in seconds, that Salesforce CLI waits for the Lightning Experience custom domain to resolve and become available in a scratch org. Default value is 240.
208
+
209
+ # sfImprovedCodeCoverage
210
+
211
+ Set to true to scope Apex test results to the classes entered during a test run when running the Apex test commands.
212
+
213
+ # sfInstanceUrl
214
+
215
+ URL of the Salesforce instance that is hosting your org. Default value is https://login.salesforce.com. Overrides the instanceUrl configuration variable.
216
+
217
+ # sfJsonToStdout
218
+
219
+ Set to true to send messages resulting from failed Salesforce CLI commands to stdout instead of stderr.
220
+
221
+ # sfLogLevel
222
+
223
+ Level of messages that the CLI writes to the log file. Valid values are trace, debug, info, warn, error, fatal. Default value is warn.
224
+
225
+ # sfMaxQueryLimit
226
+
227
+ Maximum number of Salesforce records returned by a CLI command. Default value is 10,000. Overrides the maxQueryLimit configuration variable.
228
+
229
+ # sfMdapiTempDir
230
+
231
+ Directory that contains files (in metadata format) when running certain Salesforce CLI commands.
232
+
233
+ # sfNpmRegistry
234
+
235
+ URL to a private npm server, where all packages that you publish are private.
236
+
237
+ # sfPrecompileEnable
238
+
239
+ Set to true to enable Apex pre-compile before the tests are run with the Apex test run command. Default is false.
240
+
241
+ # sfProjectAutoupdateDisableForPackageCreate
242
+
243
+ Set to true to disable automatic updates to sfdx-project.json when running the package create command.
244
+
245
+ # sfProjectAutoupdateDisableForPackageVersionCreate
246
+
247
+ Set to true to disable automatic updates to sfdx-project.json when running the package version create command.
248
+
249
+ # sfSourceMemberPollingTimeout
250
+
251
+ Number of seconds you want the source push command to keep polling the SourceMember object before the command times out.
252
+
253
+ # sfUseGenericUnixKeychain
254
+
255
+ (Linux and macOS only) Set to true if you want to use the generic UNIX keychain instead of the Linux libsecret library or macOS keychain.
256
+
257
+ # sfUseProgressBar
258
+
259
+ Set to false to disable the progress bar when running the metadata deploy command.
260
+
261
+ # sfLazyLoadModules
262
+
263
+ Set to true to enable lazy loading of sf modules
264
+
265
+ # sfS3Host
266
+
267
+ URL to S3 host
268
+
269
+ # sfUpdateInstructions
270
+
271
+ Text that describes how to update sf
272
+
273
+ # sfInstaller
274
+
275
+ Boolean indicating that the installer is running
276
+
277
+ # sfEnv
278
+
279
+ Describes if sf is in "demo" mode
package/messages/org.md CHANGED
@@ -1,3 +1,47 @@
1
1
  # notADevHub
2
2
 
3
3
  The provided dev hub username %s is not a valid dev hub.
4
+
5
+ # noUsernameFound
6
+
7
+ No username found.
8
+
9
+ # noDevHubFound
10
+
11
+ Unable to associate this scratch org with a DevHub.
12
+
13
+ # deleteOrgHubError
14
+
15
+ The Dev Hub org cannot be deleted.
16
+
17
+ # insufficientAccessToDelete
18
+
19
+ You do not have the appropriate permissions to delete a scratch org. Please contact your Salesforce admin.
20
+
21
+ # scratchOrgNotFound
22
+
23
+ Attempting to delete an expired or deleted org
24
+
25
+ # sandboxDeleteFailed
26
+
27
+ The sandbox org deletion failed with a result of %s.
28
+
29
+ # sandboxNotFound
30
+
31
+ We can't find a SandboxProcess for the sandbox org %s.
32
+
33
+ # sandboxInfoCreateFailed
34
+
35
+ The sandbox org creation failed with a result of %s.
36
+
37
+ # missingAuthUsername
38
+
39
+ The sandbox %s does not have an authorized username.
40
+
41
+ # orgPollingTimeout
42
+
43
+ Sandbox status is %s; timed out waiting for completion.
44
+
45
+ # NotFoundOnDevHub
46
+
47
+ The scratch org does not belong to the dev hub username %s.
@@ -0,0 +1,27 @@
1
+ # UnsupportedSnapshotOrgCreateOptionsError
2
+
3
+ Org snapshots don’t support one or more options you specified: %s.
4
+
5
+ # SourceStatusResetFailureError
6
+
7
+ Successfully created org with ID: %s and name: %s. Unfortunately, source tracking isn’t working as expected. If you run force:source:status, the results may be incorrect. Try again by creating another scratch org.
8
+
9
+ # DurationDaysValidationMinError
10
+
11
+ Expected 'durationDays' greater than or equal to %s but received %s.
12
+
13
+ # DurationDaysValidationMaxError
14
+
15
+ Expected 'durationDays' less than or equal to %s but received %s.
16
+
17
+ # DurationDaysNotIntError
18
+
19
+ Expected 'durationDays' to be an integer number.
20
+
21
+ # RetryNotIntError
22
+
23
+ Expected 'retry' to be an integer number.
24
+
25
+ # WaitValidationMaxError
26
+
27
+ Expected 'wait' greater than or equal to %s but received %s.
@@ -0,0 +1,99 @@
1
+ # SignupFailedError
2
+
3
+ The request to create a scratch org failed with error code: %s.
4
+
5
+ # SignupFailedUnknownError
6
+
7
+ An unknown server error occurred. Please try again. If you still see this error, contact Salesforce support for assistance. Include the information from 'sfdx force:data:record:get -s ScratchOrgInfo -i %s -u %s'.
8
+
9
+ # SignupFailedActionError
10
+
11
+ See https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_signuprequest.htm for information on error code %s.
12
+
13
+ # SignupUnexpectedError
14
+
15
+ The request to create a scratch org returned an unexpected status
16
+
17
+ # INVALID_ID_FIELD
18
+
19
+ Provide a valid template ID, in the format 0TTxxxxxxxxxxxx.
20
+
21
+ # T-0002
22
+
23
+ We couldn’t find a template or snapshot with the ID or name specified in the scratch org definition. If you’re sure the ID is correct, contact Salesforce Support.
24
+
25
+ # T-0003
26
+
27
+ The template specified in the scratch org definition is unapproved. Contact Salesforce Support to request template approval.
28
+
29
+ # T-0004
30
+
31
+ The Trialforce Source Organization (TSO) for the template doesn’t exist or has expired.
32
+
33
+ # S-1006
34
+
35
+ Provide a valid email address in your scratch org definition or your %s file.
36
+
37
+ # S-2006
38
+
39
+ Provide a valid country code in your scratch org definition or your %s file.
40
+
41
+ # S-1017
42
+
43
+ Specify a namespace that’s used by a release org associated with your Dev Hub org.
44
+
45
+ # S-1018
46
+
47
+ Provide a valid My Domain value. This value can’t include double hyphens, end in a hyphen, include restricted words, or be more than 40 characters long.
48
+
49
+ # S-1019
50
+
51
+ The My Domain value you chose is already in use.
52
+
53
+ # S-1026
54
+
55
+ Provide a valid namespace value. This value must begin with a letter. It can’t include consecutive underscores, end in an underscore, be more than 15 characters long, or be a restricted or reserved namespace. Only alphanumeric characters and underscores are allowed.
56
+
57
+ # S-9999
58
+
59
+ A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance.
60
+
61
+ # SH-0001
62
+
63
+ Can’t create scratch org. Contact the source org admin to add your Dev Hub org ID to Setup > Org Shape. Then try again.
64
+
65
+ # SH-0002
66
+
67
+ Can’t create scratch org. No org shape exists for the specified sourceOrg. Create an org shape and try again.
68
+
69
+ # SH-0003
70
+
71
+ Can’t create scratch org from org shape. The org shape version is outdated. Recreate the org shape and try again.
72
+
73
+ # C-1007
74
+
75
+ The username provided to the org:create command is already in use. Run 'force:org:list --clean' to remove stale org authentications or create the org with a different username.
76
+
77
+ # C-1015
78
+
79
+ We encountered a problem while registering your My Domain value with the DNS provider. Please try again.
80
+
81
+ # C-1016
82
+
83
+ We encountered a problem while attempting to configure and approve the Connected App for your org. Verify the Connected App configuration with your Salesforce admin.
84
+
85
+ # C-1017
86
+
87
+ Provide a valid namespace prefix. This value must begin with a letter. It can’t include consecutive underscores, end in an underscore, be more than 15 characters long, or be a restricted or reserved namespace. Only alphanumeric characters and underscores are allowed.
88
+
89
+ # C-1020
90
+
91
+ We couldn't find a template with the ID specified in the scratch org definition. If you’re sure the ID is correct, contact Salesforce Support.
92
+
93
+ # C-1027
94
+
95
+ The template specified in the Scratch Definition isn’t supported. Specify a generic edition (such as Developer or Enterprise), or specify a template ID.
96
+
97
+ # C-9999
98
+
99
+ A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance
@@ -0,0 +1,11 @@
1
+ # quantifiedFeatureWithoutQuantityWarning
2
+
3
+ The feature %s will be deprecated in a future release. It's been replaced by %s:<value>, which requires you to specify a quantity.
4
+
5
+ # mappedFeatureWarning
6
+
7
+ The feature %s has been deprecated. It has been replaced with %s in this scratch org create request.
8
+
9
+ # deprecatedFeatureWarning
10
+
11
+ The feature %s has been deprecated. It has been removed from the list of requested features.
@@ -0,0 +1,11 @@
1
+ # SignupFieldsMissingError
2
+
3
+ Required fields are missing for org creation: [%s]
4
+
5
+ # SignupDuplicateSettingsSpecifiedError
6
+
7
+ You cannot use 'settings' and `'orgPreferences' in your scratch definition file, please specify one or the other.
8
+
9
+ # DeprecatedPrefFormat
10
+
11
+ We've deprecated OrgPreferences. Update the scratch org definition file to replace OrgPreferences with their corresponding settings.