@salesforce/plugin-org 5.6.3 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -242,7 +242,7 @@ FLAG DESCRIPTIONS
242
242
  You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
243
243
  ```
244
244
 
245
- _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/create/sandbox.ts)_
245
+ _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/create/sandbox.ts)_
246
246
 
247
247
  ## `sf org create scratch`
248
248
 
@@ -424,7 +424,7 @@ FLAG DESCRIPTIONS
424
424
  Omit this flag to have Salesforce generate a unique username for your org.
425
425
  ```
426
426
 
427
- _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/create/scratch.ts)_
427
+ _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/create/scratch.ts)_
428
428
 
429
429
  ## `sf org delete sandbox`
430
430
 
@@ -470,7 +470,7 @@ EXAMPLES
470
470
  $ sf org delete sandbox --target-org my-sandbox --no-prompt
471
471
  ```
472
472
 
473
- _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/delete/sandbox.ts)_
473
+ _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/delete/sandbox.ts)_
474
474
 
475
475
  ## `sf org delete scratch`
476
476
 
@@ -514,7 +514,7 @@ EXAMPLES
514
514
  $ sf org delete scratch --target-org my-scratch-org --no-prompt
515
515
  ```
516
516
 
517
- _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/delete/scratch.ts)_
517
+ _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/delete/scratch.ts)_
518
518
 
519
519
  ## `sf org disable tracking`
520
520
 
@@ -553,7 +553,7 @@ EXAMPLES
553
553
  $ sf org disable tracking
554
554
  ```
555
555
 
556
- _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/disable/tracking.ts)_
556
+ _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/disable/tracking.ts)_
557
557
 
558
558
  ## `sf org display`
559
559
 
@@ -598,7 +598,7 @@ EXAMPLES
598
598
  $ sf org display --target-org TestOrg1 --verbose
599
599
  ```
600
600
 
601
- _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/display.ts)_
601
+ _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/display.ts)_
602
602
 
603
603
  ## `sf org enable tracking`
604
604
 
@@ -640,7 +640,7 @@ EXAMPLES
640
640
  $ sf org enable tracking
641
641
  ```
642
642
 
643
- _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/enable/tracking.ts)_
643
+ _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/enable/tracking.ts)_
644
644
 
645
645
  ## `sf org list`
646
646
 
@@ -679,7 +679,7 @@ EXAMPLES
679
679
  $ sf org list --clean
680
680
  ```
681
681
 
682
- _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/list.ts)_
682
+ _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/list.ts)_
683
683
 
684
684
  ## `sf org list metadata`
685
685
 
@@ -746,7 +746,7 @@ FLAG DESCRIPTIONS
746
746
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
747
747
  ```
748
748
 
749
- _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/list/metadata.ts)_
749
+ _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/list/metadata.ts)_
750
750
 
751
751
  ## `sf org list metadata-types`
752
752
 
@@ -801,7 +801,7 @@ FLAG DESCRIPTIONS
801
801
  Override the api version used for api requests made by this command
802
802
  ```
803
803
 
804
- _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/list/metadata-types.ts)_
804
+ _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/list/metadata-types.ts)_
805
805
 
806
806
  ## `sf org open`
807
807
 
@@ -877,7 +877,7 @@ EXAMPLES
877
877
  $ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
878
878
  ```
879
879
 
880
- _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/open.ts)_
880
+ _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/open.ts)_
881
881
 
882
882
  ## `sf org open agent`
883
883
 
@@ -928,7 +928,7 @@ EXAMPLES
928
928
  $ sf org open agent --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
929
929
  ```
930
930
 
931
- _See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/open/agent.ts)_
931
+ _See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/open/agent.ts)_
932
932
 
933
933
  ## `sf org refresh sandbox`
934
934
 
@@ -937,17 +937,21 @@ Refresh a sandbox org using the sandbox name.
937
937
  ```
938
938
  USAGE
939
939
  $ sf org refresh sandbox -o <value> [--json] [--flags-dir <value>] [--no-auto-activate] [-w <minutes> | --async] [-i
940
- <seconds> | ] [-n <value>] [-f <value>] [--no-prompt]
940
+ <seconds> | ] [--source-sandbox-name <value> | -i <value>] [-n <value>] [-f <value>] [--no-prompt]
941
941
 
942
942
  FLAGS
943
- -f, --definition-file=<value> Path to a sandbox definition file for overriding its configuration when you refresh it.
944
- -i, --poll-interval=<seconds> Number of seconds to wait between status polling requests.
945
- -n, --name=<value> Name of the existing sandbox org in your production org that you want to refresh.
946
- -o, --target-org=<value> (required) Username or alias of the production org that contains the sandbox license.
947
- -w, --wait=<minutes> Number of minutes to poll for sandbox refresh status.
948
- --async Request the sandbox refresh, but don't wait for it to complete.
949
- --no-auto-activate Disable auto-activation of the sandbox after a successful refresh.
950
- --no-prompt Don't prompt for confirmation about the sandbox refresh.
943
+ -f, --definition-file=<value> Path to a sandbox definition file for overriding its configuration when you refresh
944
+ it.
945
+ -i, --poll-interval=<seconds> Number of seconds to wait between status polling requests.
946
+ -i, --source-id=<value> ID of the sandbox org that becomes the new source org for the refreshed sandbox.
947
+ -n, --name=<value> Name of the existing sandbox org in your production org that you want to refresh.
948
+ -o, --target-org=<value> (required) Username or alias of the production org that contains the sandbox
949
+ license.
950
+ -w, --wait=<minutes> Number of minutes to poll for sandbox refresh status.
951
+ --async Request the sandbox refresh, but don't wait for it to complete.
952
+ --no-auto-activate Disable auto-activation of the sandbox after a successful refresh.
953
+ --no-prompt Don't prompt for confirmation about the sandbox refresh.
954
+ --source-sandbox-name=<value> Name of the sandbox org that becomes the new source org for the refreshed sandbox.
951
955
 
952
956
  GLOBAL FLAGS
953
957
  --flags-dir=<value> Import flag values from a directory.
@@ -958,7 +962,9 @@ DESCRIPTION
958
962
 
959
963
  Refreshing a sandbox copies the metadata, and optionally data, from your source org to the refreshed sandbox org. You
960
964
  can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as its
961
- license type or template ID.
965
+ license type or template ID. You can also use the --source-id or --source-sandbox-name flags to change the refreshed
966
+ sandbox org's original source org to a new org; in this case, the refreshed sandbox org's metadata is updated with the
967
+ new source org's metadata.
962
968
 
963
969
  You're not allowed to change the sandbox name when you refresh it with this command. If you want to change the sandbox
964
970
  name, first delete it with the "org delete sandbox" command. And then recreate it with the "org create sandbox"
@@ -980,6 +986,10 @@ EXAMPLES
980
986
 
981
987
  $ sf org refresh sandbox --definition-file devSbx3-config.json --target-org prodOrg
982
988
 
989
+ Refresh the sandbox named "devSbx2" by changing its original source org to be a sandbox called "devSbx3":
990
+
991
+ $ sf org refresh sandbox --name devSbx2 --source-sandbox-name devSbx3 --target-org prodOrg
992
+
983
993
  FLAG DESCRIPTIONS
984
994
  -f, --definition-file=<value> Path to a sandbox definition file for overriding its configuration when you refresh it.
985
995
 
@@ -989,6 +999,14 @@ FLAG DESCRIPTIONS
989
999
  <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all
990
1000
  the options you can specify in the definition file.
991
1001
 
1002
+ -i, --source-id=<value> ID of the sandbox org that becomes the new source org for the refreshed sandbox.
1003
+
1004
+ The value of --source-id must be an existing sandbox. The new source sandbox, and the refreshed sandbox specified
1005
+ with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox
1006
+ licenses.
1007
+
1008
+ You can specify either --source-id or --source-sandbox-name when refreshing an existing sandbox, but not both.
1009
+
992
1010
  -w, --wait=<minutes> Number of minutes to poll for sandbox refresh status.
993
1011
 
994
1012
  If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays
@@ -1003,9 +1021,17 @@ FLAG DESCRIPTIONS
1003
1021
  --no-auto-activate Disable auto-activation of the sandbox after a successful refresh.
1004
1022
 
1005
1023
  By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
1024
+
1025
+ --source-sandbox-name=<value> Name of the sandbox org that becomes the new source org for the refreshed sandbox.
1026
+
1027
+ The value of --source-sandbox-name must be an existing sandbox. The new source sandbox, and the refreshed sandbox
1028
+ specified with the --name flag, must both be associated with the production org (--target-org) that contains the
1029
+ sandbox licenses.
1030
+
1031
+ You can specify either --source-sandbox-name or --source-id when refreshing an existing sandbox, but not both.
1006
1032
  ```
