@salesforce/plugin-org 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -121,23 +121,25 @@ Create a sandbox org.
121
121
  ```
122
122
  USAGE
123
123
  $ sf org create sandbox -o <value> [--json] [--flags-dir <value>] [-f <value>] [-s] [-a <value>] [-w <minutes> |
124
- --async] [-i <seconds> | ] [-n <value>] [-c <value> | -l Developer|Developer_Pro|Partial|Full] [--no-prompt]
125
- [--no-track-source]
124
+ --async] [-i <seconds> | ] [-n <value>] [--source-sandbox-name <value> | -l Developer|Developer_Pro|Partial|Full |
125
+ --source-id <value>] [--no-prompt] [--no-track-source]
126
126
 
127
127
  FLAGS
128
- -a, --alias=<value> Alias for the sandbox org.
129
- -c, --clone=<value> Name of the sandbox org to clone.
130
- -f, --definition-file=<value> Path to a sandbox definition file.
131
- -i, --poll-interval=<seconds> Number of seconds to wait between retries.
132
- -l, --license-type=<option> Type of sandbox license.
133
- <options: Developer|Developer_Pro|Partial|Full>
134
- -n, --name=<value> Name of the sandbox org.
135
- -o, --target-org=<value> (required) Username or alias of the production org that contains the sandbox license.
136
- -s, --set-default Set the sandbox org as your default org.
137
- -w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
138
- --async Request the sandbox creation, but don't wait for it to complete.
139
- --no-prompt Don't prompt for confirmation about the sandbox configuration.
140
- --no-track-source Do not use source tracking for this sandbox.
128
+ -a, --alias=<value> Alias for the sandbox org.
129
+ -f, --definition-file=<value> Path to a sandbox definition file.
130
+ -i, --poll-interval=<seconds> Number of seconds to wait between retries.
131
+ -l, --license-type=<option> Type of sandbox license.
132
+ <options: Developer|Developer_Pro|Partial|Full>
133
+ -n, --name=<value> Name of the sandbox org.
134
+ -o, --target-org=<value> (required) Username or alias of the production org that contains the sandbox
135
+ license.
136
+ -s, --set-default Set the sandbox org as your default org.
137
+ -w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
138
+ --async Request the sandbox creation, but don't wait for it to complete.
139
+ --no-prompt Don't prompt for confirmation about the sandbox configuration.
140
+ --no-track-source Do not use source tracking for this sandbox.
141
+ --source-id=<value> ID of the sandbox org to clone.
142
+ --source-sandbox-name=<value> Name of the sandbox org to clone.
141
143
 
142
144
  GLOBAL FLAGS
143
145
  --flags-dir=<value> Import flag values from a directory.
@@ -150,8 +152,8 @@ DESCRIPTION
150
152
  --name and --license-type flags to specify the two required options. If you want to set an option other than name or
151
153
  license type, such as apexClassId, you must use a definition file.
152
154
 
153
- You can also use this command to clone an existing sandbox. Use the --clone flag to specify the existing sandbox name
154
- and the --name flag to the name of the new sandbox.
155
+ You can also use this command to clone an existing sandbox. Use the --source-sandbox-name flag to specify the existing
156
+ sandbox name and the --name flag to the name of the new sandbox.
155
157
 
156
158
  ALIASES
157
159
  $ sf env create sandbox
@@ -171,8 +173,8 @@ EXAMPLES
171
173
  Clone the existing sandbox with name "ExistingSandbox" and name the new sandbox "NewClonedSandbox". Set the new
172
174
  sandbox as your default org. Wait for 30 minutes for the sandbox creation to complete.
173
175
 
174
- $ sf org create sandbox --clone ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias \
175
- MyDevSandbox --set-default --wait 30
176
+ $ sf org create sandbox --source-sandbox-name ExistingSandbox --name NewClonedSandbox --target-org prodOrg \
177
+ --alias MyDevSandbox --set-default --wait 30
176
178
 
177
179
  FLAG DESCRIPTIONS
178
180
  -a, --alias=<value> Alias for the sandbox org.
@@ -183,11 +185,6 @@ FLAG DESCRIPTIONS
183
185
  "mysandbox". When you set an alias for a sandbox org, it's assigned to the resulting username of the user running
184
186
  this command.
185
187
 
186
- -c, --clone=<value> Name of the sandbox org to clone.
187
-
188
- The value of --clone must be an existing sandbox. The existing sandbox, and the new sandbox specified with the
189
- --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
190
-
191
188
  -f, --definition-file=<value> Path to a sandbox definition file.
192
189
 
193
190
  The sandbox definition file is a blueprint for the sandbox. You can create different definition files for each
@@ -227,9 +224,24 @@ FLAG DESCRIPTIONS
227
224
  CI/CD jobs, you probably don't want to incur the costs of source tracking (checking for conflicts, polling the
228
225
  SourceMember object, various file system operations.) This is a good use case for disabling source tracking in the
229
226
  sandbox.
227
+
228
+ --source-id=<value> ID of the sandbox org to clone.
229
+
230
+ The value of --source-id must be an existing sandbox. The existing sandbox, and the new sandbox specified with the
231
+ --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
232
+
233
+ You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
234
+
235
+ --source-sandbox-name=<value> Name of the sandbox org to clone.
236
+
237
+ The value of --source-sandbox-name must be an existing sandbox. The existing sandbox, and the new sandbox specified
238
+ with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox
239
+ licenses.
240
+
241
+ You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
230
242
  ```
