@salesforce/plugin-org 3.0.5 → 3.0.6

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
@@ -107,7 +107,9 @@ the [SandboxNuts](https://github.com/salesforcecli/plugin-org/actions/workflows/
107
107
  - [`sf org create scratch`](#sf-org-create-scratch)
108
108
  - [`sf org delete sandbox`](#sf-org-delete-sandbox)
109
109
  - [`sf org delete scratch`](#sf-org-delete-scratch)
110
+ - [`sf org disable tracking`](#sf-org-disable-tracking)
110
111
  - [`sf org display`](#sf-org-display)
112
+ - [`sf org enable tracking`](#sf-org-enable-tracking)
111
113
  - [`sf org list`](#sf-org-list)
112
114
  - [`sf org list metadata`](#sf-org-list-metadata)
113
115
  - [`sf org list metadata-types`](#sf-org-list-metadata-types)
@@ -160,7 +162,7 @@ FLAG DESCRIPTIONS
160
162
  for a number of minutes, the client exits. Specify a longer wait time if timeouts occur frequently.
161
163
  ```
162
164
 
163
- _See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/force/org/clone.ts)_
165
+ _See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/force/org/clone.ts)_
164
166
 
165
167
  ## `sf force org create`
166
168
 
@@ -208,7 +210,7 @@ EXAMPLES
208
210
  $ sf force org create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
209
211
  ```
210
212
 
211
- _See code: [src/commands/force/org/create.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/force/org/create.ts)_
213
+ _See code: [src/commands/force/org/create.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/force/org/create.ts)_
212
214
 
213
215
  ## `sf force org delete`
214
216
 
@@ -240,7 +242,7 @@ EXAMPLES
240
242
  $ sf force org delete -u MyOrgAlias -p
241
243
  ```
242
244
 
243
- _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/force/org/delete.ts)_
245
+ _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/force/org/delete.ts)_
244
246
 
245
247
  ## `sf force org status`
246
248
 
@@ -278,7 +280,7 @@ EXAMPLES
278
280
  $ sf force org status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
279
281
  ```
280
282
 
281
- _See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/force/org/status.ts)_
283
+ _See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/force/org/status.ts)_
282
284
 
283
285
  ## `sf org create sandbox`
284
286
 
@@ -383,7 +385,7 @@ FLAG DESCRIPTIONS
383
385
  sandbox.
384
386
  ```
385
387
 
386
- _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/create/sandbox.ts)_
388
+ _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/create/sandbox.ts)_
387
389
 
388
390
  ## `sf org create scratch`
389
391
 
@@ -536,7 +538,7 @@ FLAG DESCRIPTIONS
536
538
  Omit this flag to have Salesforce generate a unique username for your org.
537
539
  ```
538
540
 
539
- _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/create/scratch.ts)_
541
+ _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/create/scratch.ts)_
540
542
 
541
543
  ## `sf org delete sandbox`
542
544
 
@@ -580,7 +582,7 @@ EXAMPLES
580
582
  $ sf org delete sandbox --target-org my-sandbox --no-prompt
581
583
  ```
582
584
 
583
- _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/delete/sandbox.ts)_
585
+ _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/delete/sandbox.ts)_
584
586
 
585
587
  ## `sf org delete scratch`
586
588
 
@@ -622,7 +624,38 @@ EXAMPLES
622
624
  $ sf org delete scratch --target-org my-scratch-org --no-prompt
623
625
  ```
624
626
 
625
- _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/delete/scratch.ts)_
627
+ _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/delete/scratch.ts)_
628
+
629
+ ## `sf org disable tracking`
630
+
631
+ Disable source tracking in local auth file.
632
+
633
+ ```
634
+ USAGE
635
+ $ sf org disable tracking -o <value> [--json]
636
+
637
+ FLAGS
638
+ -o, --target-org=<value> (required) Username or alias of the target org.
639
+
640
+ GLOBAL FLAGS
641
+ --json Format output as json.
642
+
643
+ DESCRIPTION
644
+ Disable source tracking in local auth file.
645
+
646
+ This has no effect on the org. It stores the setting in the CLI's configuration file for this org so that no source
647
+ tracking operations are executed when working with this org.
648
+
649
+ EXAMPLES
650
+ Disable tracking on an org using an alias
651
+ - sf org disable tracking -o someAlias
652
+ Disable tracking on an org using a username
653
+ - sf org disable tracking -o you@example.com
654
+ Disable tracking on your default org
655
+ - sf org disable tracking
656
+ ```
657
+
658
+ _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/disable/tracking.ts)_
626
659
 
627
660
  ## `sf org display`
628
661
 
@@ -665,7 +698,40 @@ EXAMPLES
665
698
  $ sf org display --target-org TestOrg1 --verbose
666
699
  ```
667
700
 
668
- _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/display.ts)_
701
+ _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/display.ts)_
702
+
703
+ ## `sf org enable tracking`
704
+
705
+ Enable source tracking in local auth file.
706
+
707
+ ```
708
+ USAGE
709
+ $ sf org enable tracking -o <value> [--json]
710
+
711
+ FLAGS
712
+ -o, --target-org=<value> (required) Username or alias of the target org.
713
+
714
+ GLOBAL FLAGS
715
+ --json Format output as json.
716
+
717
+ DESCRIPTION
718
+ Enable source tracking in local auth file.
719
+
720
+ This has no effect on the org. It stores the setting in the CLI's configuration file for this org so that source
721
+ tracking operations are executed when working with this org.
722
+
723
+ This command will throw an error if the org does not support tracking.
724
+
725
+ EXAMPLES
726
+ Enable tracking on an org using an alias
727
+ - sf org enable tracking -o someAlias
728
+ Enable tracking on an org using a username
729
+ - sf org enable tracking -o you@example.com
730
+ Enable tracking on your default org
731
+ - sf org enable tracking
732
+ ```
733
+
734
+ _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/enable/tracking.ts)_
669
735
 
670
736
  ## `sf org list`
671
737
 
@@ -703,7 +769,7 @@ EXAMPLES
703
769
  $ sf org list --clean
704
770
  ```
705
771
 
706
- _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/list.ts)_
772
+ _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/list.ts)_
707
773
 
708
774
  ## `sf org list metadata`
709
775
 
@@ -767,7 +833,7 @@ FLAG DESCRIPTIONS
767
833
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
768
834
  ```
769
835
 
770
- _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/list/metadata.ts)_
836
+ _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/list/metadata.ts)_
771
837
 
772
838
  ## `sf org list metadata-types`
773
839
 
@@ -820,7 +886,7 @@ FLAG DESCRIPTIONS
820
886
  Override the api version used for api requests made by this command
821
887
  ```
822
888
 
823
- _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/list/metadata-types.ts)_
889
+ _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/list/metadata-types.ts)_
824
890
 