1007
1033
 
1008
- _See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/refresh/sandbox.ts)_
1034
+ _See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/refresh/sandbox.ts)_
1009
1035
 
1010
1036
  ## `sf org resume sandbox`
1011
1037
 
@@ -1068,7 +1094,7 @@ FLAG DESCRIPTIONS
1068
1094
  returns the job ID. To resume checking the sandbox creation, rerun this command.
1069
1095
  ```
1070
1096
 
1071
- _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/resume/sandbox.ts)_
1097
+ _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/resume/sandbox.ts)_
1072
1098
 
1073
1099
  ## `sf org resume scratch`
1074
1100
 
@@ -1121,6 +1147,6 @@ FLAG DESCRIPTIONS
1121
1147
  returns the job ID. To resume checking the scratch creation, rerun this command.
1122
1148
  ```
1123
1149
 
1124
- _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.6.3/src/commands/org/resume/scratch.ts)_
1150
+ _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.7.1/src/commands/org/resume/scratch.ts)_
1125
1151
 
1126
1152
  <!-- commandsstop -->
@@ -9,6 +9,8 @@ export default class RefreshSandbox extends SandboxCommandBase<SandboxCommandRes
9
9
  'no-auto-activate': Interfaces.BooleanFlag<boolean>;
10
10
  wait: Interfaces.OptionFlag<Duration, Interfaces.CustomOptions>;
11
11
  'poll-interval': Interfaces.OptionFlag<Duration, Interfaces.CustomOptions>;
12
+ 'source-sandbox-name': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
13
+ 'source-id': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
12
14
  async: Interfaces.BooleanFlag<boolean>;
13
15
  name: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
14
16
  'definition-file': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
@@ -7,7 +7,7 @@
7
7
  import { Duration, omit } 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
  // Fields of SandboxInfo
13
13
  const uneditableFields = ['IsDeleted', 'CreatedDate', 'CreatedById', 'LastModifiedDate', 'LastModifiedById'];
@@ -56,6 +56,17 @@ export default class RefreshSandbox extends SandboxCommandBase {
56
56
  helpValue: '<seconds>',
57
57
  exclusive: ['async'],
58
58
  }),