231
243
 
232
- _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/create/sandbox.ts)_
244
+ _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/create/sandbox.ts)_
233
245
 
234
246
  ## `sf org create scratch`
235
247
 
@@ -383,7 +395,7 @@ FLAG DESCRIPTIONS
383
395
  Omit this flag to have Salesforce generate a unique username for your org.
384
396
  ```
385
397
 
386
- _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/create/scratch.ts)_
398
+ _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/create/scratch.ts)_
387
399
 
388
400
  ## `sf org delete sandbox`
389
401
 
@@ -429,7 +441,7 @@ EXAMPLES
429
441
  $ sf org delete sandbox --target-org my-sandbox --no-prompt
430
442
  ```
431
443
 
432
- _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/delete/sandbox.ts)_
444
+ _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/delete/sandbox.ts)_
433
445
 
434
446
  ## `sf org delete scratch`
435
447
 
@@ -473,7 +485,7 @@ EXAMPLES
473
485
  $ sf org delete scratch --target-org my-scratch-org --no-prompt
474
486
  ```
475
487
 
476
- _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/delete/scratch.ts)_
488
+ _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/delete/scratch.ts)_
477
489
 
478
490
  ## `sf org disable tracking`
479
491
 
@@ -512,7 +524,7 @@ EXAMPLES
512
524
  $ sf org disable tracking
513
525
  ```
514
526
 
515
- _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/disable/tracking.ts)_
527
+ _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/disable/tracking.ts)_
516
528
 
517
529
  ## `sf org display`
518
530
 
@@ -557,7 +569,7 @@ EXAMPLES
557
569
  $ sf org display --target-org TestOrg1 --verbose
558
570
  ```
559
571
 
560
- _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/display.ts)_
572
+ _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/display.ts)_
561
573
 
562
574
  ## `sf org enable tracking`
563
575
 
@@ -599,7 +611,7 @@ EXAMPLES
599
611
  $ sf org enable tracking
600
612
  ```
601
613
 
602
- _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/enable/tracking.ts)_
614
+ _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/enable/tracking.ts)_
603
615
 
604
616
  ## `sf org list`
605
617
 
@@ -638,7 +650,7 @@ EXAMPLES
638
650
  $ sf org list --clean
639
651
  ```
640
652
 
641
- _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/list.ts)_
653
+ _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/list.ts)_
642
654
 
643
655
  ## `sf org list metadata`
644
656
 
@@ -705,7 +717,7 @@ FLAG DESCRIPTIONS
705
717
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
706
718
  ```
707
719
 
708
- _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/list/metadata.ts)_
720
+ _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/list/metadata.ts)_
709
721
 
710
722
  ## `sf org list metadata-types`
711
723
 
@@ -760,7 +772,7 @@ FLAG DESCRIPTIONS
760
772
  Override the api version used for api requests made by this command
761
773
  ```
762
774
 
763
- _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/list/metadata-types.ts)_
775
+ _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/list/metadata-types.ts)_
764
776
 
765
777
  ## `sf org open`
766
778
 
@@ -836,7 +848,7 @@ EXAMPLES
836
848
  $ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
837
849
  ```
838
850
 
839
- _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/open.ts)_
851
+ _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/open.ts)_
840
852
 
841
853
  ## `sf org refresh sandbox`
842
854
 
@@ -913,7 +925,7 @@ FLAG DESCRIPTIONS
913
925
  By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
914
926
  ```
915
927
 
916
- _See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/refresh/sandbox.ts)_
928
+ _See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/refresh/sandbox.ts)_
917
929
 
918
930
  ## `sf org resume sandbox`
919
931
 
@@ -976,7 +988,7 @@ FLAG DESCRIPTIONS
976
988
  returns the job ID. To resume checking the sandbox creation, rerun this command.
977
989
  ```
978
990
 
979
- _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/resume/sandbox.ts)_
991
+ _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/resume/sandbox.ts)_
980
992
 
981
993
  ## `sf org resume scratch`
982
994
 
@@ -1023,6 +1035,6 @@ FLAG DESCRIPTIONS
1023
1035
  The job ID is valid for 24 hours after you start the scratch org creation.
