@salesforce/plugin-org 3.0.1 → 3.0.2

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
@@ -160,7 +160,7 @@ FLAG DESCRIPTIONS
160
160
  for a number of minutes, the client exits. Specify a longer wait time if timeouts occur frequently.
161
161
  ```
162
162
 
163
- _See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/force/org/clone.ts)_
163
+ _See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/force/org/clone.ts)_
164
164
 
165
165
  ## `sf force org create`
166
166
 
@@ -208,7 +208,7 @@ EXAMPLES
208
208
  $ sf force org create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
209
209
  ```
210
210
 
211
- _See code: [src/commands/force/org/create.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/force/org/create.ts)_
211
+ _See code: [src/commands/force/org/create.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/force/org/create.ts)_
212
212
 
213
213
  ## `sf force org delete`
214
214
 
@@ -240,7 +240,7 @@ EXAMPLES
240
240
  $ sf force org delete -u MyOrgAlias -p
241
241
  ```
242
242
 
243
- _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/force/org/delete.ts)_
243
+ _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/force/org/delete.ts)_
244
244
 
245
245
  ## `sf force org status`
246
246
 
@@ -278,7 +278,7 @@ EXAMPLES
278
278
  $ sf force org status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
279
279
  ```
280
280
 
281
- _See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/force/org/status.ts)_
281
+ _See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/force/org/status.ts)_
282
282
 
283
283
  ## `sf org create sandbox`
284
284
 
@@ -383,7 +383,7 @@ FLAG DESCRIPTIONS
383
383
  sandbox.
384
384
  ```
385
385
 
386
- _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/create/sandbox.ts)_
386
+ _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/create/sandbox.ts)_
387
387
 
388
388
  ## `sf org create scratch`
389
389
 
@@ -536,7 +536,7 @@ FLAG DESCRIPTIONS
536
536
  Omit this flag to have Salesforce generate a unique username for your org.
537
537
  ```
538
538
 
539
- _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/create/scratch.ts)_
539
+ _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/create/scratch.ts)_
540
540
 
541
541
  ## `sf org delete sandbox`
542
542
 
@@ -560,6 +560,8 @@ DESCRIPTION
560
560
  all local references to the org from your computer.
561
561
  Specify a sandbox with either the username you used when you logged into it, or the alias you gave the sandbox when
562
562
  you created it. Run "sf org list" to view all your orgs, including sandboxes, and their aliases.
563
+ Both the sandbox and the associated production org must already be authenticated with the CLI to successfully delete
564
+ the sandbox.
563
565
 
564
566
  ALIASES
565
567
  $ sf env delete sandbox
@@ -573,12 +575,12 @@ EXAMPLES
573
575
 
574
576
  $ sf org delete sandbox --target-org myusername@example.com.qa
575
577
 
576
- Delete the sandbox without prompting to confirm :
578
+ Delete the sandbox without prompting to confirm:
577
579
 
578
580
  $ sf org delete sandbox --target-org my-sandbox --no-prompt
579
581
  ```
580
582
 
581
- _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/delete/sandbox.ts)_
583
+ _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/delete/sandbox.ts)_
582
584
 
583
585
  ## `sf org delete scratch`
584
586
 
@@ -620,7 +622,7 @@ EXAMPLES
620
622
  $ sf org delete scratch --target-org my-scratch-org --no-prompt
621
623
  ```
622
624
 
623
- _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/delete/scratch.ts)_
625
+ _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/delete/scratch.ts)_
624
626
 
625
627
  ## `sf org display`
626
628
 
@@ -663,7 +665,7 @@ EXAMPLES
663
665
  $ sf org display --target-org TestOrg1 --verbose
664
666
  ```
665
667
 
666
- _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/display.ts)_
668
+ _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/display.ts)_
667
669
 
668
670
  ## `sf org list`
669
671
 
@@ -701,7 +703,7 @@ EXAMPLES
701
703
  $ sf org list --clean
702
704
  ```
703
705
 
704
- _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/list.ts)_
706
+ _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/list.ts)_
705
707
 
706
708
  ## `sf org list metadata`
707
709
 