59
+ 'source-sandbox-name': Flags.string({
60
+ summary: messages.getMessage('flags.source-sandbox-name.summary'),
61
+ description: messages.getMessage('flags.source-sandbox-name.description'),
62
+ exclusive: ['source-id'],
63
+ }),
64
+ 'source-id': Flags.salesforceId({
65
+ summary: messages.getMessage('flags.source-id.summary'),
66
+ description: messages.getMessage('flags.source-id.description'),
67
+ exclusive: ['source-sandbox-name'],
68
+ length: 'both',
69
+ }),
59
70
  async: Flags.boolean({
60
71
  summary: messages.getMessage('flags.async.summary'),
61
72
  description: messages.getMessage('flags.async.description'),
@@ -165,6 +176,7 @@ export default class RefreshSandbox extends SandboxCommandBase {
165
176
  }
166
177
  let apexId;
167
178
  let groupId;
179
+ let srcId;
168
180
  if (defFileContent.ApexClassName) {
169
181
  apexId = await requestFunctions.getApexClassIdByName(this.flags['target-org'].getConnection(), defFileContent.ApexClassName); // convert name to ID
170
182
  delete defFileContent.ApexClassName;
@@ -173,6 +185,10 @@ export default class RefreshSandbox extends SandboxCommandBase {
173
185
  groupId = await requestFunctions.getUserGroupIdByName(this.flags['target-org'].getConnection(), defFileContent.ActivationUserGroupName);
174
186
  delete defFileContent.ActivationUserGroupName;
175
187
  }
188
+ if (defFileContent.SourceSandboxName) {
189
+ srcId = await requestFunctions.getSrcIdByName(this.flags['target-org'].getConnection(), defFileContent.SourceSandboxName);
190
+ delete defFileContent.SourceSandboxName;
191
+ }
176
192
  // Warn if sandbox name is in `--name` and `--definition-file` flags and they differ.
177
193
  if (defFileContent?.SandboxName && sbxName && sbxName !== defFileContent?.SandboxName) {
178
194
  this.warn(messages.createWarning('warning.ConflictingSandboxNames', [sbxName, defFileContent?.SandboxName]));
@@ -197,8 +213,16 @@ export default class RefreshSandbox extends SandboxCommandBase {
197
213
  sandboxInfo = Object.assign(sandboxInfo, defFileContent, {
198
214
  SandboxName: sbxName,
199
215
  AutoActivate: !this.flags['no-auto-activate'],
216
+ ...(this.flags['source-sandbox-name']
217
+ ? {
218
+ SourceId: await requestFunctions.getSrcIdByName(this.flags['target-org'].getConnection(), this.flags['source-sandbox-name']),
219
+ }
220
+ : this.flags['source-id']
221
+ ? { SourceId: this.flags['source-id'] }
222
+ : {}),
200
223
  ...(apexId ? { ApexClassId: apexId } : {}),
201
224
  ...(groupId ? { ActivationUserGroupId: groupId } : {}),
225
+ ...(srcId ? { SourceId: srcId } : {}),
202
226
  });
203
227
  return sandboxInfo;
204
228
  }
@@ -213,6 +237,22 @@ export default class RefreshSandbox extends SandboxCommandBase {
213
237
  this.flags.wait.seconds,
214
238
  ]);
215
239
  }
240
+ if (!this.flags['definition-file']) {
241
+ return undefined;
242
+ }
243
+ const parsedDef = readSandboxDefFile(this.flags['definition-file']);
244
+ if (this.flags['source-id'] && parsedDef.SourceId) {
245
+ throw messages.createError('error.bothIdFlagAndDefFilePropertyAreProvided');
246
+ }
247
+ if (this.flags['source-sandbox-name'] && parsedDef.SourceSandboxName) {
248
+ throw messages.createError('error.bothNameFlagAndDefFilePropertyAreProvided');
249
+ }
250
+ if (this.flags['source-id'] && parsedDef.SourceSandboxName) {
251
+ throw messages.createError('error.bothIdFlagAndNameDefFileAreNotAllowed');
252
+ }
253
+ if (this.flags['source-sandbox-name'] && parsedDef.SourceId) {
254
+ throw messages.createError('error.bothIdFlagAndNameDefFileAreNotAllowed');
255
+ }
216
256
  }
217
257
  initSandboxProcessData(sandboxInfo) {
218
258
  this.sandboxRequestData = {
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src/commands/org/refresh/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAe,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE5F,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAA0B,MAAM,uCAAuC,CAAC;AASnG,wBAAwB;AACxB,MAAM,gBAAgB,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AAC7G,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,sDAAsD;IACrE,YAAY,EAAE,6CAA6C;IAC3D,aAAa,EAAE,QAAQ;IACvB,aAAa,EAAE,YAAY;IAC3B,cAAc,EAAE,YAAY;IAC5B,aAAa,EAAE,yBAAyB;IACxC,aAAa,EAAE,WAAW;IAC1B,UAAU,EAAE,4DAA4D;IACxE,sFAAsF;IACtF,2FAA2F;IAC3F,GAAG,gBAAgB;CACpB,CAAC;AAEF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAA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,qBAAqB,CAAC,WAAwB;QAC1D,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE;YAAE,OAAO;QAE1D,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC;QAClG,IAAI,CAAC,KAAK,CAAC;YACT,IAAI;YACJ,OAAO,EAAE;gBACP,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;gBAC7B,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;aAChC;YACD,KAAK,EAAE,wBAAwB;SAChC,CAAC,CAAC;QACH,IACE,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;YACjD,EAAE,EAAE,MAAM;SACX,CAAC,CAAC,EACH,CAAC;YACD,MAAM,QAAQ,CAAC,WAAW,CAAC,yCAAyC,CAAC,CAAC;QACxE,CAAC;IACH,CAAC"}
@@ -4,7 +4,7 @@ Refresh a sandbox org using the sandbox name.
4
4
 
5
5
  # description
6
6
 
7
- Refreshing a sandbox copies the metadata, and optionally data, from your source org to the refreshed sandbox org. You can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as its license type or template ID.
7
+ Refreshing a sandbox copies the metadata, and optionally data, from your source org to the refreshed sandbox org. You can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as its license type or template ID. You can also use the --source-id or --source-sandbox-name flags to change the refreshed sandbox org's original source org to a new org; in this case, the refreshed sandbox org's metadata is updated with the new source org's metadata.
8
8
 
9
9
  You're not allowed to change the sandbox name when you refresh it with this command. If you want to change the sandbox name, first delete it with the "org delete sandbox" command. And then recreate it with the "org create sandbox" command and give it a new name.
10
10
 
@@ -22,6 +22,10 @@ You're not allowed to change the sandbox name when you refresh it with this comm
22
22
 
23
23
  <%= config.bin %> <%= command.id %> --definition-file devSbx3-config.json --target-org prodOrg
24
24
 
25
+ - Refresh the sandbox named "devSbx2" by changing its original source org to be a sandbox called "devSbx3":
26
+
27
+ <%= config.bin %> <%= command.id %> --name devSbx2 --source-sandbox-name devSbx3 --target-org prodOrg
28
+
25
29
  # flags.no-auto-activate.summary
26
30
 
27
31
  Disable auto-activation of the sandbox after a successful refresh.
@@ -106,3 +110,35 @@ The poll interval (%d seconds) can't be larger than the wait period (%d in secon
106
110
  # sandboxInfoRefreshFailed
107
111
 
108
112
  The sandbox org refresh failed with a result of %s.
113
+
114
+ # flags.source-sandbox-name.summary
115
+
116
+ Name of the sandbox org that becomes the new source org for the refreshed sandbox.
117
+
118
+ # flags.source-sandbox-name.description
119
+
120
+ The value of --source-sandbox-name must be an existing sandbox. The new source sandbox, and the refreshed sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
121
+
122
+ You can specify either --source-sandbox-name or --source-id when refreshing an existing sandbox, but not both.
123
+
124
+ # flags.source-id.summary
125
+
126
+ ID of the sandbox org that becomes the new source org for the refreshed sandbox.
127
+
128
+ # flags.source-id.description
129
+
130
+ The value of --source-id must be an existing sandbox. The new source sandbox, and the refreshed sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
131
+
132
+ You can specify either --source-id or --source-sandbox-name when refreshing an existing sandbox, but not both.
133
+
134
+ # error.bothIdFlagAndDefFilePropertyAreProvided
135
+
136
+ 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 refreshing a sandbox and try again.
137
+
138
+ # error.bothNameFlagAndDefFilePropertyAreProvided
139
+
140
+ 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 refreshing a sandbox and try again.
141
+
142
+ # error.bothIdFlagAndNameDefFileAreNotAllowed
143
+
144
+ 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 refreshing a sandbox and try again.
@@ -385,6 +385,237 @@
385
385
  "open:org"
386
386
  ]
387
387
  },
388
+ "org:disable:tracking": {
389
+ "aliases": [],
390
+ "args": {},
391
+ "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.",
392
+ "examples": [
393
+ "Disable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
394
+ "Disable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
395
+ "Disable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
396
+ ],
397
+ "flags": {
398
+ "json": {
399
+ "description": "Format output as json.",
400
+ "helpGroup": "GLOBAL",
401
+ "name": "json",
402
+ "allowNo": false,
403
+ "type": "boolean"
404
+ },
405
+ "flags-dir": {
406
+ "helpGroup": "GLOBAL",
407
+ "name": "flags-dir",
408
+ "summary": "Import flag values from a directory.",
409
+ "hasDynamicHelp": false,
410
+ "multiple": false,
411
+ "type": "option"
412
+ },
413
+ "target-org": {
414
+ "char": "o",
415
+ "name": "target-org",
416
+ "noCacheDefault": true,
417
+ "required": true,
418
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
419
+ "hasDynamicHelp": true,
420
+ "multiple": false,
421
+ "type": "option"
422
+ }
423
+ },
424
+ "hasDynamicHelp": true,
425
+ "hiddenAliases": [],
426
+ "id": "org:disable:tracking",
427
+ "pluginAlias": "@salesforce/plugin-org",
428
+ "pluginName": "@salesforce/plugin-org",
429
+ "pluginType": "core",
430
+ "strict": true,
431
+ "summary": "Prevent Salesforce CLI from tracking changes in your source files between your project and an org.",
432
+ "enableJsonFlag": true,
433
+ "isESM": true,
434
+ "relativePath": [
435
+ "lib",
436
+ "commands",
437
+ "org",
438
+ "disable",
439
+ "tracking.js"
440
+ ],
441
+ "aliasPermutations": [],
442
+ "permutations": [
443
+ "org:disable:tracking",
444
+ "disable:org:tracking",
445
+ "disable:tracking:org",
446
+ "org:tracking:disable",
447
+ "tracking:org:disable",
448
+ "tracking:disable:org"
449
+ ]
450
+ },
451
+ "org:delete:sandbox": {
452
+ "aliases": [
453
+ "env:delete:sandbox"
454
+ ],
455
+ "args": {},
456
+ "deprecateAliases": true,
457
+ "description": "Salesforce CLI marks the org for deletion in the production org that contains the sandbox licenses and then deletes all local references to the org from your computer.\nSpecify a sandbox with either the username you used when you logged into it, or the alias you gave the sandbox when you created it. Run \"<%= config.bin %> org list\" to view all your orgs, including sandboxes, and their aliases.\nBoth the sandbox and the associated production org must already be authenticated with the CLI to successfully delete the sandbox.",
458
+ "examples": [
459
+ "Delete a sandbox with alias my-sandbox:\n<%= config.bin %> <%= command.id %> --target-org my-sandbox",
460
+ "Specify a username instead of an alias:\n<%= config.bin %> <%= command.id %> --target-org myusername@example.com.qa",
461
+ "Delete the sandbox without prompting to confirm:\n<%= config.bin %> <%= command.id %> --target-org my-sandbox --no-prompt"
462
+ ],
463
+ "flags": {
464
+ "json": {
465
+ "description": "Format output as json.",
466
+ "helpGroup": "GLOBAL",
467
+ "name": "json",
468
+ "allowNo": false,
469
+ "type": "boolean"
470
+ },
471
+ "flags-dir": {
472
+ "helpGroup": "GLOBAL",
473
+ "name": "flags-dir",
474
+ "summary": "Import flag values from a directory.",
475
+ "hasDynamicHelp": false,
476
+ "multiple": false,
477
+ "type": "option"
478
+ },
479
+ "target-org": {
480
+ "aliases": [
481
+ "targetusername",
482
+ "u"
483
+ ],
484
+ "char": "o",
485
+ "deprecateAliases": true,
486
+ "name": "target-org",
487
+ "required": true,
488
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
489
+ "hasDynamicHelp": true,
490
+ "multiple": false,
491
+ "type": "option"
492
+ },
493
+ "no-prompt": {
494
+ "char": "p",
495
+ "name": "no-prompt",
496
+ "summary": "Don't prompt the user to confirm the deletion.",
497
+ "allowNo": false,
498
+ "type": "boolean"
499
+ }
500
+ },
501
+ "hasDynamicHelp": true,
502
+ "hiddenAliases": [],
503
+ "id": "org:delete:sandbox",
504
+ "pluginAlias": "@salesforce/plugin-org",
505
+ "pluginName": "@salesforce/plugin-org",
506
+ "pluginType": "core",
507
+ "strict": true,
508
+ "summary": "Delete a sandbox.",
509
+ "enableJsonFlag": true,
510
+ "isESM": true,
511
+ "relativePath": [
512
+ "lib",
513
+ "commands",
514
+ "org",
515
+ "delete",
516
+ "sandbox.js"
517
+ ],
518
+ "aliasPermutations": [
519
+ "env:delete:sandbox",
520
+ "delete:env:sandbox",
521
+ "delete:sandbox:env",
522
+ "env:sandbox:delete",
523
+ "sandbox:env:delete",
524
+ "sandbox:delete:env"
525
+ ],
526
+ "permutations": [
527
+ "org:delete:sandbox",
528
+ "delete:org:sandbox",
529
+ "delete:sandbox:org",
530
+ "org:sandbox:delete",
531
+ "sandbox:org:delete",
532
+ "sandbox:delete:org"
533
+ ]
534
+ },
535
+ "org:delete:scratch": {
536
+ "aliases": [
537
+ "env:delete:scratch"
538
+ ],
539
+ "args": {},
540
+ "deprecateAliases": true,
541
+ "description": "Salesforce CLI marks the org for deletion in the Dev Hub org and then deletes all local references to the org from your computer.\nSpecify a scratch org with either the username or the alias you gave the scratch org when you created it. Run \"<%= config.bin %> org list\" to view all your orgs, including scratch orgs, and their aliases.",
542
+ "examples": [
543
+ "Delete a scratch org with alias my-scratch-org:\n<%= config.bin %> <%= command.id %> --target-org my-scratch-org",
544
+ "Specify a username instead of an alias:\n<%= config.bin %> <%= command.id %> --target-org test-123456-abcdefg@example.com",
545
+ "Delete the scratch org without prompting to confirm :\n<%= config.bin %> <%= command.id %> --target-org my-scratch-org --no-prompt"
546
+ ],
547
+ "flags": {
548
+ "json": {
549
+ "description": "Format output as json.",
550
+ "helpGroup": "GLOBAL",
551
+ "name": "json",
552
+ "allowNo": false,
553
+ "type": "boolean"
554
+ },
555
+ "flags-dir": {
556
+ "helpGroup": "GLOBAL",
557
+ "name": "flags-dir",
558
+ "summary": "Import flag values from a directory.",
559
+ "hasDynamicHelp": false,
560
+ "multiple": false,
561
+ "type": "option"
562
+ },
563
+ "target-org": {
564
+ "aliases": [
565
+ "targetusername",
566
+ "u"
567
+ ],
568
+ "char": "o",
569
+ "deprecateAliases": true,
570
+ "name": "target-org",
571
+ "required": true,
572
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
573
+ "hasDynamicHelp": true,
574
+ "multiple": false,
575
+ "type": "option"
576
+ },
577
+ "no-prompt": {
578
+ "char": "p",
579
+ "name": "no-prompt",
580
+ "summary": "Don't prompt the user to confirm the deletion.",
581
+ "allowNo": false,
582
+ "type": "boolean"
583
+ }
584
+ },
585
+ "hasDynamicHelp": true,
586
+ "hiddenAliases": [],
587
+ "id": "org:delete:scratch",
588
+ "pluginAlias": "@salesforce/plugin-org",
589
+ "pluginName": "@salesforce/plugin-org",
590
+ "pluginType": "core",
591
+ "strict": true,
592
+ "summary": "Delete a scratch org.",
593
+ "enableJsonFlag": true,
594
+ "isESM": true,
595
+ "relativePath": [
596
+ "lib",
597
+ "commands",
598
+ "org",
599
+ "delete",
600
+ "scratch.js"
601
+ ],
602
+ "aliasPermutations": [
603
+ "env:delete:scratch",
604
+ "delete:env:scratch",
605
+ "delete:scratch:env",
606
+ "env:scratch:delete",
607
+ "scratch:env:delete",
608
+ "scratch:delete:env"
609
+ ],
610
+ "permutations": [
611
+ "org:delete:scratch",
612
+ "delete:org:scratch",
613
+ "delete:scratch:org",
614
+ "org:scratch:delete",
615
+ "scratch:org:delete",
616
+ "scratch:delete:org"
617
+ ]
618
+ },
388
619
  "org:create:sandbox": {
389
620
  "aliases": [
390
621
  "env:create:sandbox"
@@ -849,17 +1080,14 @@
849
1080
  "scratch:create:org"
850
1081
  ]
851
1082
  },
852
- "org:delete:sandbox": {
853
- "aliases": [
854
- "env:delete:sandbox"
855
- ],
1083
+ "org:enable:tracking": {
1084
+ "aliases": [],
856
1085
  "args": {},
857
- "deprecateAliases": true,
858
- "description": "Salesforce CLI marks the org for deletion in the production org that contains the sandbox licenses and then deletes all local references to the org from your computer.\nSpecify a sandbox with either the username you used when you logged into it, or the alias you gave the sandbox when you created it. Run \"<%= config.bin %> org list\" to view all your orgs, including sandboxes, and their aliases.\nBoth the sandbox and the associated production org must already be authenticated with the CLI to successfully delete the sandbox.",
1086
+ "description": "Enabling 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 source tracking operations are executed when working with the org.\n\nThis command throws an error if the org doesn't support tracking. Examples of orgs that don't support source tracking include Developer Edition orgs, production orgs, Partial Copy sandboxes, and Full sandboxes.",
859
1087
  "examples": [
860
- "Delete a sandbox with alias my-sandbox:\n<%= config.bin %> <%= command.id %> --target-org my-sandbox",
861
- "Specify a username instead of an alias:\n<%= config.bin %> <%= command.id %> --target-org myusername@example.com.qa",
862
- "Delete the sandbox without prompting to confirm:\n<%= config.bin %> <%= command.id %> --target-org my-sandbox --no-prompt"
1088
+ "Enable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
1089
+ "Enable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
1090
+ "Enable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
863
1091
  ],
864
1092
  "flags": {
865
1093
  "json": {
@@ -878,237 +1106,9 @@
878
1106
  "type": "option"
879
1107
  },
880
1108
  "target-org": {
881
- "aliases": [
882
- "targetusername",
883
- "u"
884
- ],
885
1109
  "char": "o",
886
- "deprecateAliases": true,
887
1110
  "name": "target-org",
888
- "required": true,
889
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
890
- "hasDynamicHelp": true,
891
- "multiple": false,
892
- "type": "option"
893
- },
894
- "no-prompt": {
895
- "char": "p",
896
- "name": "no-prompt",
897
- "summary": "Don't prompt the user to confirm the deletion.",
898
- "allowNo": false,
899
- "type": "boolean"
900
- }
901
- },
902
- "hasDynamicHelp": true,
903
- "hiddenAliases": [],
904
- "id": "org:delete:sandbox",
905
- "pluginAlias": "@salesforce/plugin-org",
906
- "pluginName": "@salesforce/plugin-org",
907
- "pluginType": "core",
908
- "strict": true,
909
- "summary": "Delete a sandbox.",
910
- "enableJsonFlag": true,
911
- "isESM": true,
912
- "relativePath": [
913
- "lib",
914
- "commands",
915
- "org",
916
- "delete",
917
- "sandbox.js"
918
- ],
919
- "aliasPermutations": [
920
- "env:delete:sandbox",
921
- "delete:env:sandbox",
922
- "delete:sandbox:env",
923
- "env:sandbox:delete",
924
- "sandbox:env:delete",
925
- "sandbox:delete:env"
926
- ],
927
- "permutations": [
928
- "org:delete:sandbox",
929
- "delete:org:sandbox",
930
- "delete:sandbox:org",
931
- "org:sandbox:delete",
932
- "sandbox:org:delete",
933
- "sandbox:delete:org"
934
- ]
935
- },
936
- "org:delete:scratch": {
937
- "aliases": [
938
- "env:delete:scratch"
939
- ],
940
- "args": {},
941
- "deprecateAliases": true,
942
- "description": "Salesforce CLI marks the org for deletion in the Dev Hub org and then deletes all local references to the org from your computer.\nSpecify a scratch org with either the username or the alias you gave the scratch org when you created it. Run \"<%= config.bin %> org list\" to view all your orgs, including scratch orgs, and their aliases.",
943
- "examples": [
944
- "Delete a scratch org with alias my-scratch-org:\n<%= config.bin %> <%= command.id %> --target-org my-scratch-org",
945
- "Specify a username instead of an alias:\n<%= config.bin %> <%= command.id %> --target-org test-123456-abcdefg@example.com",
946
- "Delete the scratch org without prompting to confirm :\n<%= config.bin %> <%= command.id %> --target-org my-scratch-org --no-prompt"
947
- ],
948
- "flags": {
949
- "json": {
950
- "description": "Format output as json.",
951
- "helpGroup": "GLOBAL",
952
- "name": "json",
953
- "allowNo": false,
954
- "type": "boolean"
955
- },
956
- "flags-dir": {
957
- "helpGroup": "GLOBAL",
958
- "name": "flags-dir",
959
- "summary": "Import flag values from a directory.",
960
- "hasDynamicHelp": false,
961
- "multiple": false,
962
- "type": "option"
963
- },
964
- "target-org": {
965
- "aliases": [
966
- "targetusername",
967
- "u"
968
- ],
969
- "char": "o",
970
- "deprecateAliases": true,
971
- "name": "target-org",
972
- "required": true,
973
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
974
- "hasDynamicHelp": true,
975
- "multiple": false,
976
- "type": "option"
977
- },
978
- "no-prompt": {
979
- "char": "p",
980
- "name": "no-prompt",
981
- "summary": "Don't prompt the user to confirm the deletion.",
982
- "allowNo": false,
983
- "type": "boolean"
984
- }
985
- },
986
- "hasDynamicHelp": true,
987
- "hiddenAliases": [],
988
- "id": "org:delete:scratch",
989
- "pluginAlias": "@salesforce/plugin-org",
990
- "pluginName": "@salesforce/plugin-org",
991
- "pluginType": "core",
992
- "strict": true,
993
- "summary": "Delete a scratch org.",
994
- "enableJsonFlag": true,
995
- "isESM": true,
996
- "relativePath": [
997
- "lib",
998
- "commands",
999
- "org",
1000
- "delete",
1001
- "scratch.js"
1002
- ],
1003
- "aliasPermutations": [
1004
- "env:delete:scratch",
1005
- "delete:env:scratch",
1006
- "delete:scratch:env",
1007
- "env:scratch:delete",
1008
- "scratch:env:delete",
1009
- "scratch:delete:env"
1010
- ],
1011
- "permutations": [
1012
- "org:delete:scratch",
1013
- "delete:org:scratch",
1014
- "delete:scratch:org",
1015
- "org:scratch:delete",
1016
- "scratch:org:delete",
1017
- "scratch:delete:org"
1018
- ]
1019
- },
1020
- "org:disable:tracking": {
1021
- "aliases": [],
1022
- "args": {},
1023
- "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.",
1024
- "examples": [
1025
- "Disable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
1026
- "Disable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
1027
- "Disable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
1028
- ],
1029
- "flags": {
1030
- "json": {
1031
- "description": "Format output as json.",
1032
- "helpGroup": "GLOBAL",
1033
- "name": "json",
1034
- "allowNo": false,
1035
- "type": "boolean"
1036
- },
1037
- "flags-dir": {
1038
- "helpGroup": "GLOBAL",
1039
- "name": "flags-dir",
1040
- "summary": "Import flag values from a directory.",
1041
- "hasDynamicHelp": false,
1042
- "multiple": false,
1043
- "type": "option"
1044
- },
1045
- "target-org": {
1046
- "char": "o",
1047
- "name": "target-org",
1048
- "noCacheDefault": true,
1049
- "required": true,
1050
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1051
- "hasDynamicHelp": true,
1052
- "multiple": false,
1053
- "type": "option"
1054
- }
1055
- },
1056
- "hasDynamicHelp": true,
1057
- "hiddenAliases": [],
1058
- "id": "org:disable:tracking",
1059
- "pluginAlias": "@salesforce/plugin-org",
1060
- "pluginName": "@salesforce/plugin-org",
1061
- "pluginType": "core",
1062
- "strict": true,
1063
- "summary": "Prevent Salesforce CLI from tracking changes in your source files between your project and an org.",
1064
- "enableJsonFlag": true,
1065
- "isESM": true,
1066
- "relativePath": [
1067
- "lib",
1068
- "commands",
1069
- "org",
1070
- "disable",
1071
- "tracking.js"
1072
- ],
1073
- "aliasPermutations": [],
1074
- "permutations": [
1075
- "org:disable:tracking",
1076
- "disable:org:tracking",
1077
- "disable:tracking:org",
1078
- "org:tracking:disable",
1079
- "tracking:org:disable",
1080
- "tracking:disable:org"
1081
- ]
1082
- },
1083
- "org:enable:tracking": {
1084
- "aliases": [],
1085
- "args": {},
1086
- "description": "Enabling 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 source tracking operations are executed when working with the org.\n\nThis command throws an error if the org doesn't support tracking. Examples of orgs that don't support source tracking include Developer Edition orgs, production orgs, Partial Copy sandboxes, and Full sandboxes.",
1087
- "examples": [
1088
- "Enable source tracking for an org with alias \"myscratch\":\n<%= config.bin %> <%= command.id %> --target-org myscratch",
1089
- "Enable source tracking for an org using a username:\n<%= config.bin %> <%= command.id %> --target-org you@example.com",
1090
- "Enable source tracking for your default org:\n<%= config.bin %> <%= command.id %>"
1091
- ],
1092
- "flags": {
1093
- "json": {
1094
- "description": "Format output as json.",
1095
- "helpGroup": "GLOBAL",
1096
- "name": "json",
1097
- "allowNo": false,
1098
- "type": "boolean"
1099
- },
1100
- "flags-dir": {
1101
- "helpGroup": "GLOBAL",
1102
- "name": "flags-dir",
1103
- "summary": "Import flag values from a directory.",
1104
- "hasDynamicHelp": false,
1105
- "multiple": false,
1106
- "type": "option"
1107
- },
1108
- "target-org": {
1109
- "char": "o",
1110
- "name": "target-org",
1111
- "noCacheDefault": true,
1111
+ "noCacheDefault": true,
1112
1112
  "required": true,
1113
1113
  "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1114
1114
  "hasDynamicHelp": true,
@@ -1402,132 +1402,15 @@
1402
1402
  "metadata:list:org"
1403
1403
  ]
1404
1404
  },
1405
- "org:open:agent": {
1406
- "aliases": [],
1407
- "args": {},
1408
- "description": "Use the --name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's API name, go to Setup in your org and navigate to the agent's details page.\n\nTo generate the URL but not launch it in your browser, specify --url-only.\n\nTo open Agent Builder 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.",
1409
- "examples": [
1410
- "Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:\n$ <%= config.bin %> <%= command.id %> --name Coral_Cloud_Agent",
1411
- "Open the agent in an incognito window of your default browser:\n$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent:",
1412
- "Open the agent in an org with alias MyTestOrg1 using the Firefox browser:\n$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent"
1413
- ],
1414
- "flags": {
1415
- "json": {
1416
- "description": "Format output as json.",
1417
- "helpGroup": "GLOBAL",
1418
- "name": "json",
1419
- "allowNo": false,
1420
- "type": "boolean"
1421
- },
1422
- "flags-dir": {
1423
- "helpGroup": "GLOBAL",
1424
- "name": "flags-dir",
1425
- "summary": "Import flag values from a directory.",
1426
- "hasDynamicHelp": false,
1427
- "multiple": false,
1428
- "type": "option"
1429
- },
1430
- "target-org": {
1431
- "char": "o",
1432
- "name": "target-org",
1433
- "noCacheDefault": true,
1434
- "required": true,
1435
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1436
- "hasDynamicHelp": true,
1437
- "multiple": false,
1438
- "type": "option"
1439
- },
1440
- "api-version": {
1441
- "description": "Override the api version used for api requests made by this command",
1442
- "name": "api-version",
1443
- "hasDynamicHelp": false,
1444
- "multiple": false,
1445
- "type": "option"
1446
- },
1447
- "name": {
1448
- "char": "n",
1449
- "name": "name",
1450
- "required": true,
1451
- "summary": "API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.",
1452
- "hasDynamicHelp": false,
1453
- "multiple": false,
1454
- "type": "option"
1455
- },
1456
- "private": {
1457
- "exclusive": [
1458
- "url-only",
1459
- "browser"
1460
- ],
1461
- "name": "private",
1462
- "summary": "Open the org in the default browser using private (incognito) mode.",
1463
- "allowNo": false,
1464
- "type": "boolean"
1465
- },
1466
- "browser": {
1467
- "char": "b",
1468
- "exclusive": [
1469
- "url-only",
1470
- "private"
1471
- ],
1472
- "name": "browser",
1473
- "summary": "Browser where the org opens.",
1474
- "hasDynamicHelp": false,
1475
- "multiple": false,
1476
- "options": [
1477
- "chrome",
1478
- "edge",
1479
- "firefox"
1480
- ],
1481
- "type": "option"
1482
- },
1483
- "url-only": {
1484
- "aliases": [
1485
- "urlonly"
1486
- ],
1487
- "char": "r",
1488
- "deprecateAliases": true,
1489
- "name": "url-only",
1490
- "summary": "Display navigation URL, but don’t launch browser.",
1491
- "allowNo": false,
1492
- "type": "boolean"
1493
- }
1494
- },
1495
- "hasDynamicHelp": true,
1496
- "hiddenAliases": [],
1497
- "id": "org:open:agent",
1498
- "pluginAlias": "@salesforce/plugin-org",
1499
- "pluginName": "@salesforce/plugin-org",
1500
- "pluginType": "core",
1501
- "state": "beta",
1502
- "strict": true,
1503
- "summary": "Open an agent in your org's Agent Builder UI in a browser.",
1504
- "enableJsonFlag": true,
1505
- "isESM": true,
1506
- "relativePath": [
1507
- "lib",
1508
- "commands",
1509
- "org",
1510
- "open",
1511
- "agent.js"
1512
- ],
1513
- "aliasPermutations": [],
1514
- "permutations": [
1515
- "org:open:agent",
1516
- "open:org:agent",
1517
- "open:agent:org",
1518
- "org:agent:open",
1519
- "agent:org:open",
1520
- "agent:open:org"
1521
- ]
1522
- },
1523
1405
  "org:refresh:sandbox": {
1524
1406
  "aliases": [],
1525
1407
  "args": {},
1526
- "description": "Refreshing a sandbox copies the metadata, and optionally data, from your source org to the refreshed sandbox org. You can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as its license type or template ID.\n\nYou're not allowed to change the sandbox name when you refresh it with this command. If you want to change the sandbox name, first delete it with the \"org delete sandbox\" command. And then recreate it with the \"org create sandbox\" command and give it a new name.",
1408
+ "description": "Refreshing a sandbox copies the metadata, and optionally data, from your source org to the refreshed sandbox org. You can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as its license type or template ID. You can also use the --source-id or --source-sandbox-name flags to change the refreshed sandbox org's original source org to a new org; in this case, the refreshed sandbox org's metadata is updated with the new source org's metadata.\n\nYou're not allowed to change the sandbox name when you refresh it with this command. If you want to change the sandbox name, first delete it with the \"org delete sandbox\" command. And then recreate it with the \"org create sandbox\" command and give it a new name.",
1527
1409
  "examples": [
1528
1410
  "Refresh the sandbox named \"devSbx1\". The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> --name devSbx1 --target-org prodOrg",
1529
1411
  "Refresh the sandbox named \"devSbx2\", and override the configuration of the refreshed sandbox with the properties in the specified defintion file. The default target org is the production org, so you don't need to specify the `--target-org` flag in this case.\n<%= config.bin %> <%= command.id %> --name devSbx2 --definition-file devSbx2-config.json",
1530
- "Refresh the sandbox using the name defined in the definition file. The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> --definition-file devSbx3-config.json --target-org prodOrg"
1412
+ "Refresh the sandbox using the name defined in the definition file. The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> --definition-file devSbx3-config.json --target-org prodOrg",
1413
+ "Refresh the sandbox named \"devSbx2\" by changing its original source org to be a sandbox called \"devSbx3\":\n<%= config.bin %> <%= command.id %> --name devSbx2 --source-sandbox-name devSbx3 --target-org prodOrg"
1531
1414
  ],
1532
1415
  "flags": {
1533
1416
  "json": {
@@ -1577,6 +1460,29 @@
1577
1460
  "multiple": false,
1578
1461
  "type": "option"
1579
1462
  },
1463
+ "source-sandbox-name": {
1464
+ "description": "The value of --source-sandbox-name must be an existing sandbox. The new source sandbox, and the refreshed 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 refreshing an existing sandbox, but not both.",
1465
+ "exclusive": [
1466
+ "source-id"
1467
+ ],
1468
+ "name": "source-sandbox-name",
1469
+ "summary": "Name of the sandbox org that becomes the new source org for the refreshed sandbox.",
1470
+ "hasDynamicHelp": false,
1471
+ "multiple": false,
1472
+ "type": "option"
1473
+ },
1474
+ "source-id": {
1475
+ "char": "i",
1476
+ "description": "The value of --source-id must be an existing sandbox. The new source sandbox, and the refreshed 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-id or --source-sandbox-name when refreshing an existing sandbox, but not both.",
1477
+ "exclusive": [
1478
+ "source-sandbox-name"
1479
+ ],
1480
+ "name": "source-id",
1481
+ "summary": "ID of the sandbox org that becomes the new source org for the refreshed sandbox.",
1482
+ "hasDynamicHelp": false,
1483
+ "multiple": false,
1484
+ "type": "option"
1485
+ },
1580
1486
  "async": {
1581
1487
  "description": "The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue to use the CLI. To check the status of the sandbox refresh, run \"<%= config.bin %> org resume sandbox\".",
1582
1488
  "exclusive": [
@@ -1648,6 +1554,124 @@
1648
1554
  "sandbox:refresh:org"
1649
1555
  ]
1650
1556
  },
1557
+ "org:open:agent": {
1558
+ "aliases": [],
1559
+ "args": {},
1560
+ "description": "Use the --name flag to open an agent using its API name in the Agent Builder UI of your org. To find the agent's API name, go to Setup in your org and navigate to the agent's details page.\n\nTo generate the URL but not launch it in your browser, specify --url-only.\n\nTo open Agent Builder 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.",
1561
+ "examples": [
1562
+ "Open the agent with API name Coral_Cloud_Agent in your default org using your default browser:\n$ <%= config.bin %> <%= command.id %> --name Coral_Cloud_Agent",
1563
+ "Open the agent in an incognito window of your default browser:\n$ <%= config.bin %> <%= command.id %> --private --name Coral_Cloud_Agent:",
1564
+ "Open the agent in an org with alias MyTestOrg1 using the Firefox browser:\n$ <%= config.bin %> <%= command.id %> --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent"
1565
+ ],
1566
+ "flags": {
1567
+ "json": {
1568
+ "description": "Format output as json.",
1569
+ "helpGroup": "GLOBAL",
1570
+ "name": "json",
1571
+ "allowNo": false,
1572
+ "type": "boolean"
1573
+ },
1574
+ "flags-dir": {
1575
+ "helpGroup": "GLOBAL",
1576
+ "name": "flags-dir",
1577
+ "summary": "Import flag values from a directory.",
1578
+ "hasDynamicHelp": false,
1579
+ "multiple": false,
1580
+ "type": "option"
1581
+ },
1582
+ "target-org": {
1583
+ "char": "o",
1584
+ "name": "target-org",
1585
+ "noCacheDefault": true,
1586
+ "required": true,
1587
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1588
+ "hasDynamicHelp": true,
1589
+ "multiple": false,
1590
+ "type": "option"
1591
+ },
1592
+ "api-version": {
1593
+ "description": "Override the api version used for api requests made by this command",
1594
+ "name": "api-version",
1595
+ "hasDynamicHelp": false,
1596
+ "multiple": false,
1597
+ "type": "option"
1598
+ },
1599
+ "name": {
1600
+ "char": "n",
1601
+ "name": "name",
1602
+ "required": true,
1603
+ "summary": "API name, also known as developer name, of the agent you want to open in the org's Agent Builder UI.",
1604
+ "hasDynamicHelp": false,
1605
+ "multiple": false,
1606
+ "type": "option"
1607
+ },
1608
+ "private": {
1609
+ "exclusive": [
1610
+ "url-only",
1611
+ "browser"
1612
+ ],
1613
+ "name": "private",
1614
+ "summary": "Open the org in the default browser using private (incognito) mode.",
1615
+ "allowNo": false,
1616
+ "type": "boolean"
1617
+ },
1618
+ "browser": {
1619
+ "char": "b",
1620
+ "exclusive": [
1621
+ "url-only",
1622
+ "private"
1623
+ ],
1624
+ "name": "browser",
1625
+ "summary": "Browser where the org opens.",
1626
+ "hasDynamicHelp": false,
1627
+ "multiple": false,
1628
+ "options": [
1629
+ "chrome",
1630
+ "edge",
1631
+ "firefox"
1632
+ ],
1633
+ "type": "option"
1634
+ },
1635
+ "url-only": {
1636
+ "aliases": [
1637
+ "urlonly"
1638
+ ],
1639
+ "char": "r",
1640
+ "deprecateAliases": true,
1641
+ "name": "url-only",
1642
+ "summary": "Display navigation URL, but don’t launch browser.",
1643
+ "allowNo": false,
1644
+ "type": "boolean"
1645
+ }
1646
+ },
1647
+ "hasDynamicHelp": true,
1648
+ "hiddenAliases": [],
1649
+ "id": "org:open:agent",
1650
+ "pluginAlias": "@salesforce/plugin-org",
1651
+ "pluginName": "@salesforce/plugin-org",
1652
+ "pluginType": "core",
1653
+ "state": "beta",
1654
+ "strict": true,
1655
+ "summary": "Open an agent in your org's Agent Builder UI in a browser.",
1656
+ "enableJsonFlag": true,
1657
+ "isESM": true,
1658
+ "relativePath": [
1659
+ "lib",
1660
+ "commands",
1661
+ "org",
1662
+ "open",
1663
+ "agent.js"
1664
+ ],
1665
+ "aliasPermutations": [],
1666
+ "permutations": [
1667
+ "org:open:agent",
1668
+ "open:org:agent",
1669
+ "open:agent:org",
1670
+ "org:agent:open",
1671
+ "agent:org:open",
1672
+ "agent:open:org"
1673
+ ]
1674
+ },
1651
1675
  "org:resume:sandbox": {
1652
1676
  "aliases": [
1653
1677
  "env:resume:sandbox"
@@ -1851,5 +1875,5 @@
1851
1875
  ]
1852
1876
  }
1853
1877
  },
1854
- "version": "5.6.3"
1878
+ "version": "5.7.1"
1855
1879
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-org",
3
3
  "description": "Commands to interact with Salesforce orgs",
4
- "version": "5.6.3",
4
+ "version": "5.7.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^4.2.10",
9
9
  "@oclif/multi-stage-output": "^0.8.12",
10
- "@salesforce/core": "^8.9.1",
10
+ "@salesforce/core": "^8.10.0",
11
11
  "@salesforce/kit": "^3.2.3",
12
12
  "@salesforce/sf-plugins-core": "^12.2.1",
13
13
  "@salesforce/source-deploy-retrieve": "^12.19.0",
@@ -24,9 +24,9 @@
24
24
  "@salesforce/dev-scripts": "^10.2.12",
25
25
  "@salesforce/plugin-command-reference": "^3.1.49",
26
26
  "@salesforce/ts-sinon": "^1.4.30",
27
- "eslint-plugin-sf-plugin": "^1.20.19",
27
+ "eslint-plugin-sf-plugin": "^1.20.20",
28
28
  "moment": "^2.30.1",
29
- "oclif": "^4.17.43",
29
+ "oclif": "^4.17.44",
30
30
  "ts-node": "^10.9.2",
31
31
  "typescript": "^5.8.3"
32
32
  },
@@ -227,7 +227,7 @@
227
227
  "exports": "./lib/index.js",
228
228
  "type": "module",
229
229
  "sfdx": {
230
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.6.3.crt",
231
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.6.3.sig"
230
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.7.1.crt",
231
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/5.7.1.sig"
232
232
  }
233
233
  }