825
891
  ## `sf org open`
826
892
 
@@ -885,7 +951,7 @@ EXAMPLES
885
951
  $ sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
886
952
  ```
887
953
 
888
- _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/open.ts)_
954
+ _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/open.ts)_
889
955
 
890
956
  ## `sf org resume sandbox`
891
957
 
@@ -947,7 +1013,7 @@ FLAG DESCRIPTIONS
947
1013
  returns the job ID. To resume checking the sandbox creation, rerun this command.
948
1014
  ```
949
1015
 
950
- _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/resume/sandbox.ts)_
1016
+ _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/resume/sandbox.ts)_
951
1017
 
952
1018
  ## `sf org resume scratch`
953
1019
 
@@ -993,6 +1059,6 @@ FLAG DESCRIPTIONS
993
1059
  The job ID is valid for 24 hours after you start the scratch org creation.
994
1060
  ```
995
1061
 
996
- _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.5/src/commands/org/resume/scratch.ts)_
1062
+ _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.0.6/src/commands/org/resume/scratch.ts)_
997
1063
 
998
1064
  <!-- commandsstop -->
@@ -0,0 +1,14 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export type OrgDisableTrackingResult = {
3
+ tracksSource: boolean;
4
+ username: string;
5
+ };
6
+ export default class OrgDisableTracking extends SfCommand<OrgDisableTrackingResult> {
7
+ static readonly summary: string;
8
+ static readonly description: string;
9
+ static readonly examples: string[];
10
+ static readonly flags: {
11
+ 'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
+ };
13
+ run(): Promise<OrgDisableTrackingResult>;
14
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) 2023, salesforce.com, inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ */
7
+ import { dirname } from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
9
+ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
10
+ import { Messages } from '@salesforce/core';
11
+ Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
12
+ const messages = Messages.loadMessages('@salesforce/plugin-org', 'org.disable.tracking');
13
+ export default class OrgDisableTracking extends SfCommand {
14
+ static summary = messages.getMessage('summary');
15
+ static description = messages.getMessage('description');
16
+ static examples = messages.getMessages('examples');
17
+ static flags = {
18
+ 'target-org': Flags.requiredOrg(),
19
+ };
20
+ async run() {
21
+ const { flags } = await this.parse(OrgDisableTracking);
22
+ await flags['target-org'].setTracksSource(false);
23
+ this.logSuccess(messages.getMessage('success', [flags['target-org'].getUsername()]));
24
+ return {
25
+ tracksSource: await flags['target-org'].tracksSource(),
26
+ username: flags['target-org'].getUsername(),
27
+ };
28
+ }
29
+ }
30
+ //# sourceMappingURL=tracking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../../../src/commands/org/disable/tracking.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,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
6
+ export default class OrgEnableTracking extends SfCommand<OrgEnableTrackingResult> {
7
+ static readonly summary: string;
8
+ static readonly description: string;
9
+ static readonly examples: string[];
10
+ static readonly flags: {
11
+ 'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
+ };
13
+ run(): Promise<OrgEnableTrackingResult>;
14
+ }
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (c) 2023, salesforce.com, inc.
3
+ * All rights reserved.
4
+ * Licensed under the BSD 3-Clause license.
5
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
+ */
7
+ import { dirname } from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
9
+ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
10
+ import { Messages } from '@salesforce/core';
11
+ Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
12
+ const messages = Messages.loadMessages('@salesforce/plugin-org', 'org.enable.tracking');
13
+ export default class OrgEnableTracking extends SfCommand {
14
+ static summary = messages.getMessage('summary');
15
+ static description = messages.getMessage('description');
16
+ static examples = messages.getMessages('examples');
17
+ static flags = {
18
+ 'target-org': Flags.requiredOrg(),
19
+ };
20
+ async run() {
21
+ const { flags } = await this.parse(OrgEnableTracking);
22
+ // can this org do tracking?
23
+ if (!(await flags['target-org'].supportsSourceTracking())) {
24
+ throw messages.createError('error.TrackingNotAvailable');
25
+ }
26
+ await flags['target-org'].setTracksSource(true);
27
+ this.logSuccess(messages.getMessage('success', [flags['target-org'].getUsername()]));
28
+ return {
29
+ tracksSource: await flags['target-org'].tracksSource(),
30
+ username: flags['target-org'].getUsername(),
31
+ };
32
+ }
33
+ }
34
+ //# sourceMappingURL=tracking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracking.js","sourceRoot":"","sources":["../../../../src/commands/org/enable/tracking.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OA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AC,CAAC,CAAC,CAAC;QACrF,OAAO;YACL,YAAY,EAAE,MAAM,KAAK,CAAC,YAAY,CAAC,CAAC,YAAY,EAAE;YACtD,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAY;SACtD,CAAC;IACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ # summary
2
+
3
+ Disable source tracking in local auth file.
4
+
5
+ # description
6
+
7
+ This has no effect on the org. It stores the setting in the CLI's configuration file for this org so that no source tracking operations are executed when working with this org.
8
+
9
+ # examples
10
+
11
+ Disable tracking on an org using an alias
12
+
13
+ - <%= config.bin %> <%= command.id %> -o someAlias
14
+
15
+ Disable tracking on an org using a username
16
+
17
+ - <%= config.bin %> <%= command.id %> -o you@example.com
18
+
19
+ Disable tracking on your default org
20
+
21
+ - <%= config.bin %> <%= command.id %>
22
+
23
+ # success
24
+
25
+ Disabled source tracking for %s.
@@ -0,0 +1,39 @@
1
+ # summary
2
+
3
+ Enable source tracking in local auth file.
4
+
5
+ # description
6
+
7
+ This has no effect on the org. It stores the setting in the CLI's configuration file for this org so that source tracking operations are executed when working with this org.
8
+
9
+ This command will throw an error if the org does not support tracking.
10
+
11
+ # examples
12
+
13
+ Enable tracking on an org using an alias
14
+
15
+ - <%= config.bin %> <%= command.id %> -o someAlias
16
+
17
+ Enable tracking on an org using a username
18
+
19
+ - <%= config.bin %> <%= command.id %> -o you@example.com
20
+
21
+ Enable tracking on your default org
22
+
23
+ - <%= config.bin %> <%= command.id %>
24
+
25
+ # success
26
+
27
+ Enabled source tracking for %s.
28
+
29
+ # error.TrackingNotAvailable
30
+
31
+ This org cannot enable source tracking because the SourceMember object is not available, or you do not have access to it.
32
+
33
+ # error.TrackingNotAvailable.actions
34
+
35
+ - If the org is a sandbox, make sure that your production org has Source Tracking enabled in sandboxes. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_setup_enable_source_tracking_sandboxes.htm.
36
+
37
+ - Make sure that your user can access the SourceMembers table via the tooling API.
38
+
39
+ - If the Org is a production org, source tracking cannot be enabled.
package/oclif.lock CHANGED
@@ -961,12 +961,12 @@
961
961
  resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
962
962
  integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
963
963
 
964
- "@salesforce/cli-plugins-testkit@^5.0.3":
965
- version "5.0.3"
966
- resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-5.0.3.tgz#c1b066d499f9d29f918a9337c37e0d01a9313631"
967
- integrity sha512-fIW7xdyUNb8pPn8hUtIR2zsCD+dXTK7WC0OJG5m+XMM/LTLFTh31ygaKEACbdWlrpJSySfB2WOmOPMx5cRZsPQ==
964
+ "@salesforce/cli-plugins-testkit@^5.0.4":
965
+ version "5.0.4"
966
+ resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-5.0.4.tgz#523c459f43822d7b24bff5117aeda7f77ed5e26c"
967
+ integrity sha512-8pquViVBCd5sF6nBXgLgwymEBE6pSAS376R9qq7rxuV+PSFCC5bnzQaKm2ugY+s5vXKNcV6WcmBHNCQnGv+M7Q==
968
968
  dependencies:
969
- "@salesforce/core" "^5.3.17"
969
+ "@salesforce/core" "^5.3.20"
970
970
  "@salesforce/kit" "^3.0.15"
971
971
  "@salesforce/ts-types" "^2.0.6"
972
972
  "@types/shelljs" "^0.8.15"
@@ -1029,10 +1029,10 @@
1029
1029
  resolved "https://registry.yarnpkg.com/@salesforce/dev-config/-/dev-config-4.1.0.tgz#e529576466d074e7a5f1441236510fef123da01e"
1030
1030
  integrity sha512-2iDDepiIwjXHS5IVY7pwv8jMo4xWosJ7p/UTj+lllpB/gnJiYLhjJPE4Z3FCGFKyvfg5jGaimCd8Ca6bLGsCQA==
1031
1031
 
1032
- "@salesforce/dev-scripts@^7.1.0":
1033
- version "7.1.0"
1034
- resolved "https://registry.yarnpkg.com/@salesforce/dev-scripts/-/dev-scripts-7.1.0.tgz#123708d4f494d8b95464b90c28993141986e84bc"
1035
- integrity sha512-79x6QgENORLyCrr9b4MO2pPq8N7d9ILj83vOtAp5NLreAfjZN/c5TEEHuIZKZ3UaO+hkwbtzv3Qs6CyNxiasWA==
1032
+ "@salesforce/dev-scripts@^7.1.1":
1033
+ version "7.1.1"
1034
+ resolved "https://registry.yarnpkg.com/@salesforce/dev-scripts/-/dev-scripts-7.1.1.tgz#549b58fb7e8c2410ce594c46f780a0907618f19f"
1035
+ integrity sha512-6SL+QDOMZCnmU4Lu2ZCjqsMRcHw96mnjUOPE7b2HcfmfPo2a/hAYUtv8v7UsZ/+3UPbSf+XsLJfUsF15QIUWrg==
1036
1036
  dependencies:
1037
1037
  "@commitlint/cli" "^17.1.2"
1038
1038
  "@commitlint/config-conventional" "^17.1.0"
@@ -1482,6 +1482,114 @@
1482
1482
  "scratch:delete:org"
1483
1483
  ]
1484
1484
  },
1485
+ "org:disable:tracking": {
1486
+ "aliases": [],
1487
+ "args": {},
1488
+ "description": "This has no effect on the org. It stores the setting in the CLI's configuration file for this org so that no source tracking operations are executed when working with this org.",
1489
+ "examples": [
1490
+ "Disable tracking on an org using an alias\n\n- <%= config.bin %> <%= command.id %> -o someAlias\n\nDisable tracking on an org using a username\n\n- <%= config.bin %> <%= command.id %> -o you@example.com\n\nDisable tracking on your default org\n\n- <%= config.bin %> <%= command.id %>"
1491
+ ],
1492
+ "flags": {
1493
+ "json": {
1494
+ "description": "Format output as json.",
1495
+ "helpGroup": "GLOBAL",
1496
+ "name": "json",
1497
+ "allowNo": false,
1498
+ "type": "boolean"
1499
+ },
1500
+ "target-org": {
1501
+ "char": "o",
1502
+ "name": "target-org",
1503
+ "noCacheDefault": true,
1504
+ "required": true,
1505
+ "summary": "Username or alias of the target org.",
1506
+ "hasDynamicHelp": true,
1507
+ "multiple": false,
1508
+ "type": "option"
1509
+ }
1510
+ },
1511
+ "hasDynamicHelp": true,
1512
+ "hiddenAliases": [],
1513
+ "id": "org:disable:tracking",
1514
+ "pluginAlias": "@salesforce/plugin-org",
1515
+ "pluginName": "@salesforce/plugin-org",
1516
+ "pluginType": "core",
1517
+ "strict": true,
1518
+ "summary": "Disable source tracking in local auth file.",
1519
+ "enableJsonFlag": true,
1520
+ "SF_ENV": "SF_ENV",
1521
+ "isESM": true,
1522
+ "relativePath": [
1523
+ "lib",
1524
+ "commands",
1525
+ "org",
1526
+ "disable",
1527
+ "tracking.js"
1528
+ ],
1529
+ "aliasPermutations": [],
1530
+ "permutations": [
1531
+ "org:disable:tracking",
1532
+ "disable:org:tracking",
1533
+ "disable:tracking:org",
1534
+ "org:tracking:disable",
1535
+ "tracking:org:disable",
1536
+ "tracking:disable:org"
1537
+ ]
1538
+ },
1539
+ "org:enable:tracking": {
1540
+ "aliases": [],
1541
+ "args": {},
1542
+ "description": "This has no effect on the org. It stores the setting in the CLI's configuration file for this org so that source tracking operations are executed when working with this org.\n\nThis command will throw an error if the org does not support tracking.",
1543
+ "examples": [
1544
+ "Enable tracking on an org using an alias\n\n- <%= config.bin %> <%= command.id %> -o someAlias\n\nEnable tracking on an org using a username\n\n- <%= config.bin %> <%= command.id %> -o you@example.com\n\nEnable tracking on your default org\n\n- <%= config.bin %> <%= command.id %>"
1545
+ ],
1546
+ "flags": {
1547
+ "json": {
1548
+ "description": "Format output as json.",
1549
+ "helpGroup": "GLOBAL",
1550
+ "name": "json",
1551
+ "allowNo": false,
1552
+ "type": "boolean"
1553
+ },
1554
+ "target-org": {
1555
+ "char": "o",
1556
+ "name": "target-org",
1557
+ "noCacheDefault": true,
1558
+ "required": true,
1559
+ "summary": "Username or alias of the target org.",
1560
+ "hasDynamicHelp": true,
1561
+ "multiple": false,
1562
+ "type": "option"
1563
+ }
1564
+ },
1565
+ "hasDynamicHelp": true,
1566
+ "hiddenAliases": [],
1567
+ "id": "org:enable:tracking",
1568
+ "pluginAlias": "@salesforce/plugin-org",
1569
+ "pluginName": "@salesforce/plugin-org",
1570
+ "pluginType": "core",
1571
+ "strict": true,
1572
+ "summary": "Enable source tracking in local auth file.",
1573
+ "enableJsonFlag": true,
1574
+ "SF_ENV": "SF_ENV",
1575
+ "isESM": true,
1576
+ "relativePath": [
1577
+ "lib",
1578
+ "commands",
1579
+ "org",
1580
+ "enable",
1581
+ "tracking.js"
1582
+ ],
1583
+ "aliasPermutations": [],
1584
+ "permutations": [
1585
+ "org:enable:tracking",
1586
+ "enable:org:tracking",
1587
+ "enable:tracking:org",
1588
+ "org:tracking:enable",
1589
+ "tracking:org:enable",
1590
+ "tracking:enable:org"
1591
+ ]
1592
+ },
1485
1593
  "org:list:metadata-types": {
1486
1594
  "aliases": [
1487
1595
  "force:mdapi:describemetadata"
@@ -1903,5 +2011,5 @@
1903
2011
  ]
1904
2012
  }
1905
2013
  },
1906
- "version": "3.0.5"
2014
+ "version": "3.0.6"
1907
2015
  }
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": "3.0.5",
4
+ "version": "3.0.6",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@oclif/plugin-command-snapshot": "^5.0.2",
17
- "@salesforce/cli-plugins-testkit": "^5.0.3",
18
- "@salesforce/dev-scripts": "^7.1.0",
17
+ "@salesforce/cli-plugins-testkit": "^5.0.4",
18
+ "@salesforce/dev-scripts": "^7.1.1",
19
19
  "@salesforce/plugin-command-reference": "^3.0.46",
20
20
  "@salesforce/ts-sinon": "1.4.19",
21
21
  "@types/shelljs": "^0.8.14",
@@ -70,8 +70,15 @@
70
70
  },
71
71
  "delete": {
72
72
  "description": "Delete scratch orgs, sandboxes, org shapes, and org snapshots."
73
+ },
74
+ "enable": {
75
+ "description": "Enable tracking on an org."
76
+ },
77
+ "disable": {
78
+ "description": "Disable tracking on an org"
73
79
  }
74
- }
80
+ },
81
+ "external": true
75
82
  },
76
83
  "force": {
77
84
  "external": true,
@@ -217,7 +224,7 @@
217
224
  "exports": "./lib/index.js",
218
225
  "type": "module",
219
226
  "sfdx": {
220
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.0.5.crt",
221
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.0.5.sig"
227
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.0.6.crt",
228
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.0.6.sig"
222
229
  }
223
230
  }