@@ -765,7 +767,7 @@ FLAG DESCRIPTIONS
765
767
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
766
768
  ```
767
769
 
768
- _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/list/metadata.ts)_
770
+ _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/list/metadata.ts)_
769
771
 
770
772
  ## `sf org list metadata-types`
771
773
 
@@ -818,7 +820,7 @@ FLAG DESCRIPTIONS
818
820
  Override the api version used for api requests made by this command
819
821
  ```
820
822
 
821
- _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/list/metadata-types.ts)_
823
+ _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/list/metadata-types.ts)_
822
824
 
823
825
  ## `sf org open`
824
826
 
@@ -883,7 +885,7 @@ EXAMPLES
883
885
  $ sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
884
886
  ```
885
887
 
886
- _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/open.ts)_
888
+ _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/open.ts)_
887
889
 
888
890
  ## `sf org resume sandbox`
889
891
 
@@ -945,7 +947,7 @@ FLAG DESCRIPTIONS
945
947
  returns the job ID. To resume checking the sandbox creation, rerun this command.
946
948
  ```
947
949
 
948
- _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/resume/sandbox.ts)_
950
+ _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/resume/sandbox.ts)_
949
951
 
950
952
  ## `sf org resume scratch`
951
953
 
@@ -991,6 +993,6 @@ FLAG DESCRIPTIONS
991
993
  The job ID is valid for 24 hours after you start the scratch org creation.