1024
1036
  ```
1025
1037
 
1026
- _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.0.2/src/commands/org/resume/scratch.ts)_
1038
+ _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.1.0/src/commands/org/resume/scratch.ts)_
1027
1039
 
1028
1040
  <!-- commandsstop -->
@@ -16,7 +16,8 @@ export default class CreateSandbox extends SandboxCommandBase<SandboxCommandResp
16
16
  'poll-interval': Interfaces.OptionFlag<Duration, Interfaces.CustomOptions>;
17
17
  async: Interfaces.BooleanFlag<boolean>;
18
18
  name: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
19
- clone: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
19
+ 'source-sandbox-name': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
20
+ 'source-id': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
20
21
  'license-type': Interfaces.OptionFlag<SandboxLicenseType | undefined, Interfaces.CustomOptions>;
21
22
  'target-org': Interfaces.OptionFlag<import("@salesforce/core").Org, Interfaces.CustomOptions>;
22
23
  'no-prompt': Interfaces.BooleanFlag<boolean>;
@@ -30,5 +31,4 @@ export default class CreateSandbox extends SandboxCommandBase<SandboxCommandResp
30
31
  private initSandboxProcessData;
31
32
  private confirmSandboxReq;
32
33
  private validateFlags;
33
- private getSourceId;
34
34
  }
@@ -7,7 +7,7 @@
7
7
  import { Duration } from '@salesforce/kit';
8
8
  import { Flags } from '@salesforce/sf-plugins-core';
9
9
  import { Lifecycle, Messages, SandboxEvents, SfError } from '@salesforce/core';
10
- import requestFunctions from '../../../shared/sandboxRequest.js';
10
+ import requestFunctions, { readSandboxDefFile } from '../../../shared/sandboxRequest.js';
11
11
  import { SandboxCommandBase } from '../../../shared/sandboxCommandBase.js';
12
12
  import { SandboxLicenseType } from '../../../shared/orgTypes.js';
13
13
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
@@ -19,6 +19,7 @@ export default class CreateSandbox extends SandboxCommandBase {
19
19
  static examples = messages.getMessages('examples');
20
20
  static aliases = ['env:create:sandbox'];
21
21
  static deprecateAliases = true;
22
+ // eslint-disable-next-line sf-plugin/spread-base-flags
22
23
  static flags = {
23
24
  // needs to change when new flags are available
24
25
  'definition-file': Flags.file({
@@ -71,18 +72,26 @@ export default class CreateSandbox extends SandboxCommandBase {
71
72
  return Promise.resolve(name);
72
73
  },
73
74
  }),
74
- clone: Flags.string({
75
- char: 'c',
76
- summary: messages.getMessage('flags.clone.summary'),
77
- description: messages.getMessage('flags.clone.description'),
75
+ 'source-sandbox-name': Flags.string({
76
+ summary: messages.getMessage('flags.source-sandbox-name.summary'),
77
+ description: messages.getMessage('flags.source-sandbox-name.description'),
78
+ exclusive: ['license-type', 'source-id'],
79
+ deprecateAliases: true,
80
+ aliases: ['clone', 'c'],
81
+ }),
82
+ 'source-id': Flags.salesforceId({
83
+ summary: messages.getMessage('flags.source-id.summary'),
84
+ description: messages.getMessage('flags.source-id.description'),
78
85
  exclusive: ['license-type'],
86
+ length: 'both',
87
+ char: undefined,
79
88
  }),
80
89
  'license-type': Flags.custom({
81
90
  options: getLicenseTypes(),
82
91
  })({
83
92
  char: 'l',
84
93
  summary: messages.getMessage('flags.licenseType.summary'),
85
- exclusive: ['clone'],
94
+ exclusive: ['source-sandbox-name', 'source-id'],
86
95
  }),
87
96
  'target-org': Flags.requiredOrg({
88
97
  char: 'o',
@@ -118,15 +127,18 @@ export default class CreateSandbox extends SandboxCommandBase {
118
127
  // reuse the existing sandbox request generator, with this command's flags as the varargs
119
128
  const requestOptions = {
120
129
  ...(this.flags.name ? { SandboxName: this.flags.name } : {}),
121
- ...(this.flags.clone ? { SourceSandboxName: this.flags.clone } : {}),
122
- ...(!this.flags.clone && this.flags['license-type'] ? { LicenseType: this.flags['license-type'] } : {}),
130
+ ...(this.flags['source-sandbox-name']
131
+ ? { SourceSandboxName: this.flags['source-sandbox-name'] }
132
+ : this.flags['source-id']
133
+ ? { SourceId: this.flags['source-id'] }
134
+ : {}),
135
+ ...(!this.flags['source-sandbox-name'] && !this.flags['source-id'] && this.flags['license-type']
136
+ ? { LicenseType: this.flags['license-type'] }
137
+ : {}),
123
138
  };
124
- const { sandboxReq } = !this.flags.clone
125
- ? await requestFunctions.createSandboxRequest(false, this.flags['definition-file'], undefined, requestOptions)
126
- : await requestFunctions.createSandboxRequest(true, this.flags['definition-file'], undefined, requestOptions);
139
+ const { sandboxReq, srcSandboxName, srcId } = await requestFunctions.createSandboxRequest(this.flags['definition-file'], undefined, requestOptions);
127
140
  let apexId;
128
141
  let groupId;
129
- // Determine which value to use
130
142
  if (sandboxReq.ApexClassName) {
131
143
  apexId = await requestFunctions.getApexClassIdByName(this.flags['target-org'].getConnection(), sandboxReq.ApexClassName); // convert name to ID
132
144
  delete sandboxReq.ApexClassName;
@@ -137,7 +149,10 @@ export default class CreateSandbox extends SandboxCommandBase {
137
149
  }
138
150
  return {
139
151
  ...sandboxReq,
140
- ...(this.flags.clone ? { SourceId: await this.getSourceId() } : {}),
152
+ ...(srcSandboxName
153
+ ? { SourceId: await requestFunctions.getSrcIdByName(this.flags['target-org'].getConnection(), srcSandboxName) }
154
+ : {}),
155
+ ...(srcId ? { SourceId: srcId } : {}),
141
156
  ...(apexId ? { ApexClassId: apexId } : {}),
142
157
  ...(groupId ? { ActivationUserGroupId: groupId } : {}),
143
158
  };
@@ -153,7 +168,9 @@ export default class CreateSandbox extends SandboxCommandBase {
153
168
  tracksSource: this.flags['no-track-source'] === true ? false : undefined,
154
169
  });
155
170
  const sandboxReq = await this.createSandboxRequest();
156
- await this.confirmSandboxReq({ ...sandboxReq, ...(this.flags.clone ? { CloneSource: this.flags.clone } : {}) });
171
+ await this.confirmSandboxReq({
172
+ ...sandboxReq,
173
+ });
157
174
  this.initSandboxProcessData(sandboxReq);
158
175
  if (!this.flags.async) {
159
176
  this.spinner.start('Sandbox Create');
@@ -232,17 +249,21 @@ export default class CreateSandbox extends SandboxCommandBase {
232
249
  this.flags.wait.seconds,
233
250
  ]);
234
251
  }
235
- }
236
- async getSourceId() {
237
- if (!this.flags.clone) {
252
+ if (!this.flags['definition-file']) {
238
253
  return undefined;
239
254
  }
240
- try {
241
- const sourceOrg = await this.flags['target-org'].querySandboxProcessBySandboxName(this.flags.clone);
242
- return sourceOrg.SandboxInfoId;
255
+ const parsedDef = readSandboxDefFile(this.flags['definition-file']);
256
+ if (this.flags['source-id'] && parsedDef.SourceId) {
257
+ throw messages.createError('error.bothIdFlagAndDefFilePropertyAreProvided');
243
258
  }
244
- catch (err) {
245
- throw messages.createError('error.noCloneSource', [this.flags.clone], [], err);
259
+ if (this.flags['source-sandbox-name'] && parsedDef.SourceSandboxName) {
260
+ throw messages.createError('error.bothNameFlagAndDefFilePropertyAreProvided');
261
+ }
262
+ if (this.flags['source-id'] && parsedDef.SourceSandboxName) {
263
+ throw messages.createError('error.bothIdFlagAndNameDefFileAreNotAllowed');
264
+ }
265
+ if (this.flags['source-sandbox-name'] && parsedDef.SourceId) {
266
+ throw messages.createError('error.bothIdFlagAndNameDefFileAreNotAllowed');
246
267
  }
247
268
  }
248
269
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src/commands/org/create/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAkB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE/F,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAA0B,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AAEnF,MAAM,eAAe,GAAG,GAAa,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAI1E,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,kBAA0C;IAC5E,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAChD,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,CAAU,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACjD,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IAExC,M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C,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACnC,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,SAAS,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACpE,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;YAClD,MAAM,QAAQ,CAAC,WAAW,CAAC,+CAA+C,CAAC,CAAC;QAC9E,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,SAAS,CAAC,iBAAiB,EAAE,CAAC;YACrE,MAAM,QAAQ,CAAC,WAAW,CAAC,iDAAiD,CAAC,CAAC;QAChF,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,SAAS,CAAC,iBAAiB,EAAE,CAAC;YAC3D,MAAM,QAAQ,CAAC,WAAW,CAAC,6CAA6C,CAAC,CAAC;QAC5E,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;YAC5D,MAAM,QAAQ,CAAC,WAAW,CAAC,6CAA6C,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC"}
@@ -3,15 +3,17 @@ export declare const generateSboxName: () => Promise<string>;
3
3
  export declare function readSandboxDefFile(defFile: string): Partial<SandboxInfo & {
4
4
  ApexClassName?: string;
5
5
  ActivationUserGroupName?: string;
6
+ SourceSandboxName?: string;
6
7
  }>;
7
- export declare function createSandboxRequest(isClone: true, definitionFile: string | undefined, logger?: Logger | undefined, properties?: Record<string, string | undefined>): Promise<{
8
+ export declare function createSandboxRequest(definitionFile: string | undefined, logger?: Logger | undefined, properties?: Record<string, string | undefined>): Promise<{
8
9
  sandboxReq: SandboxRequest & {
9
10
  ApexClassName: string | undefined;
10
11
  ActivationUserGroupName: string | undefined;
11
12
  };
12
13
  srcSandboxName: string;
14
+ srcId: string;
13
15
  }>;
14
- export declare function createSandboxRequest(isClone: false, definitionFile: string | undefined, logger?: Logger | undefined, properties?: Record<string, string | undefined>): Promise<{
16
+ export declare function createSandboxRequest(definitionFile: string | undefined, logger?: Logger | undefined, properties?: Record<string, string | undefined>): Promise<{
15
17
  sandboxReq: SandboxRequest & {
16
18
  ApexClassName: string | undefined;
17
19
  ActivationUserGroupName: string | undefined;
@@ -19,11 +21,13 @@ export declare function createSandboxRequest(isClone: false, definitionFile: str
19
21
  }>;
20
22
  export declare function getApexClassIdByName(conn: Connection, className: string): Promise<string | undefined>;
21
23
  export declare function getUserGroupIdByName(conn: Connection, groupName: string): Promise<string | undefined>;
24
+ export declare function getSrcIdByName(conn: Connection, sandboxName: string): Promise<string | undefined>;
22
25
  declare const _default: {
23
26
  createSandboxRequest: typeof createSandboxRequest;
24
27
  generateSboxName: () => Promise<string>;
25
28
  readSandboxDefFile: typeof readSandboxDefFile;
26
29
  getApexClassIdByName: typeof getApexClassIdByName;
27
30
  getUserGroupIdByName: typeof getUserGroupIdByName;
31
+ getSrcIdByName: typeof getSrcIdByName;
28
32
  };
29
33
  export default _default;
@@ -28,9 +28,18 @@ export function readSandboxDefFile(defFile) {
28
28
  if (parsedContent.ActivationUserGroupId && parsedContent.ActivationUserGroupName) {
29
29
  throw cloneMessages.createError('error.bothUserGroupIdAndNameProvided');
30
30
  }
31
+ if (parsedContent.SourceId && parsedContent.SourceSandboxName) {
32
+ throw cloneMessages.createError('error.bothSourceIdAndNameProvided');
33
+ }
34
+ if (parsedContent.SourceId && parsedContent.LicenseType) {
35
+ throw cloneMessages.createError('error.bothSourceIdAndLicenseTypeProvided');
36
+ }
37
+ if (parsedContent.LicenseType && parsedContent.SourceSandboxName) {
38
+ throw cloneMessages.createError('error.bothSourceSandboxNameAndLicenseTypeProvided');
39
+ }
31
40
  return parsedContent;
32
41
  }
33
- export async function createSandboxRequest(isClone = false, definitionFile, logger, properties) {
42
+ export async function createSandboxRequest(definitionFile, logger, properties) {
34
43
  if (!logger) {
35
44
  logger = await Logger.child('createSandboxRequest');
36
45
  }
@@ -45,14 +54,15 @@ export async function createSandboxRequest(isClone = false, definitionFile, logg
45
54
  sandboxDefFileContents.SandboxName ??
46
55
  (await generateSboxName()),
47
56
  };
48
- const { SourceSandboxName, ...sandboxReq } = sandboxReqWithName;
57
+ const isClone = sandboxReqWithName.SourceSandboxName ?? sandboxReqWithName.SourceId;
58
+ const { SourceSandboxName, SourceId, ...sandboxReq } = sandboxReqWithName;
49
59
  logger.debug('SandboxRequest after merging DefFile and Varargs: %s ', sandboxReq);
50
60
  if (isClone) {
51
- if (!SourceSandboxName) {
52
- // error - we need SourceSandboxName to know which sandbox to clone from
53
- throw new SfError(cloneMessages.getMessage('missingSourceSandboxName', ['SourceSandboxName']), cloneMessages.getMessage('missingSourceSandboxNameAction', ['SourceSandboxName']));
61
+ if (!sandboxReqWithName.SourceSandboxName && !sandboxReqWithName.SourceId) {
62
+ // error - we need SourceSandboxName or SourceID to know which sandbox to clone from
63
+ throw new SfError(cloneMessages.getMessage('missingSourceSandboxNameORSourceId'), cloneMessages.getMessage('missingSourceSandboxNameORSourceIdAction'));
54
64
  }
55
- return { sandboxReq, srcSandboxName: SourceSandboxName };
65
+ return { sandboxReq, srcSandboxName: SourceSandboxName, srcId: SourceId };
56
66
  }
57
67
  else {
58
68
  if (!sandboxReq.LicenseType) {
@@ -79,11 +89,21 @@ export async function getUserGroupIdByName(conn, groupName) {
79
89
  throw cloneMessages.createError('error.userGroupQueryFailed', [groupName], [], err);
80
90
  }
81
91
  }
92
+ export async function getSrcIdByName(conn, sandboxName) {
93
+ try {
94
+ const result = (await conn.singleRecordQuery(`SELECT id FROM SandboxInfo WHERE SandboxName = '${sandboxName}'`, { tooling: true })).Id;
95
+ return result;
96
+ }
97
+ catch (err) {
98
+ throw cloneMessages.createError('error.sandboxNameQueryFailed', [sandboxName], [], err);
99
+ }
100
+ }
82
101
  export default {
83
102
  createSandboxRequest,
84
103
  generateSboxName,
85
104
  readSandboxDefFile,
86
105
  getApexClassIdByName,
87
106
  getUserGroupIdByName,
107
+ getSrcIdByName,
88
108
  };
89
109
  //# sourceMappingURL=sandboxRequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxRequest.js","sourceRoot":"","sources":["../../src/shared/sandboxRequest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,OAAO,EAAE,MAAM,EAA+B,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAc,MAAM,kBAAkB,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,aAAa,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,IAAqB,EAAE;IAC1D,iEAAiE;IACjE,6KAA6K;IAC7K,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5D,MAAM,SAAS,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC,uDAAuD,SAAS,EAAE,CAAC,CAAC;IAC9G,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,wEAAwE;AACxE,MAAM,UAAU,kBAAkB,CAChC,OAAe;IAEf,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACtD,MAAM,aAAa,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAA4B,CAAC,CAAC;IAEvF,iBAAiB;IACj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QACb,MAAM,aAAa,CAAC,WAAW,CAAC,4BAA4B,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,GAAY,CAAC,CAAC;IAC/F,CAAC;AACH,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,IAAgB,EAAE,SAAiB;IAC5E,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,sCAAsC,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACrG,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,aAAa,CAAC,WAAW,CAAC,4BAA4B,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,GAAY,CAAC,CAAC;IAC/F,CAAC;AACH,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAgB,EAAE,WAAmB;IACxE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,CACb,MAAM,IAAI,CAAC,iBAAiB,CAAC,mDAAmD,WAAW,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CACnH,CAAC,EAAE,CAAC;QACL,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,aAAa,CAAC,WAAW,CAAC,8BAA8B,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,GAAY,CAAC,CAAC;IACnG,CAAC;AACH,CAAC;AAED,eAAe;IACb,oBAAoB;IACpB,gBAAgB;IAChB,kBAAkB;IAClB,oBAAoB;IACpB,oBAAoB;IACpB,cAAc;CACf,CAAC"}
package/messages/clone.md CHANGED
@@ -1,10 +1,10 @@
1
- # missingSourceSandboxName
1
+ # missingSourceSandboxNameORSourceId
2
2
 
3
- Specify a value for %s in a definition file or on the command line.
3
+ Specify a value for name or ID in a definition file or on the command line.
4
4
 
5
- # missingSourceSandboxNameAction
5
+ # missingSourceSandboxNameORSourceIdAction
6
6
 
7
- To indicate which sandbox org you want to clone, specify %s in a definition file or as a command line argument.
7
+ To indicate which sandbox org you want to clone, specify name or ID in a definition file or as a command line argument.
8
8
 
9
9
  # error.bothApexClassIdAndNameProvided
10
10
 
@@ -21,3 +21,19 @@ Unable to find the ID of the activation user group "%s" that's defined in the de
21
21
  # error.apexClassQueryFailed
22
22
 
23
23
  Unable to find the ID of the Apex class "%s" that's defined in the definition file.
24
+
25
+ # error.bothSourceIdAndNameProvided
26
+
27
+ You can't specify both `SourceId` and `SourceSandboxName` in the definition file at the same time.
28
+
29
+ # error.sandboxNameQueryFailed
30
+
31
+ Unable to find the ID of the sandbox "%s" that's defined in the definition file or as a command line argument.
32
+
33
+ # error.bothSourceIdAndLicenseTypeProvided
34
+
35
+ You can't specify both `SourceId` and `LicenseType` in the definition file at the same time.
36
+
37
+ # error.bothSourceSandboxNameAndLicenseTypeProvided
38
+
39
+ You can't specify both `SourceSandboxName` and `LicenseType` in the definition file at the same time.
@@ -6,7 +6,7 @@ Create a sandbox org.
6
6
 
7
7
  There are two ways to create a sandbox org: specify a definition file that contains the sandbox options or use the --name and --license-type flags to specify the two required options. If you want to set an option other than name or license type, such as apexClassId, you must use a definition file.
8
8
 
9
- You can also use this command to clone an existing sandbox. Use the --clone flag to specify the existing sandbox name and the --name flag to the name of the new sandbox.
9
+ You can also use this command to clone an existing sandbox. Use the --source-sandbox-name flag to specify the existing sandbox name and the --name flag to the name of the new sandbox.
10
10
 
11
11
  # examples
12
12
 
@@ -20,7 +20,7 @@ You can also use this command to clone an existing sandbox. Use the --clone flag
20
20
 
21
21
  - Clone the existing sandbox with name "ExistingSandbox" and name the new sandbox "NewClonedSandbox". Set the new sandbox as your default org. Wait for 30 minutes for the sandbox creation to complete.
22
22
 
23
- <%= config.bin %> <%= command.id %> --clone ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias MyDevSandbox --set-default --wait 30
23
+ <%= config.bin %> <%= command.id %> --source-sandbox-name ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias MyDevSandbox --set-default --wait 30
24
24
 
25
25
  # flags.setDefault.summary
26
26
 
@@ -58,13 +58,25 @@ Name of the sandbox org.
58
58
 
59
59
  The name must be a unique alphanumeric string (10 or fewer characters) to identify the sandbox. You can’t reuse a name while a sandbox is in the process of being deleted.
60
60
 
61
- # flags.clone.summary
61
+ # flags.source-sandbox-name.summary
62
62
 
63
63
  Name of the sandbox org to clone.
64
64
 
65
- # flags.clone.description
65
+ # flags.source-sandbox-name.description
66
66
 
67
- The value of --clone must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
67
+ The value of --source-sandbox-name must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
68
+
69
+ You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
70
+
71
+ # flags.source-id.summary
72
+
73
+ ID of the sandbox org to clone.
74
+
75
+ # flags.source-id.description
76
+
77
+ The value of --source-id must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
78
+
79
+ You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
68
80
 
69
81
  # flags.licenseType.summary
70
82
 
@@ -120,6 +132,14 @@ The sandbox request configuration isn't acceptable.
120
132
 
121
133
  The poll interval (%d seconds) can't be larger that wait (%d in seconds)
122
134
 
123
- # error.noCloneSource
135
+ # error.bothIdFlagAndDefFilePropertyAreProvided
136
+
137
+ You can't specify both the --source-id and --definition-file flags, and also include the "SourceId" option in the definition file. Pick one method of cloning a sandbox and try again.
138
+
139
+ # error.bothNameFlagAndDefFilePropertyAreProvided
140
+
141
+ You can't specify both the --source-sandbox-name and --definition-file flags, and also include the "SourceSandboxName" option in the definition file. Pick one method of cloning a sandbox and try again.
142
+
143
+ # error.bothIdFlagAndNameDefFileAreNotAllowed
124
144
 
125
- Could not find the clone sandbox name "%s" in the target org.
145
+ You can't specify both the --source-sandbox-name and --definition-file flags, and also include the "SourceId" option in the definition file. Same with the --source-id flag and "SourceSandboxName" option. Pick one method of cloning a sandbox and try again.
@@ -391,11 +391,11 @@
391
391
  ],
392
392
  "args": {},
393
393
  "deprecateAliases": true,
394
- "description": "There are two ways to create a sandbox org: specify a definition file that contains the sandbox options or use the --name and --license-type flags to specify the two required options. If you want to set an option other than name or license type, such as apexClassId, you must use a definition file.\n\nYou can also use this command to clone an existing sandbox. Use the --clone flag to specify the existing sandbox name and the --name flag to the name of the new sandbox.",
394
+ "description": "There are two ways to create a sandbox org: specify a definition file that contains the sandbox options or use the --name and --license-type flags to specify the two required options. If you want to set an option other than name or license type, such as apexClassId, you must use a definition file.\n\nYou can also use this command to clone an existing sandbox. Use the --source-sandbox-name flag to specify the existing sandbox name and the --name flag to the name of the new sandbox.",
395
395
  "examples": [
396
396
  "Create a sandbox org using a definition file and give it the alias \"MyDevSandbox\". The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> --definition-file config/dev-sandbox-def.json --alias MyDevSandbox --target-org prodOrg",
397
397
  "Create a sandbox org by directly specifying its name and type of license (Developer) instead of using a definition file. Set the sandbox org as your default.\n<%= config.bin %> <%= command.id %> --name mysandbox --license-type Developer --alias MyDevSandbox --target-org prodOrg --set-default",
398
- "Clone the existing sandbox with name \"ExistingSandbox\" and name the new sandbox \"NewClonedSandbox\". Set the new sandbox as your default org. Wait for 30 minutes for the sandbox creation to complete.\n<%= config.bin %> <%= command.id %> --clone ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias MyDevSandbox --set-default --wait 30"
398
+ "Clone the existing sandbox with name \"ExistingSandbox\" and name the new sandbox \"NewClonedSandbox\". Set the new sandbox as your default org. Wait for 30 minutes for the sandbox creation to complete.\n<%= config.bin %> <%= command.id %> --source-sandbox-name ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias MyDevSandbox --set-default --wait 30"
399
399
  ],
400
400
  "flags": {
401
401
  "json": {
@@ -483,22 +483,39 @@
483
483
  "multiple": false,
484
484
  "type": "option"
485
485
  },
486
- "clone": {
487
- "char": "c",
488
- "description": "The value of --clone must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.",
486
+ "source-sandbox-name": {
487
+ "aliases": [
488
+ "clone",
489
+ "c"
490
+ ],
491
+ "deprecateAliases": true,
492
+ "description": "The value of --source-sandbox-name must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.\n\nYou can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.",
489
493
  "exclusive": [
490
- "license-type"
494
+ "license-type",
495
+ "source-id"
491
496
  ],
492
- "name": "clone",
497
+ "name": "source-sandbox-name",
493
498
  "summary": "Name of the sandbox org to clone.",
494
499
  "hasDynamicHelp": false,
495
500
  "multiple": false,
496
501
  "type": "option"
497
502
  },
503
+ "source-id": {
504
+ "description": "The value of --source-id must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.\n\nYou can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.",
505
+ "exclusive": [
506
+ "license-type"
507
+ ],
508
+ "name": "source-id",
509
+ "summary": "ID of the sandbox org to clone.",
510
+ "hasDynamicHelp": false,
511
+ "multiple": false,
512
+ "type": "option"
513
+ },
498
514
  "license-type": {
499
515
  "char": "l",
500
516
  "exclusive": [
501
- "clone"
517
+ "source-sandbox-name",
518
+ "source-id"
502
519
  ],
503
520
  "name": "license-type",
504
521
  "summary": "Type of sandbox license.",
@@ -808,6 +825,69 @@
808
825
  "scratch:create:org"
809
826
  ]
810
827
  },
828
+ "org:disable:tracking": {
829
+ "aliases": [],
830
+ "args": {},
831
+ "description": "Disabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that no source tracking operations are executed when working with the org.",
832
+ "examples": [
833
+ "Disable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
834
+ "Disable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
835
+ "Disable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
836
+ ],
837
+ "flags": {
838
+ "json": {
839
+ "description": "Format output as json.",
840
+ "helpGroup": "GLOBAL",
841
+ "name": "json",
842
+ "allowNo": false,
843
+ "type": "boolean"
844
+ },
845
+ "flags-dir": {
846
+ "helpGroup": "GLOBAL",
847
+ "name": "flags-dir",
848
+ "summary": "Import flag values from a directory.",
849
+ "hasDynamicHelp": false,
850
+ "multiple": false,
851
+ "type": "option"
852
+ },
853
+ "target-org": {
854
+ "char": "o",
855
+ "name": "target-org",
856
+ "noCacheDefault": true,
857
+ "required": true,
858
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
859
+ "hasDynamicHelp": true,
860
+ "multiple": false,
861
+ "type": "option"
862
+ }
863
+ },
864
+ "hasDynamicHelp": true,
865
+ "hiddenAliases": [],
866
+ "id": "org:disable:tracking",
867
+ "pluginAlias": "@salesforce/plugin-org",
868
+ "pluginName": "@salesforce/plugin-org",
869
+ "pluginType": "core",
870
+ "strict": true,
871
+ "summary": "Prevent Salesforce CLI from tracking changes in your source files between your project and an org.",
872
+ "enableJsonFlag": true,
873
+ "isESM": true,
874
+ "relativePath": [
875
+ "lib",
876
+ "commands",
877
+ "org",
878
+ "disable",
879
+ "tracking.js"
880
+ ],
881
+ "aliasPermutations": [],
882
+ "permutations": [
883
+ "org:disable:tracking",
884
+ "disable:org:tracking",
885
+ "disable:tracking:org",
886
+ "org:tracking:disable",
887
+ "tracking:org:disable",
888
+ "tracking:disable:org"
889
+ ]
890
+ },
811
891
  "org:delete:sandbox": {
812
892
  "aliases": [
813
893
  "env:delete:sandbox"
@@ -976,69 +1056,6 @@
976
1056
  "scratch:delete:org"
977
1057
  ]
978
1058
  },
979
- "org:disable:tracking": {
980
- "aliases": [],
981
- "args": {},
982
- "description": "Disabling source tracking has no direct effect on the org, it affects only your local environment. Specifically, Salesforce CLI stores the setting in the org's local configuration file so that no source tracking operations are executed when working with the org.",
983
- "examples": [
984
- "Disable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
985
- "Disable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
986
- "Disable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
987
- ],
988
- "flags": {
989
- "json": {
990
- "description": "Format output as json.",
991
- "helpGroup": "GLOBAL",
992
- "name": "json",
993
- "allowNo": false,
994
- "type": "boolean"
995
- },
996
- "flags-dir": {
997
- "helpGroup": "GLOBAL",
998
- "name": "flags-dir",
999
- "summary": "Import flag values from a directory.",
1000
- "hasDynamicHelp": false,
1001
- "multiple": false,
1002
- "type": "option"
1003
- },
1004
- "target-org": {
1005
- "char": "o",
1006
- "name": "target-org",
1007
- "noCacheDefault": true,
1008
- "required": true,
1009
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1010
- "hasDynamicHelp": true,
1011
- "multiple": false,
1012
- "type": "option"
1013
- }
1014
- },
1015
- "hasDynamicHelp": true,
1016
- "hiddenAliases": [],
1017
- "id": "org:disable:tracking",
1018
- "pluginAlias": "@salesforce/plugin-org",
1019
- "pluginName": "@salesforce/plugin-org",
1020
- "pluginType": "core",
1021
- "strict": true,
1022
- "summary": "Prevent Salesforce CLI from tracking changes in your source files between your project and an org.",
1023
- "enableJsonFlag": true,
1024
- "isESM": true,
1025
- "relativePath": [
1026
- "lib",
1027
- "commands",
1028
- "org",
1029
- "disable",
1030
- "tracking.js"
1031
- ],
1032
- "aliasPermutations": [],
1033
- "permutations": [
1034
- "org:disable:tracking",
1035
- "disable:org:tracking",
1036
- "disable:tracking:org",
1037
- "org:tracking:disable",
1038
- "tracking:org:disable",
1039
- "tracking:disable:org"
1040
- ]
1041
- },
1042
1059
  "org:enable:tracking": {
1043
1060
  "aliases": [],
1044
1061
  "args": {},
@@ -1681,5 +1698,5 @@
1681
1698
  ]
1682
1699
  }
1683
1700
  },
1684
- "version": "5.0.2"
1701
+ "version": "5.1.0"
1685
1702
  }
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.0.2",
4
+ "version": "5.1.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -22,7 +22,7 @@
22
22
  "@salesforce/cli-plugins-testkit": "^5.3.35",
23
23
  "@salesforce/dev-scripts": "^10.2.10",
24
24
  "@salesforce/plugin-command-reference": "^3.1.29",
25
- "@salesforce/ts-sinon": "^1.4.27",
25
+ "@salesforce/ts-sinon": "^1.4.28",
26
26
  "eslint-plugin-sf-plugin": "^1.20.8",
27
27
  "moment": "^2.30.1",
28
28
  "oclif": "^4.15.12",
@@ -226,7 +226,7 @@
226
226
  "exports": "./lib/index.js",
227
227
  "type": "module",
228
228
  "sfdx": {
229
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.0.2.crt",
230
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.0.2.sig"
229
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.1.0.crt",
230
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.1.0.sig"
231
231
  }
232
232
  }