992
994
  ```
993
995
 
994
- _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/2.11.9/src/commands/org/resume/scratch.ts)_
996
+ _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.2/src/commands/org/resume/scratch.ts)_
995
997
 
996
998
  <!-- commandsstop -->
@@ -3,7 +3,7 @@ export interface SandboxDeleteResponse {
3
3
  orgId: string;
4
4
  username: string;
5
5
  }
6
- export default class EnvDeleteSandbox extends SfCommand<SandboxDeleteResponse> {
6
+ export default class DeleteSandbox extends SfCommand<SandboxDeleteResponse> {
7
7
  static readonly summary: string;
8
8
  static readonly description: string;
9
9
  static readonly examples: string[];
@@ -6,12 +6,12 @@
6
6
  */
7
7
  import { dirname } from 'node:path';
8
8
  import { fileURLToPath } from 'node:url';
9
- import { AuthInfo, AuthRemover, Messages, Org, StateAggregator } from '@salesforce/core';
9
+ import { AuthInfo, AuthRemover, Messages, Org, SfError, StateAggregator } from '@salesforce/core';
10
10
  import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
11
11
  import { orgThatMightBeDeleted } from '../../../shared/flags.js';
12
12
  Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
13
13
  const messages = Messages.loadMessages('@salesforce/plugin-org', 'delete_sandbox');
14
- export default class EnvDeleteSandbox extends SfCommand {
14
+ export default class DeleteSandbox extends SfCommand {
15
15
  static summary = messages.getMessage('summary');
16
16
  static description = messages.getMessage('description');
17
17
  static examples = messages.getMessages('examples');
@@ -28,12 +28,28 @@ export default class EnvDeleteSandbox extends SfCommand {
28
28
  }),
29
29
  };
30
30
  async run() {
31
- const flags = (await this.parse(EnvDeleteSandbox)).flags;
31
+ const flags = (await this.parse(DeleteSandbox)).flags;
32
32
  const username = flags['target-org'];
33
- const orgId = (await AuthInfo.create({ username })).getFields().orgId;
34
- const isSandbox = await (await StateAggregator.getInstance()).sandboxes.hasFile(orgId);
35
- if (!isSandbox) {
36
- throw messages.createError('error.isNotSandbox', [username]);
33
+ let orgId;
34
+ try {
35
+ const sbxAuthFields = (await AuthInfo.create({ username })).getFields();
36
+ orgId = sbxAuthFields.orgId;
37
+ }
38
+ catch (error) {
39
+ if (error instanceof SfError && error.name === 'NamedOrgNotFoundError') {
40
+ error.actions = [
41
+ `Ensure the alias or username for the ${username} org is correct.`,
42
+ `Ensure the ${username} org has been authenticated with the CLI.`,
43
+ ];
44
+ }
45
+ throw error;
46
+ }
47
+ // The StateAggregator identifies sandbox auth files with a pattern of
48
+ // <sandbox_ID>.sandbox.json. E.g., 00DZ0000009T3VZMA0.sandbox.json
49
+ const stateAggregator = await StateAggregator.getInstance();
50
+ const cliCreatedSandbox = await stateAggregator.sandboxes.hasFile(orgId);
51
+ if (!cliCreatedSandbox) {
52
+ throw messages.createError('error.unknownSandbox', [username]);
37
53
  }
38
54
  if (flags['no-prompt'] || (await this.confirm(messages.getMessage('prompt.confirm', [username])))) {
39
55
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src/commands/org/delete/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AAOnF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAgC;IACrE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACjD,MAAM,CAAU,gBAA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AAQ,CAAC,CAAC,CAAC,CAAC;iBACxE;qBAAM,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,IAAI,KAAK,iBAAiB,EAAE;oBAC7D,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;iBACxE;qBAAM;oBACL,MAAM,CAAC,CAAC;iBACT;aACF;SACF;QACD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC7B,CAAC"}
@@ -3,7 +3,7 @@ export interface ScratchDeleteResponse {
3
3
  orgId: string;
4
4
  username: string;
5
5
  }
6
- export default class EnvDeleteScratch extends SfCommand<ScratchDeleteResponse> {
6
+ export default class DeleteScratch extends SfCommand<ScratchDeleteResponse> {
7
7
  static readonly summary: string;
8
8
  static readonly description: string;
9
9
  static readonly examples: string[];
@@ -11,7 +11,7 @@ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
11
11
  import { orgThatMightBeDeleted } from '../../../shared/flags.js';
12
12
  Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
13
13
  const messages = Messages.loadMessages('@salesforce/plugin-org', 'delete_scratch');
14
- export default class EnvDeleteScratch extends SfCommand {
14
+ export default class DeleteScratch extends SfCommand {
15
15
  static summary = messages.getMessage('summary');
16
16
  static description = messages.getMessage('description');
17
17
  static examples = messages.getMessages('examples');
@@ -28,7 +28,7 @@ export default class EnvDeleteScratch extends SfCommand {
28
28
  }),
29
29
  };
30
30
  async run() {
31
- const flags = (await this.parse(EnvDeleteScratch)).flags;
31
+ const flags = (await this.parse(DeleteScratch)).flags;
32
32
  const resolvedUsername = flags['target-org'];
33
33
  const orgId = (await AuthInfo.create({ username: resolvedUsername })).getFields().orgId;
34
34
  if (flags['no-prompt'] || (await this.confirm(messages.getMessage('prompt.confirm', [resolvedUsername])))) {
@@ -1 +1 @@
1
- {"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/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AE,EAAE,CAAC;aACzE;YAAC,OAAO,CAAC,EAAE;gBACV,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,IAAI,KAAK,qBAAqB,EAAE;oBAC1D,uDAAuD;oBACvD,mCAAmC;oBACnC,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC,MAAM,EAAE,CAAC;oBAC/C,MAAM,WAAW,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;oBAC/C,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;iBACrE;qBAAM,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,IAAI,KAAK,oBAAoB,EAAE;oBAChE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;iBAChF;qBAAM;oBACL,MAAM,CAAC,CAAC;iBACT;aACF;SACF;QACD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,CAAC;IAC/C,CAAC"}
@@ -8,5 +8,4 @@ export declare class SandboxReporter {
8
8
  value: string | number | undefined;
9
9
  }>;
10
10
  };
11
- private static getSecondsToHuman;
12
11
  }
@@ -1,8 +1,8 @@
1
- import { Duration } from '@salesforce/kit';
1
+ import { getSecondsToHuman } from './timeUtils.js';
2
2
  export class SandboxReporter {
3
3
  static sandboxProgress(update) {
4
4
  const { remainingWait, interval, sandboxProcessObj, waitingOnAuth } = update;
5
- const waitTime = SandboxReporter.getSecondsToHuman(remainingWait);
5
+ const waitTime = getSecondsToHuman(remainingWait);
6
6
  const waitTimeMsg = `Sleeping ${interval} seconds. Will wait ${waitTime} more before timing out.`;
7
7
  const sandboxIdentifierMsg = `${sandboxProcessObj.SandboxName}(${sandboxProcessObj.Id})`;
8
8
  const waitingOnAuthMessage = waitingOnAuth ? ', waiting on JWT auth' : '';
@@ -30,14 +30,5 @@ export class SandboxReporter {
30
30
  ];
31
31
  return { sandboxReadyForUse, data };
32
32
  }
33
- static getSecondsToHuman(waitTimeInSec) {
34
- const hours = Duration.hours(Math.floor(waitTimeInSec / 3600));
35
- const minutes = Duration.minutes(Math.floor((waitTimeInSec % 3600) / 60));
36
- const seconds = Duration.seconds(Math.floor(waitTimeInSec % 60));
37
- const hDisplay = hours.hours > 0 ? hours.toString() + ' ' : '';
38
- const mDisplay = minutes.minutes > 0 ? minutes.toString() + ' ' : '';
39
- const sDisplay = seconds.seconds > 0 ? seconds.toString() : '';
40
- return (hDisplay + mDisplay + sDisplay).trim();
41
- }
42
33
  }
43
34
  //# sourceMappingURL=sandboxReporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxReporter.js","sourceRoot":"","sources":["../../src/shared/sandboxReporter.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,OAAO,eAAe;IACnB,MAAM,CAAC,eAAe,CAAC,MAAmB;QAC/C,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,iBAAiB,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QAE7E,MAAM,QAAQ,GAAW,eAAe,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAC1E,MAAM,WAAW,GAAG,YAAY,QAAQ,uBAAuB,QAAQ,0BAA0B,CAAC;QAClG,MAAM,oBAAoB,GAAG,GAAG,iBAAiB,CAAC,WAAW,IAAI,iBAAiB,CAAC,EAAE,GAAG,CAAC;QACzF,MAAM,oBAAoB,GAAW,aAAa,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC;QAClF,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,YAAY,cAAc,oBAAoB,GAAG,CAAC;QAElG,OAAO,mBAAmB,oBAAoB,OAAO,iBAAiB,CAAC,MAAM,IAAI,iBAAiB,KAAK,WAAW,EAAE,CAAC;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E,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,CAAC,QAAQ,EAAE;YACtD,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,iBAAiB,CAAC,mBAAmB,EAAE;YACnE,EAAE,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,iBAAiB,CAAC,WAAW,EAAE;YAC7D,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,CAAC,WAAW,EAAE;YAC5D,EAAE,GAAG,EAAE,6BAA6B,EAAE,KAAK,EAAE,UAAU,CAAC,YAAY,EAAE;SACvE,CAAC;QAEF,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC;IACtC,CAAC;CACF"}
@@ -6,6 +6,7 @@ Delete a sandbox.
6
6
 
7
7
  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.
8
8
  Specify 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.
9
+ Both the sandbox and the associated production org must already be authenticated with the CLI to successfully delete the sandbox.
9
10
 
10
11
  # examples
11
12
 
@@ -17,7 +18,7 @@ Specify a sandbox with either the username you used when you logged into it, or
17
18
 
18
19
  <%= config.bin %> <%= command.id %> --target-org myusername@example.com.qa
19
20
 
20
- - Delete the sandbox without prompting to confirm :
21
+ - Delete the sandbox without prompting to confirm:
21
22
 
22
23
  <%= config.bin %> <%= command.id %> --target-org my-sandbox --no-prompt
23
24
 
@@ -41,6 +42,11 @@ Successfully marked sandbox %s for deletion.
41
42
 
42
43
  There is no sandbox with the username %s.
43
44
 
44
- # error.isNotSandbox
45
+ # error.unknownSandbox
45
46
 
46
- The target org, %s, is not a sandbox.
47
+ The org with username: %s is not known by the CLI to be a sandbox
48
+
49
+ # error.unknownSandbox.actions
50
+
51
+ Re-authenticate the sandbox with the CLI and try again.
52
+ Ensure the CLI has authenticated with the sandbox's production org.