sfdx-hardis 5.16.4-beta202501221328.0 → 5.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/oclif.manifest.json +1160 -1160
  2. package/package.json +1 -1
@@ -57,12 +57,13 @@
57
57
  "world:hello"
58
58
  ]
59
59
  },
60
- "hardis:cache:clear": {
60
+ "hardis:auth:login": {
61
61
  "aliases": [],
62
62
  "args": {},
63
- "description": "Clear cache generated by sfdx-hardis",
63
+ "description": "Login to salesforce org",
64
64
  "examples": [
65
- "$ sf hardis:cache:clear"
65
+ "$ sf hardis:auth:login",
66
+ "CI=true sf hardis:auth:login"
66
67
  ],
67
68
  "flags": {
68
69
  "json": {
@@ -80,6 +81,28 @@
80
81
  "multiple": false,
81
82
  "type": "option"
82
83
  },
84
+ "instanceurl": {
85
+ "char": "r",
86
+ "description": "URL of org instance",
87
+ "name": "instanceurl",
88
+ "hasDynamicHelp": false,
89
+ "multiple": false,
90
+ "type": "option"
91
+ },
92
+ "devhub": {
93
+ "char": "h",
94
+ "description": "Also connect associated DevHub",
95
+ "name": "devhub",
96
+ "allowNo": false,
97
+ "type": "boolean"
98
+ },
99
+ "scratchorg": {
100
+ "char": "s",
101
+ "description": "Scratch org",
102
+ "name": "scratchorg",
103
+ "allowNo": false,
104
+ "type": "boolean"
105
+ },
83
106
  "debug": {
84
107
  "char": "d",
85
108
  "description": "Activate debug mode (more logs)",
@@ -103,38 +126,38 @@
103
126
  },
104
127
  "hasDynamicHelp": false,
105
128
  "hiddenAliases": [],
106
- "id": "hardis:cache:clear",
129
+ "id": "hardis:auth:login",
107
130
  "pluginAlias": "sfdx-hardis",
108
131
  "pluginName": "sfdx-hardis",
109
132
  "pluginType": "core",
110
133
  "strict": true,
111
134
  "enableJsonFlag": true,
112
- "title": "Clear sfdx-hardis cache",
135
+ "title": "Login",
113
136
  "requiresProject": false,
114
137
  "isESM": true,
115
138
  "relativePath": [
116
139
  "lib",
117
140
  "commands",
118
141
  "hardis",
119
- "cache",
120
- "clear.js"
142
+ "auth",
143
+ "login.js"
121
144
  ],
122
145
  "aliasPermutations": [],
123
146
  "permutations": [
124
- "hardis:cache:clear",
125
- "cache:hardis:clear",
126
- "cache:clear:hardis",
127
- "hardis:clear:cache",
128
- "clear:hardis:cache",
129
- "clear:cache:hardis"
147
+ "hardis:auth:login",
148
+ "auth:hardis:login",
149
+ "auth:login:hardis",
150
+ "hardis:login:auth",
151
+ "login:hardis:auth",
152
+ "login:auth:hardis"
130
153
  ]
131
154
  },
132
- "hardis:config:get": {
155
+ "hardis:cache:clear": {
133
156
  "aliases": [],
134
157
  "args": {},
135
- "description": "Returns sfdx-hardis project config for a given level",
158
+ "description": "Clear cache generated by sfdx-hardis",
136
159
  "examples": [
137
- "$ sf hardis:project:deploy:sources:metadata"
160
+ "$ sf hardis:cache:clear"
138
161
  ],
139
162
  "flags": {
140
163
  "json": {
@@ -152,20 +175,6 @@
152
175
  "multiple": false,
153
176
  "type": "option"
154
177
  },
155
- "level": {
156
- "char": "l",
157
- "description": "project,branch or user",
158
- "name": "level",
159
- "default": "project",
160
- "hasDynamicHelp": false,
161
- "multiple": false,
162
- "options": [
163
- "project",
164
- "branch",
165
- "user"
166
- ],
167
- "type": "option"
168
- },
169
178
  "debug": {
170
179
  "char": "d",
171
180
  "description": "Activate debug mode (more logs)",
@@ -189,39 +198,38 @@
189
198
  },
190
199
  "hasDynamicHelp": false,
191
200
  "hiddenAliases": [],
192
- "id": "hardis:config:get",
201
+ "id": "hardis:cache:clear",
193
202
  "pluginAlias": "sfdx-hardis",
194
203
  "pluginName": "sfdx-hardis",
195
204
  "pluginType": "core",
196
205
  "strict": true,
197
206
  "enableJsonFlag": true,
198
- "title": "Deploy metadata sources to org",
207
+ "title": "Clear sfdx-hardis cache",
199
208
  "requiresProject": false,
200
209
  "isESM": true,
201
210
  "relativePath": [
202
211
  "lib",
203
212
  "commands",
204
213
  "hardis",
205
- "config",
206
- "get.js"
214
+ "cache",
215
+ "clear.js"
207
216
  ],
208
217
  "aliasPermutations": [],
209
218
  "permutations": [
210
- "hardis:config:get",
211
- "config:hardis:get",
212
- "config:get:hardis",
213
- "hardis:get:config",
214
- "get:hardis:config",
215
- "get:config:hardis"
219
+ "hardis:cache:clear",
220
+ "cache:hardis:clear",
221
+ "cache:clear:hardis",
222
+ "hardis:clear:cache",
223
+ "clear:hardis:cache",
224
+ "clear:cache:hardis"
216
225
  ]
217
226
  },
218
- "hardis:auth:login": {
227
+ "hardis:config:get": {
219
228
  "aliases": [],
220
229
  "args": {},
221
- "description": "Login to salesforce org",
230
+ "description": "Returns sfdx-hardis project config for a given level",
222
231
  "examples": [
223
- "$ sf hardis:auth:login",
224
- "CI=true sf hardis:auth:login"
232
+ "$ sf hardis:project:deploy:sources:metadata"
225
233
  ],
226
234
  "flags": {
227
235
  "json": {
@@ -239,28 +247,20 @@
239
247
  "multiple": false,
240
248
  "type": "option"
241
249
  },
242
- "instanceurl": {
243
- "char": "r",
244
- "description": "URL of org instance",
245
- "name": "instanceurl",
250
+ "level": {
251
+ "char": "l",
252
+ "description": "project,branch or user",
253
+ "name": "level",
254
+ "default": "project",
246
255
  "hasDynamicHelp": false,
247
256
  "multiple": false,
257
+ "options": [
258
+ "project",
259
+ "branch",
260
+ "user"
261
+ ],
248
262
  "type": "option"
249
263
  },
250
- "devhub": {
251
- "char": "h",
252
- "description": "Also connect associated DevHub",
253
- "name": "devhub",
254
- "allowNo": false,
255
- "type": "boolean"
256
- },
257
- "scratchorg": {
258
- "char": "s",
259
- "description": "Scratch org",
260
- "name": "scratchorg",
261
- "allowNo": false,
262
- "type": "boolean"
263
- },
264
264
  "debug": {
265
265
  "char": "d",
266
266
  "description": "Activate debug mode (more logs)",
@@ -284,30 +284,30 @@
284
284
  },
285
285
  "hasDynamicHelp": false,
286
286
  "hiddenAliases": [],
287
- "id": "hardis:auth:login",
287
+ "id": "hardis:config:get",
288
288
  "pluginAlias": "sfdx-hardis",
289
289
  "pluginName": "sfdx-hardis",
290
290
  "pluginType": "core",
291
291
  "strict": true,
292
292
  "enableJsonFlag": true,
293
- "title": "Login",
293
+ "title": "Deploy metadata sources to org",
294
294
  "requiresProject": false,
295
295
  "isESM": true,
296
296
  "relativePath": [
297
297
  "lib",
298
298
  "commands",
299
299
  "hardis",
300
- "auth",
301
- "login.js"
300
+ "config",
301
+ "get.js"
302
302
  ],
303
303
  "aliasPermutations": [],
304
304
  "permutations": [
305
- "hardis:auth:login",
306
- "auth:hardis:login",
307
- "auth:login:hardis",
308
- "hardis:login:auth",
309
- "login:hardis:auth",
310
- "login:auth:hardis"
305
+ "hardis:config:get",
306
+ "config:hardis:get",
307
+ "config:get:hardis",
308
+ "hardis:get:config",
309
+ "get:hardis:config",
310
+ "get:config:hardis"
311
311
  ]
312
312
  },
313
313
  "hardis:doc:flow2markdown": {
@@ -1563,12 +1563,12 @@
1563
1563
  "toml2csv:misc:hardis"
1564
1564
  ]
1565
1565
  },
1566
- "hardis:org:connect": {
1566
+ "hardis:package:create": {
1567
1567
  "aliases": [],
1568
1568
  "args": {},
1569
- "description": "Connect to an org without setting it as default username, then proposes to open the org in web browser\n ",
1569
+ "description": "Create a new package",
1570
1570
  "examples": [
1571
- "$ sf hardis:org:connect"
1571
+ "$ sf hardis:package:create"
1572
1572
  ],
1573
1573
  "flags": {
1574
1574
  "json": {
@@ -1605,42 +1605,56 @@
1605
1605
  "name": "skipauth",
1606
1606
  "allowNo": false,
1607
1607
  "type": "boolean"
1608
+ },
1609
+ "target-dev-hub": {
1610
+ "aliases": [
1611
+ "targetdevhubusername"
1612
+ ],
1613
+ "char": "v",
1614
+ "deprecateAliases": true,
1615
+ "name": "target-dev-hub",
1616
+ "noCacheDefault": true,
1617
+ "required": true,
1618
+ "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
1619
+ "hasDynamicHelp": true,
1620
+ "multiple": false,
1621
+ "type": "option"
1608
1622
  }
1609
1623
  },
1610
- "hasDynamicHelp": false,
1624
+ "hasDynamicHelp": true,
1611
1625
  "hiddenAliases": [],
1612
- "id": "hardis:org:connect",
1626
+ "id": "hardis:package:create",
1613
1627
  "pluginAlias": "sfdx-hardis",
1614
1628
  "pluginName": "sfdx-hardis",
1615
1629
  "pluginType": "core",
1616
1630
  "strict": true,
1617
1631
  "enableJsonFlag": true,
1618
- "title": "Connect to an org",
1619
- "requiresProject": false,
1632
+ "title": "Create a new package",
1633
+ "requiresProject": true,
1620
1634
  "isESM": true,
1621
1635
  "relativePath": [
1622
1636
  "lib",
1623
1637
  "commands",
1624
1638
  "hardis",
1625
- "org",
1626
- "connect.js"
1639
+ "package",
1640
+ "create.js"
1627
1641
  ],
1628
1642
  "aliasPermutations": [],
1629
1643
  "permutations": [
1630
- "hardis:org:connect",
1631
- "org:hardis:connect",
1632
- "org:connect:hardis",
1633
- "hardis:connect:org",
1634
- "connect:hardis:org",
1635
- "connect:org:hardis"
1644
+ "hardis:package:create",
1645
+ "package:hardis:create",
1646
+ "package:create:hardis",
1647
+ "hardis:create:package",
1648
+ "create:hardis:package",
1649
+ "create:package:hardis"
1636
1650
  ]
1637
1651
  },
1638
- "hardis:org:create": {
1652
+ "hardis:package:install": {
1639
1653
  "aliases": [],
1640
1654
  "args": {},
1641
- "description": "Create and initialize sandbox org",
1655
+ "description": "Install a package in an org using its id (starting with **04t**)\n\nAssisted menu to propose to update `installedPackages` property in `.sfdx-hardis.yml`\n",
1642
1656
  "examples": [
1643
- "$ sf hardis:org:create"
1657
+ "$ sf hardis:package:install"
1644
1658
  ],
1645
1659
  "flags": {
1646
1660
  "json": {
@@ -1658,6 +1672,14 @@
1658
1672
  "multiple": false,
1659
1673
  "type": "option"
1660
1674
  },
1675
+ "package": {
1676
+ "char": "p",
1677
+ "description": "Package Version Id to install (04t...)",
1678
+ "name": "package",
1679
+ "hasDynamicHelp": false,
1680
+ "multiple": false,
1681
+ "type": "option"
1682
+ },
1661
1683
  "debug": {
1662
1684
  "char": "d",
1663
1685
  "description": "Activate debug mode (more logs)",
@@ -1672,54 +1694,72 @@
1672
1694
  "multiple": false,
1673
1695
  "type": "option"
1674
1696
  },
1697
+ "installationkey": {
1698
+ "char": "k",
1699
+ "description": "installation key for key-protected package (default: null)",
1700
+ "name": "installationkey",
1701
+ "default": "",
1702
+ "hasDynamicHelp": false,
1703
+ "multiple": false,
1704
+ "type": "option"
1705
+ },
1675
1706
  "skipauth": {
1676
1707
  "description": "Skip authentication check when a default username is required",
1677
1708
  "name": "skipauth",
1678
1709
  "allowNo": false,
1679
1710
  "type": "boolean"
1711
+ },
1712
+ "target-org": {
1713
+ "aliases": [
1714
+ "targetusername",
1715
+ "u"
1716
+ ],
1717
+ "char": "o",
1718
+ "deprecateAliases": true,
1719
+ "name": "target-org",
1720
+ "noCacheDefault": true,
1721
+ "required": true,
1722
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1723
+ "hasDynamicHelp": true,
1724
+ "multiple": false,
1725
+ "type": "option"
1680
1726
  }
1681
1727
  },
1682
- "hasDynamicHelp": false,
1728
+ "hasDynamicHelp": true,
1683
1729
  "hiddenAliases": [],
1684
- "id": "hardis:org:create",
1730
+ "id": "hardis:package:install",
1685
1731
  "pluginAlias": "sfdx-hardis",
1686
1732
  "pluginName": "sfdx-hardis",
1687
1733
  "pluginType": "core",
1688
1734
  "strict": true,
1689
1735
  "enableJsonFlag": true,
1690
- "title": "Create sandbox org",
1691
- "supportsDevhubUsername": true,
1692
- "requiresProject": true,
1693
- "requiresSfdxPlugins": [
1694
- "sfdmu"
1695
- ],
1736
+ "title": "Install packages in an org",
1696
1737
  "isESM": true,
1697
1738
  "relativePath": [
1698
1739
  "lib",
1699
1740
  "commands",
1700
1741
  "hardis",
1701
- "org",
1702
- "create.js"
1742
+ "package",
1743
+ "install.js"
1703
1744
  ],
1704
1745
  "aliasPermutations": [],
1705
1746
  "permutations": [
1706
- "hardis:org:create",
1707
- "org:hardis:create",
1708
- "org:create:hardis",
1709
- "hardis:create:org",
1710
- "create:hardis:org",
1711
- "create:org:hardis"
1747
+ "hardis:package:install",
1748
+ "package:hardis:install",
1749
+ "package:install:hardis",
1750
+ "hardis:install:package",
1751
+ "install:hardis:package",
1752
+ "install:package:hardis"
1712
1753
  ]
1713
1754
  },
1714
- "hardis:org:multi-org-query": {
1755
+ "hardis:package:mergexml": {
1715
1756
  "aliases": [],
1716
1757
  "args": {},
1717
- "description": "Executes a SOQL query in multiple orgs and generate a single report from it\n \nYou can send a custom query using --query, or use one of the predefined queries using --query-template.\n\nIf you use the command from a CI/CD job, you must previously authenticate to the usernames present in --target-orgs.\n\n[![Use in VsCode SFDX Hardis !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/multi-org-query-demo.gif)](https://marketplace.visualstudio.com/items?itemName=NicolasVuillamy.vscode-sfdx-hardis)\n",
1758
+ "description": "Select and merge package.xml files",
1718
1759
  "examples": [
1719
- "$ sf hardis:org:multi-org-query",
1720
- "$ sf hardis:org:multi-org-query --query \"SELECT Id,Username FROM User\"",
1721
- "$ sf hardis:org:multi-org-query --query \"SELECT Id,Username FROM User\" --target-orgs nico@cloudity.com nico@cloudity.com.preprod nico@cloudity.com.uat",
1722
- "$ sf hardis:org:multi-org-query --query-template active-users --target-orgs nico@cloudity.com nico@cloudity.com.preprod nico@cloudity.com.uat"
1760
+ "$ sf hardis:package:mergexml",
1761
+ "$ sf hardis:package:mergexml --folder packages --pattern /**/*.xml --result myMergedPackage.xml",
1762
+ "$ sf hardis:package:mergexml --packagexmls \"config/mypackage1.xml,config/mypackage2.xml,config/mypackage3.xml\" --result myMergedPackage.xml"
1723
1763
  ],
1724
1764
  "flags": {
1725
1765
  "json": {
@@ -1737,51 +1777,42 @@
1737
1777
  "multiple": false,
1738
1778
  "type": "option"
1739
1779
  },
1740
- "query": {
1741
- "char": "q",
1742
- "description": "SOQL Query to run on multiple orgs",
1743
- "exclusive": [
1744
- "query-template"
1745
- ],
1746
- "name": "query",
1780
+ "folder": {
1781
+ "char": "f",
1782
+ "description": "Root folder",
1783
+ "name": "folder",
1784
+ "default": "manifest",
1747
1785
  "hasDynamicHelp": false,
1748
1786
  "multiple": false,
1749
1787
  "type": "option"
1750
1788
  },
1751
- "query-template": {
1752
- "char": "t",
1753
- "description": "Use one of predefined SOQL Query templates",
1754
- "exclusive": [
1755
- "query"
1756
- ],
1757
- "name": "query-template",
1789
+ "packagexmls": {
1790
+ "char": "p",
1791
+ "description": "Comma separated list of package.xml files to merge. Will be prompted to user if not provided",
1792
+ "name": "packagexmls",
1758
1793
  "hasDynamicHelp": false,
1759
1794
  "multiple": false,
1760
- "options": [
1761
- "active-users",
1762
- "all-users"
1763
- ],
1764
1795
  "type": "option"
1765
1796
  },
1766
- "target-orgs": {
1797
+ "pattern": {
1767
1798
  "char": "x",
1768
- "description": "List of org usernames or aliases.",
1769
- "name": "target-orgs",
1799
+ "description": "Name criteria to list package.xml files",
1800
+ "name": "pattern",
1801
+ "default": "/**/*package*.xml",
1770
1802
  "hasDynamicHelp": false,
1771
- "multiple": true,
1803
+ "multiple": false,
1772
1804
  "type": "option"
1773
1805
  },
1774
- "outputfile": {
1775
- "char": "f",
1776
- "description": "Force the path and name of output report file. Must end with .csv",
1777
- "name": "outputfile",
1806
+ "result": {
1807
+ "char": "r",
1808
+ "description": "Result package.xml file name",
1809
+ "name": "result",
1778
1810
  "hasDynamicHelp": false,
1779
1811
  "multiple": false,
1780
1812
  "type": "option"
1781
1813
  },
1782
1814
  "debug": {
1783
- "char": "d",
1784
- "description": "Activate debug mode (more logs)",
1815
+ "description": "debug",
1785
1816
  "name": "debug",
1786
1817
  "allowNo": false,
1787
1818
  "type": "boolean"
@@ -1802,37 +1833,38 @@
1802
1833
  },
1803
1834
  "hasDynamicHelp": false,
1804
1835
  "hiddenAliases": [],
1805
- "id": "hardis:org:multi-org-query",
1836
+ "id": "hardis:package:mergexml",
1806
1837
  "pluginAlias": "sfdx-hardis",
1807
1838
  "pluginName": "sfdx-hardis",
1808
1839
  "pluginType": "core",
1809
1840
  "strict": true,
1810
1841
  "enableJsonFlag": true,
1811
- "title": "Multiple Orgs SOQL Query",
1842
+ "title": "Merge package.xml files",
1843
+ "requiresProject": false,
1812
1844
  "isESM": true,
1813
1845
  "relativePath": [
1814
1846
  "lib",
1815
1847
  "commands",
1816
1848
  "hardis",
1817
- "org",
1818
- "multi-org-query.js"
1849
+ "package",
1850
+ "mergexml.js"
1819
1851
  ],
1820
1852
  "aliasPermutations": [],
1821
1853
  "permutations": [
1822
- "hardis:org:multi-org-query",
1823
- "org:hardis:multi-org-query",
1824
- "org:multi-org-query:hardis",
1825
- "hardis:multi-org-query:org",
1826
- "multi-org-query:hardis:org",
1827
- "multi-org-query:org:hardis"
1854
+ "hardis:package:mergexml",
1855
+ "package:hardis:mergexml",
1856
+ "package:mergexml:hardis",
1857
+ "hardis:mergexml:package",
1858
+ "mergexml:hardis:package",
1859
+ "mergexml:package:hardis"
1828
1860
  ]
1829
1861
  },
1830
- "hardis:org:select": {
1862
+ "hardis:org:connect": {
1831
1863
  "aliases": [],
1832
1864
  "args": {},
1833
- "description": "Interactive org selection for user",
1865
+ "description": "Connect to an org without setting it as default username, then proposes to open the org in web browser\n ",
1834
1866
  "examples": [
1835
- "$ sf hardis:org:select"
1867
+ "$ sf hardis:org:connect"
1836
1868
  ],
1837
1869
  "flags": {
1838
1870
  "json": {
@@ -1850,20 +1882,6 @@
1850
1882
  "multiple": false,
1851
1883
  "type": "option"
1852
1884
  },
1853
- "devhub": {
1854
- "char": "h",
1855
- "description": "Also connect associated DevHub",
1856
- "name": "devhub",
1857
- "allowNo": false,
1858
- "type": "boolean"
1859
- },
1860
- "scratch": {
1861
- "char": "s",
1862
- "description": "Select scratch org related to default DevHub",
1863
- "name": "scratch",
1864
- "allowNo": false,
1865
- "type": "boolean"
1866
- },
1867
1885
  "debug": {
1868
1886
  "char": "d",
1869
1887
  "description": "Activate debug mode (more logs)",
@@ -1887,13 +1905,13 @@
1887
1905
  },
1888
1906
  "hasDynamicHelp": false,
1889
1907
  "hiddenAliases": [],
1890
- "id": "hardis:org:select",
1908
+ "id": "hardis:org:connect",
1891
1909
  "pluginAlias": "sfdx-hardis",
1892
1910
  "pluginName": "sfdx-hardis",
1893
1911
  "pluginType": "core",
1894
1912
  "strict": true,
1895
1913
  "enableJsonFlag": true,
1896
- "title": "Select org",
1914
+ "title": "Connect to an org",
1897
1915
  "requiresProject": false,
1898
1916
  "isESM": true,
1899
1917
  "relativePath": [
@@ -1901,24 +1919,24 @@
1901
1919
  "commands",
1902
1920
  "hardis",
1903
1921
  "org",
1904
- "select.js"
1922
+ "connect.js"
1905
1923
  ],
1906
1924
  "aliasPermutations": [],
1907
1925
  "permutations": [
1908
- "hardis:org:select",
1909
- "org:hardis:select",
1910
- "org:select:hardis",
1911
- "hardis:select:org",
1912
- "select:hardis:org",
1913
- "select:org:hardis"
1926
+ "hardis:org:connect",
1927
+ "org:hardis:connect",
1928
+ "org:connect:hardis",
1929
+ "hardis:connect:org",
1930
+ "connect:hardis:org",
1931
+ "connect:org:hardis"
1914
1932
  ]
1915
1933
  },
1916
- "hardis:package:create": {
1934
+ "hardis:org:create": {
1917
1935
  "aliases": [],
1918
1936
  "args": {},
1919
- "description": "Create a new package",
1937
+ "description": "Create and initialize sandbox org",
1920
1938
  "examples": [
1921
- "$ sf hardis:package:create"
1939
+ "$ sf hardis:org:create"
1922
1940
  ],
1923
1941
  "flags": {
1924
1942
  "json": {
@@ -1955,56 +1973,49 @@
1955
1973
  "name": "skipauth",
1956
1974
  "allowNo": false,
1957
1975
  "type": "boolean"
1958
- },
1959
- "target-dev-hub": {
1960
- "aliases": [
1961
- "targetdevhubusername"
1962
- ],
1963
- "char": "v",
1964
- "deprecateAliases": true,
1965
- "name": "target-dev-hub",
1966
- "noCacheDefault": true,
1967
- "required": true,
1968
- "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
1969
- "hasDynamicHelp": true,
1970
- "multiple": false,
1971
- "type": "option"
1972
1976
  }
1973
1977
  },
1974
- "hasDynamicHelp": true,
1978
+ "hasDynamicHelp": false,
1975
1979
  "hiddenAliases": [],
1976
- "id": "hardis:package:create",
1980
+ "id": "hardis:org:create",
1977
1981
  "pluginAlias": "sfdx-hardis",
1978
1982
  "pluginName": "sfdx-hardis",
1979
1983
  "pluginType": "core",
1980
1984
  "strict": true,
1981
1985
  "enableJsonFlag": true,
1982
- "title": "Create a new package",
1986
+ "title": "Create sandbox org",
1987
+ "supportsDevhubUsername": true,
1983
1988
  "requiresProject": true,
1989
+ "requiresSfdxPlugins": [
1990
+ "sfdmu"
1991
+ ],
1984
1992
  "isESM": true,
1985
1993
  "relativePath": [
1986
1994
  "lib",
1987
1995
  "commands",
1988
1996
  "hardis",
1989
- "package",
1997
+ "org",
1990
1998
  "create.js"
1991
1999
  ],
1992
2000
  "aliasPermutations": [],
1993
2001
  "permutations": [
1994
- "hardis:package:create",
1995
- "package:hardis:create",
1996
- "package:create:hardis",
1997
- "hardis:create:package",
1998
- "create:hardis:package",
1999
- "create:package:hardis"
2002
+ "hardis:org:create",
2003
+ "org:hardis:create",
2004
+ "org:create:hardis",
2005
+ "hardis:create:org",
2006
+ "create:hardis:org",
2007
+ "create:org:hardis"
2000
2008
  ]
2001
2009
  },
2002
- "hardis:package:install": {
2010
+ "hardis:org:multi-org-query": {
2003
2011
  "aliases": [],
2004
2012
  "args": {},
2005
- "description": "Install a package in an org using its id (starting with **04t**)\n\nAssisted menu to propose to update `installedPackages` property in `.sfdx-hardis.yml`\n",
2013
+ "description": "Executes a SOQL query in multiple orgs and generate a single report from it\n \nYou can send a custom query using --query, or use one of the predefined queries using --query-template.\n\nIf you use the command from a CI/CD job, you must previously authenticate to the usernames present in --target-orgs.\n\n[![Use in VsCode SFDX Hardis !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/multi-org-query-demo.gif)](https://marketplace.visualstudio.com/items?itemName=NicolasVuillamy.vscode-sfdx-hardis)\n",
2006
2014
  "examples": [
2007
- "$ sf hardis:package:install"
2015
+ "$ sf hardis:org:multi-org-query",
2016
+ "$ sf hardis:org:multi-org-query --query \"SELECT Id,Username FROM User\"",
2017
+ "$ sf hardis:org:multi-org-query --query \"SELECT Id,Username FROM User\" --target-orgs nico@cloudity.com nico@cloudity.com.preprod nico@cloudity.com.uat",
2018
+ "$ sf hardis:org:multi-org-query --query-template active-users --target-orgs nico@cloudity.com nico@cloudity.com.preprod nico@cloudity.com.uat"
2008
2019
  ],
2009
2020
  "flags": {
2010
2021
  "json": {
@@ -2022,10 +2033,44 @@
2022
2033
  "multiple": false,
2023
2034
  "type": "option"
2024
2035
  },
2025
- "package": {
2026
- "char": "p",
2027
- "description": "Package Version Id to install (04t...)",
2028
- "name": "package",
2036
+ "query": {
2037
+ "char": "q",
2038
+ "description": "SOQL Query to run on multiple orgs",
2039
+ "exclusive": [
2040
+ "query-template"
2041
+ ],
2042
+ "name": "query",
2043
+ "hasDynamicHelp": false,
2044
+ "multiple": false,
2045
+ "type": "option"
2046
+ },
2047
+ "query-template": {
2048
+ "char": "t",
2049
+ "description": "Use one of predefined SOQL Query templates",
2050
+ "exclusive": [
2051
+ "query"
2052
+ ],
2053
+ "name": "query-template",
2054
+ "hasDynamicHelp": false,
2055
+ "multiple": false,
2056
+ "options": [
2057
+ "active-users",
2058
+ "all-users"
2059
+ ],
2060
+ "type": "option"
2061
+ },
2062
+ "target-orgs": {
2063
+ "char": "x",
2064
+ "description": "List of org usernames or aliases.",
2065
+ "name": "target-orgs",
2066
+ "hasDynamicHelp": false,
2067
+ "multiple": true,
2068
+ "type": "option"
2069
+ },
2070
+ "outputfile": {
2071
+ "char": "f",
2072
+ "description": "Force the path and name of output report file. Must end with .csv",
2073
+ "name": "outputfile",
2029
2074
  "hasDynamicHelp": false,
2030
2075
  "multiple": false,
2031
2076
  "type": "option"
@@ -2044,72 +2089,46 @@
2044
2089
  "multiple": false,
2045
2090
  "type": "option"
2046
2091
  },
2047
- "installationkey": {
2048
- "char": "k",
2049
- "description": "installation key for key-protected package (default: null)",
2050
- "name": "installationkey",
2051
- "default": "",
2052
- "hasDynamicHelp": false,
2053
- "multiple": false,
2054
- "type": "option"
2055
- },
2056
2092
  "skipauth": {
2057
2093
  "description": "Skip authentication check when a default username is required",
2058
2094
  "name": "skipauth",
2059
2095
  "allowNo": false,
2060
2096
  "type": "boolean"
2061
- },
2062
- "target-org": {
2063
- "aliases": [
2064
- "targetusername",
2065
- "u"
2066
- ],
2067
- "char": "o",
2068
- "deprecateAliases": true,
2069
- "name": "target-org",
2070
- "noCacheDefault": true,
2071
- "required": true,
2072
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
2073
- "hasDynamicHelp": true,
2074
- "multiple": false,
2075
- "type": "option"
2076
2097
  }
2077
2098
  },
2078
- "hasDynamicHelp": true,
2099
+ "hasDynamicHelp": false,
2079
2100
  "hiddenAliases": [],
2080
- "id": "hardis:package:install",
2101
+ "id": "hardis:org:multi-org-query",
2081
2102
  "pluginAlias": "sfdx-hardis",
2082
2103
  "pluginName": "sfdx-hardis",
2083
2104
  "pluginType": "core",
2084
2105
  "strict": true,
2085
2106
  "enableJsonFlag": true,
2086
- "title": "Install packages in an org",
2107
+ "title": "Multiple Orgs SOQL Query",
2087
2108
  "isESM": true,
2088
2109
  "relativePath": [
2089
2110
  "lib",
2090
2111
  "commands",
2091
2112
  "hardis",
2092
- "package",
2093
- "install.js"
2113
+ "org",
2114
+ "multi-org-query.js"
2094
2115
  ],
2095
2116
  "aliasPermutations": [],
2096
2117
  "permutations": [
2097
- "hardis:package:install",
2098
- "package:hardis:install",
2099
- "package:install:hardis",
2100
- "hardis:install:package",
2101
- "install:hardis:package",
2102
- "install:package:hardis"
2118
+ "hardis:org:multi-org-query",
2119
+ "org:hardis:multi-org-query",
2120
+ "org:multi-org-query:hardis",
2121
+ "hardis:multi-org-query:org",
2122
+ "multi-org-query:hardis:org",
2123
+ "multi-org-query:org:hardis"
2103
2124
  ]
2104
2125
  },
2105
- "hardis:package:mergexml": {
2126
+ "hardis:org:select": {
2106
2127
  "aliases": [],
2107
2128
  "args": {},
2108
- "description": "Select and merge package.xml files",
2129
+ "description": "Interactive org selection for user",
2109
2130
  "examples": [
2110
- "$ sf hardis:package:mergexml",
2111
- "$ sf hardis:package:mergexml --folder packages --pattern /**/*.xml --result myMergedPackage.xml",
2112
- "$ sf hardis:package:mergexml --packagexmls \"config/mypackage1.xml,config/mypackage2.xml,config/mypackage3.xml\" --result myMergedPackage.xml"
2131
+ "$ sf hardis:org:select"
2113
2132
  ],
2114
2133
  "flags": {
2115
2134
  "json": {
@@ -2127,42 +2146,23 @@
2127
2146
  "multiple": false,
2128
2147
  "type": "option"
2129
2148
  },
2130
- "folder": {
2131
- "char": "f",
2132
- "description": "Root folder",
2133
- "name": "folder",
2134
- "default": "manifest",
2135
- "hasDynamicHelp": false,
2136
- "multiple": false,
2137
- "type": "option"
2138
- },
2139
- "packagexmls": {
2140
- "char": "p",
2141
- "description": "Comma separated list of package.xml files to merge. Will be prompted to user if not provided",
2142
- "name": "packagexmls",
2143
- "hasDynamicHelp": false,
2144
- "multiple": false,
2145
- "type": "option"
2146
- },
2147
- "pattern": {
2148
- "char": "x",
2149
- "description": "Name criteria to list package.xml files",
2150
- "name": "pattern",
2151
- "default": "/**/*package*.xml",
2152
- "hasDynamicHelp": false,
2153
- "multiple": false,
2154
- "type": "option"
2149
+ "devhub": {
2150
+ "char": "h",
2151
+ "description": "Also connect associated DevHub",
2152
+ "name": "devhub",
2153
+ "allowNo": false,
2154
+ "type": "boolean"
2155
2155
  },
2156
- "result": {
2157
- "char": "r",
2158
- "description": "Result package.xml file name",
2159
- "name": "result",
2160
- "hasDynamicHelp": false,
2161
- "multiple": false,
2162
- "type": "option"
2156
+ "scratch": {
2157
+ "char": "s",
2158
+ "description": "Select scratch org related to default DevHub",
2159
+ "name": "scratch",
2160
+ "allowNo": false,
2161
+ "type": "boolean"
2163
2162
  },
2164
2163
  "debug": {
2165
- "description": "debug",
2164
+ "char": "d",
2165
+ "description": "Activate debug mode (more logs)",
2166
2166
  "name": "debug",
2167
2167
  "allowNo": false,
2168
2168
  "type": "boolean"
@@ -2183,30 +2183,30 @@
2183
2183
  },
2184
2184
  "hasDynamicHelp": false,
2185
2185
  "hiddenAliases": [],
2186
- "id": "hardis:package:mergexml",
2186
+ "id": "hardis:org:select",
2187
2187
  "pluginAlias": "sfdx-hardis",
2188
2188
  "pluginName": "sfdx-hardis",
2189
2189
  "pluginType": "core",
2190
2190
  "strict": true,
2191
2191
  "enableJsonFlag": true,
2192
- "title": "Merge package.xml files",
2192
+ "title": "Select org",
2193
2193
  "requiresProject": false,
2194
2194
  "isESM": true,
2195
2195
  "relativePath": [
2196
2196
  "lib",
2197
2197
  "commands",
2198
2198
  "hardis",
2199
- "package",
2200
- "mergexml.js"
2199
+ "org",
2200
+ "select.js"
2201
2201
  ],
2202
2202
  "aliasPermutations": [],
2203
2203
  "permutations": [
2204
- "hardis:package:mergexml",
2205
- "package:hardis:mergexml",
2206
- "package:mergexml:hardis",
2207
- "hardis:mergexml:package",
2208
- "mergexml:hardis:package",
2209
- "mergexml:package:hardis"
2204
+ "hardis:org:select",
2205
+ "org:hardis:select",
2206
+ "org:select:hardis",
2207
+ "hardis:select:org",
2208
+ "select:hardis:org",
2209
+ "select:org:hardis"
2210
2210
  ]
2211
2211
  },
2212
2212
  "hardis:packagexml:append": {
@@ -4256,13 +4256,12 @@
4256
4256
  "extract:pull-requests:git:hardis"
4257
4257
  ]
4258
4258
  },
4259
- "hardis:org:community:update": {
4259
+ "hardis:package:version:create": {
4260
4260
  "aliases": [],
4261
4261
  "args": {},
4262
- "description": "Activate or deactivate a community by changing it's status:\n\n- Live\n- DownForMaintenance",
4262
+ "description": "Create a new version of an unlocked package",
4263
4263
  "examples": [
4264
- "$ sf hardis:org:community:update --name 'MyNetworkName' --status DownForMaintenance",
4265
- "$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
4264
+ "$ sf hardis:package:version:create"
4266
4265
  ],
4267
4266
  "flags": {
4268
4267
  "json": {
@@ -4280,42 +4279,67 @@
4280
4279
  "multiple": false,
4281
4280
  "type": "option"
4282
4281
  },
4283
- "name": {
4284
- "char": "n",
4285
- "description": "List of Networks Names that you want to update, separated by comma",
4286
- "name": "name",
4287
- "required": true,
4282
+ "debug": {
4283
+ "char": "d",
4284
+ "description": "Activate debug mode (more logs)",
4285
+ "name": "debug",
4286
+ "allowNo": false,
4287
+ "type": "boolean"
4288
+ },
4289
+ "package": {
4290
+ "char": "p",
4291
+ "description": "Package identifier that you want to use to generate a new package version",
4292
+ "name": "package",
4293
+ "default": "",
4288
4294
  "hasDynamicHelp": false,
4289
4295
  "multiple": false,
4290
4296
  "type": "option"
4291
4297
  },
4292
- "status": {
4293
- "char": "s",
4294
- "description": "New status for the community, available values are: Live, DownForMaintenance",
4295
- "name": "status",
4296
- "required": true,
4298
+ "installkey": {
4299
+ "char": "k",
4300
+ "description": "Package installation key",
4301
+ "name": "installkey",
4302
+ "default": "",
4297
4303
  "hasDynamicHelp": false,
4298
4304
  "multiple": false,
4299
4305
  "type": "option"
4300
4306
  },
4301
- "debug": {
4302
- "char": "d",
4303
- "description": "Activate debug mode (more logs)",
4304
- "name": "debug",
4307
+ "deleteafter": {
4308
+ "description": "Delete package version after creating it",
4309
+ "name": "deleteafter",
4305
4310
  "allowNo": false,
4306
4311
  "type": "boolean"
4307
4312
  },
4308
- "target-org": {
4313
+ "install": {
4314
+ "char": "i",
4315
+ "description": "Install package version on default org after generation",
4316
+ "name": "install",
4317
+ "allowNo": false,
4318
+ "type": "boolean"
4319
+ },
4320
+ "websocket": {
4321
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
4322
+ "name": "websocket",
4323
+ "hasDynamicHelp": false,
4324
+ "multiple": false,
4325
+ "type": "option"
4326
+ },
4327
+ "skipauth": {
4328
+ "description": "Skip authentication check when a default username is required",
4329
+ "name": "skipauth",
4330
+ "allowNo": false,
4331
+ "type": "boolean"
4332
+ },
4333
+ "target-dev-hub": {
4309
4334
  "aliases": [
4310
- "targetusername",
4311
- "u"
4335
+ "targetdevhubusername"
4312
4336
  ],
4313
- "char": "o",
4337
+ "char": "v",
4314
4338
  "deprecateAliases": true,
4315
- "name": "target-org",
4339
+ "name": "target-dev-hub",
4316
4340
  "noCacheDefault": true,
4317
4341
  "required": true,
4318
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
4342
+ "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
4319
4343
  "hasDynamicHelp": true,
4320
4344
  "multiple": false,
4321
4345
  "type": "option"
@@ -4323,56 +4347,57 @@
4323
4347
  },
4324
4348
  "hasDynamicHelp": true,
4325
4349
  "hiddenAliases": [],
4326
- "id": "hardis:org:community:update",
4350
+ "id": "hardis:package:version:create",
4327
4351
  "pluginAlias": "sfdx-hardis",
4328
4352
  "pluginName": "sfdx-hardis",
4329
4353
  "pluginType": "core",
4330
4354
  "strict": true,
4331
- "summary": "Update a community status.",
4332
4355
  "enableJsonFlag": true,
4356
+ "title": "Create a new version of a package",
4357
+ "requiresProject": true,
4333
4358
  "isESM": true,
4334
4359
  "relativePath": [
4335
4360
  "lib",
4336
4361
  "commands",
4337
4362
  "hardis",
4338
- "org",
4339
- "community",
4340
- "update.js"
4363
+ "package",
4364
+ "version",
4365
+ "create.js"
4341
4366
  ],
4342
4367
  "aliasPermutations": [],
4343
4368
  "permutations": [
4344
- "hardis:org:community:update",
4345
- "org:hardis:community:update",
4346
- "org:community:hardis:update",
4347
- "org:community:update:hardis",
4348
- "hardis:community:org:update",
4349
- "community:hardis:org:update",
4350
- "community:org:hardis:update",
4351
- "community:org:update:hardis",
4352
- "hardis:community:update:org",
4353
- "community:hardis:update:org",
4354
- "community:update:hardis:org",
4355
- "community:update:org:hardis",
4356
- "hardis:org:update:community",
4357
- "org:hardis:update:community",
4358
- "org:update:hardis:community",
4359
- "org:update:community:hardis",
4360
- "hardis:update:org:community",
4361
- "update:hardis:org:community",
4362
- "update:org:hardis:community",
4363
- "update:org:community:hardis",
4364
- "hardis:update:community:org",
4365
- "update:hardis:community:org",
4366
- "update:community:hardis:org",
4367
- "update:community:org:hardis"
4369
+ "hardis:package:version:create",
4370
+ "package:hardis:version:create",
4371
+ "package:version:hardis:create",
4372
+ "package:version:create:hardis",
4373
+ "hardis:version:package:create",
4374
+ "version:hardis:package:create",
4375
+ "version:package:hardis:create",
4376
+ "version:package:create:hardis",
4377
+ "hardis:version:create:package",
4378
+ "version:hardis:create:package",
4379
+ "version:create:hardis:package",
4380
+ "version:create:package:hardis",
4381
+ "hardis:package:create:version",
4382
+ "package:hardis:create:version",
4383
+ "package:create:hardis:version",
4384
+ "package:create:version:hardis",
4385
+ "hardis:create:package:version",
4386
+ "create:hardis:package:version",
4387
+ "create:package:hardis:version",
4388
+ "create:package:version:hardis",
4389
+ "hardis:create:version:package",
4390
+ "create:hardis:version:package",
4391
+ "create:version:hardis:package",
4392
+ "create:version:package:hardis"
4368
4393
  ]
4369
4394
  },
4370
- "hardis:org:configure:data": {
4395
+ "hardis:package:version:list": {
4371
4396
  "aliases": [],
4372
4397
  "args": {},
4373
- "description": "Configure Data Export/Import with a [SFDX Data Loader](https://help.sfdmu.com/) Project\n\nSee article:\n\n[![How to detect bad words in Salesforce records using SFDX Data Loader and sfdx-hardis](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-badwords.jpg)](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n",
4398
+ "description": "List versions of unlocked package",
4374
4399
  "examples": [
4375
- "$ sf hardis:org:configure:data"
4400
+ "$ sf hardis:package:version:list"
4376
4401
  ],
4377
4402
  "flags": {
4378
4403
  "json": {
@@ -4409,64 +4434,76 @@
4409
4434
  "name": "skipauth",
4410
4435
  "allowNo": false,
4411
4436
  "type": "boolean"
4437
+ },
4438
+ "target-dev-hub": {
4439
+ "aliases": [
4440
+ "targetdevhubusername"
4441
+ ],
4442
+ "char": "v",
4443
+ "deprecateAliases": true,
4444
+ "name": "target-dev-hub",
4445
+ "noCacheDefault": true,
4446
+ "required": true,
4447
+ "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
4448
+ "hasDynamicHelp": true,
4449
+ "multiple": false,
4450
+ "type": "option"
4412
4451
  }
4413
4452
  },
4414
- "hasDynamicHelp": false,
4453
+ "hasDynamicHelp": true,
4415
4454
  "hiddenAliases": [],
4416
- "id": "hardis:org:configure:data",
4455
+ "id": "hardis:package:version:list",
4417
4456
  "pluginAlias": "sfdx-hardis",
4418
4457
  "pluginName": "sfdx-hardis",
4419
4458
  "pluginType": "core",
4420
4459
  "strict": true,
4421
4460
  "enableJsonFlag": true,
4422
- "title": "Configure Data project",
4423
- "requiresProject": false,
4424
- "requiresSfdxPlugins": [
4425
- "sfdmu"
4426
- ],
4461
+ "title": "Create a new version of a package",
4462
+ "requiresProject": true,
4427
4463
  "isESM": true,
4428
4464
  "relativePath": [
4429
4465
  "lib",
4430
4466
  "commands",
4431
4467
  "hardis",
4432
- "org",
4433
- "configure",
4434
- "data.js"
4468
+ "package",
4469
+ "version",
4470
+ "list.js"
4435
4471
  ],
4436
4472
  "aliasPermutations": [],
4437
4473
  "permutations": [
4438
- "hardis:org:configure:data",
4439
- "org:hardis:configure:data",
4440
- "org:configure:hardis:data",
4441
- "org:configure:data:hardis",
4442
- "hardis:configure:org:data",
4443
- "configure:hardis:org:data",
4444
- "configure:org:hardis:data",
4445
- "configure:org:data:hardis",
4446
- "hardis:configure:data:org",
4447
- "configure:hardis:data:org",
4448
- "configure:data:hardis:org",
4449
- "configure:data:org:hardis",
4450
- "hardis:org:data:configure",
4451
- "org:hardis:data:configure",
4452
- "org:data:hardis:configure",
4453
- "org:data:configure:hardis",
4454
- "hardis:data:org:configure",
4455
- "data:hardis:org:configure",
4456
- "data:org:hardis:configure",
4457
- "data:org:configure:hardis",
4458
- "hardis:data:configure:org",
4459
- "data:hardis:configure:org",
4460
- "data:configure:hardis:org",
4461
- "data:configure:org:hardis"
4474
+ "hardis:package:version:list",
4475
+ "package:hardis:version:list",
4476
+ "package:version:hardis:list",
4477
+ "package:version:list:hardis",
4478
+ "hardis:version:package:list",
4479
+ "version:hardis:package:list",
4480
+ "version:package:hardis:list",
4481
+ "version:package:list:hardis",
4482
+ "hardis:version:list:package",
4483
+ "version:hardis:list:package",
4484
+ "version:list:hardis:package",
4485
+ "version:list:package:hardis",
4486
+ "hardis:package:list:version",
4487
+ "package:hardis:list:version",
4488
+ "package:list:hardis:version",
4489
+ "package:list:version:hardis",
4490
+ "hardis:list:package:version",
4491
+ "list:hardis:package:version",
4492
+ "list:package:hardis:version",
4493
+ "list:package:version:hardis",
4494
+ "hardis:list:version:package",
4495
+ "list:hardis:version:package",
4496
+ "list:version:hardis:package",
4497
+ "list:version:package:hardis"
4462
4498
  ]
4463
4499
  },
4464
- "hardis:org:configure:files": {
4500
+ "hardis:package:version:promote": {
4465
4501
  "aliases": [],
4466
4502
  "args": {},
4467
- "description": "Configure export of file attachments from a Salesforce org\n\nSee article below\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
4503
+ "description": "Promote package(s) version(s): convert it from beta to released",
4468
4504
  "examples": [
4469
- "$ sf hardis:org:configure:files"
4505
+ "$ sf hardis:package:version:promote",
4506
+ "$ sf hardis:package:version:promote --auto"
4470
4507
  ],
4471
4508
  "flags": {
4472
4509
  "json": {
@@ -4484,6 +4521,13 @@
4484
4521
  "multiple": false,
4485
4522
  "type": "option"
4486
4523
  },
4524
+ "auto": {
4525
+ "char": "f",
4526
+ "description": "Auto-detect which versions of which packages need to be promoted",
4527
+ "name": "auto",
4528
+ "allowNo": false,
4529
+ "type": "boolean"
4530
+ },
4487
4531
  "debug": {
4488
4532
  "char": "d",
4489
4533
  "description": "Activate debug mode (more logs)",
@@ -4503,61 +4547,76 @@
4503
4547
  "name": "skipauth",
4504
4548
  "allowNo": false,
4505
4549
  "type": "boolean"
4550
+ },
4551
+ "target-dev-hub": {
4552
+ "aliases": [
4553
+ "targetdevhubusername"
4554
+ ],
4555
+ "char": "v",
4556
+ "deprecateAliases": true,
4557
+ "name": "target-dev-hub",
4558
+ "noCacheDefault": true,
4559
+ "required": true,
4560
+ "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
4561
+ "hasDynamicHelp": true,
4562
+ "multiple": false,
4563
+ "type": "option"
4506
4564
  }
4507
4565
  },
4508
- "hasDynamicHelp": false,
4566
+ "hasDynamicHelp": true,
4509
4567
  "hiddenAliases": [],
4510
- "id": "hardis:org:configure:files",
4568
+ "id": "hardis:package:version:promote",
4511
4569
  "pluginAlias": "sfdx-hardis",
4512
4570
  "pluginName": "sfdx-hardis",
4513
4571
  "pluginType": "core",
4514
4572
  "strict": true,
4515
4573
  "enableJsonFlag": true,
4516
- "title": "Configure File export project",
4517
- "requiresProject": false,
4574
+ "title": "Promote new versions of package(s)",
4575
+ "requiresProject": true,
4518
4576
  "isESM": true,
4519
4577
  "relativePath": [
4520
4578
  "lib",
4521
4579
  "commands",
4522
4580
  "hardis",
4523
- "org",
4524
- "configure",
4525
- "files.js"
4581
+ "package",
4582
+ "version",
4583
+ "promote.js"
4526
4584
  ],
4527
4585
  "aliasPermutations": [],
4528
4586
  "permutations": [
4529
- "hardis:org:configure:files",
4530
- "org:hardis:configure:files",
4531
- "org:configure:hardis:files",
4532
- "org:configure:files:hardis",
4533
- "hardis:configure:org:files",
4534
- "configure:hardis:org:files",
4535
- "configure:org:hardis:files",
4536
- "configure:org:files:hardis",
4537
- "hardis:configure:files:org",
4538
- "configure:hardis:files:org",
4539
- "configure:files:hardis:org",
4540
- "configure:files:org:hardis",
4541
- "hardis:org:files:configure",
4542
- "org:hardis:files:configure",
4543
- "org:files:hardis:configure",
4544
- "org:files:configure:hardis",
4545
- "hardis:files:org:configure",
4546
- "files:hardis:org:configure",
4547
- "files:org:hardis:configure",
4548
- "files:org:configure:hardis",
4549
- "hardis:files:configure:org",
4550
- "files:hardis:configure:org",
4551
- "files:configure:hardis:org",
4552
- "files:configure:org:hardis"
4587
+ "hardis:package:version:promote",
4588
+ "package:hardis:version:promote",
4589
+ "package:version:hardis:promote",
4590
+ "package:version:promote:hardis",
4591
+ "hardis:version:package:promote",
4592
+ "version:hardis:package:promote",
4593
+ "version:package:hardis:promote",
4594
+ "version:package:promote:hardis",
4595
+ "hardis:version:promote:package",
4596
+ "version:hardis:promote:package",
4597
+ "version:promote:hardis:package",
4598
+ "version:promote:package:hardis",
4599
+ "hardis:package:promote:version",
4600
+ "package:hardis:promote:version",
4601
+ "package:promote:hardis:version",
4602
+ "package:promote:version:hardis",
4603
+ "hardis:promote:package:version",
4604
+ "promote:hardis:package:version",
4605
+ "promote:package:hardis:version",
4606
+ "promote:package:version:hardis",
4607
+ "hardis:promote:version:package",
4608
+ "promote:hardis:version:package",
4609
+ "promote:version:hardis:package",
4610
+ "promote:version:package:hardis"
4553
4611
  ]
4554
4612
  },
4555
- "hardis:org:configure:monitoring": {
4613
+ "hardis:org:community:update": {
4556
4614
  "aliases": [],
4557
4615
  "args": {},
4558
- "description": "Configure monitoring of an org",
4616
+ "description": "Activate or deactivate a community by changing it's status:\n\n- Live\n- DownForMaintenance",
4559
4617
  "examples": [
4560
- "$ sf hardis:org:configure:monitoring"
4618
+ "$ sf hardis:org:community:update --name 'MyNetworkName' --status DownForMaintenance",
4619
+ "$ sf hardis:org:community:update --name 'MyNetworkName,MySecondNetworkName' --status Live"
4561
4620
  ],
4562
4621
  "flags": {
4563
4622
  "json": {
@@ -4575,30 +4634,28 @@
4575
4634
  "multiple": false,
4576
4635
  "type": "option"
4577
4636
  },
4578
- "orginstanceurl": {
4579
- "description": "Org instance url (technical param, do not use manually)",
4580
- "name": "orginstanceurl",
4637
+ "name": {
4638
+ "char": "n",
4639
+ "description": "List of Networks Names that you want to update, separated by comma",
4640
+ "name": "name",
4641
+ "required": true,
4581
4642
  "hasDynamicHelp": false,
4582
4643
  "multiple": false,
4583
4644
  "type": "option"
4584
4645
  },
4585
- "debug": {
4586
- "char": "d",
4587
- "description": "Activate debug mode (more logs)",
4588
- "name": "debug",
4589
- "allowNo": false,
4590
- "type": "boolean"
4591
- },
4592
- "websocket": {
4593
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
4594
- "name": "websocket",
4646
+ "status": {
4647
+ "char": "s",
4648
+ "description": "New status for the community, available values are: Live, DownForMaintenance",
4649
+ "name": "status",
4650
+ "required": true,
4595
4651
  "hasDynamicHelp": false,
4596
4652
  "multiple": false,
4597
4653
  "type": "option"
4598
4654
  },
4599
- "skipauth": {
4600
- "description": "Skip authentication check when a default username is required",
4601
- "name": "skipauth",
4655
+ "debug": {
4656
+ "char": "d",
4657
+ "description": "Activate debug mode (more logs)",
4658
+ "name": "debug",
4602
4659
  "allowNo": false,
4603
4660
  "type": "boolean"
4604
4661
  },
@@ -4620,60 +4677,56 @@
4620
4677
  },
4621
4678
  "hasDynamicHelp": true,
4622
4679
  "hiddenAliases": [],
4623
- "id": "hardis:org:configure:monitoring",
4680
+ "id": "hardis:org:community:update",
4624
4681
  "pluginAlias": "sfdx-hardis",
4625
4682
  "pluginName": "sfdx-hardis",
4626
4683
  "pluginType": "core",
4627
4684
  "strict": true,
4685
+ "summary": "Update a community status.",
4628
4686
  "enableJsonFlag": true,
4629
- "title": "Configure org monitoring",
4630
- "requiresProject": false,
4631
- "requiresDependencies": [
4632
- "openssl"
4633
- ],
4634
4687
  "isESM": true,
4635
4688
  "relativePath": [
4636
4689
  "lib",
4637
4690
  "commands",
4638
4691
  "hardis",
4639
4692
  "org",
4640
- "configure",
4641
- "monitoring.js"
4693
+ "community",
4694
+ "update.js"
4642
4695
  ],
4643
4696
  "aliasPermutations": [],
4644
4697
  "permutations": [
4645
- "hardis:org:configure:monitoring",
4646
- "org:hardis:configure:monitoring",
4647
- "org:configure:hardis:monitoring",
4648
- "org:configure:monitoring:hardis",
4649
- "hardis:configure:org:monitoring",
4650
- "configure:hardis:org:monitoring",
4651
- "configure:org:hardis:monitoring",
4652
- "configure:org:monitoring:hardis",
4653
- "hardis:configure:monitoring:org",
4654
- "configure:hardis:monitoring:org",
4655
- "configure:monitoring:hardis:org",
4656
- "configure:monitoring:org:hardis",
4657
- "hardis:org:monitoring:configure",
4658
- "org:hardis:monitoring:configure",
4659
- "org:monitoring:hardis:configure",
4660
- "org:monitoring:configure:hardis",
4661
- "hardis:monitoring:org:configure",
4662
- "monitoring:hardis:org:configure",
4663
- "monitoring:org:hardis:configure",
4664
- "monitoring:org:configure:hardis",
4665
- "hardis:monitoring:configure:org",
4666
- "monitoring:hardis:configure:org",
4667
- "monitoring:configure:hardis:org",
4668
- "monitoring:configure:org:hardis"
4698
+ "hardis:org:community:update",
4699
+ "org:hardis:community:update",
4700
+ "org:community:hardis:update",
4701
+ "org:community:update:hardis",
4702
+ "hardis:community:org:update",
4703
+ "community:hardis:org:update",
4704
+ "community:org:hardis:update",
4705
+ "community:org:update:hardis",
4706
+ "hardis:community:update:org",
4707
+ "community:hardis:update:org",
4708
+ "community:update:hardis:org",
4709
+ "community:update:org:hardis",
4710
+ "hardis:org:update:community",
4711
+ "org:hardis:update:community",
4712
+ "org:update:hardis:community",
4713
+ "org:update:community:hardis",
4714
+ "hardis:update:org:community",
4715
+ "update:hardis:org:community",
4716
+ "update:org:hardis:community",
4717
+ "update:org:community:hardis",
4718
+ "hardis:update:community:org",
4719
+ "update:hardis:community:org",
4720
+ "update:community:hardis:org",
4721
+ "update:community:org:hardis"
4669
4722
  ]
4670
4723
  },
4671
- "hardis:org:data:delete": {
4724
+ "hardis:org:configure:data": {
4672
4725
  "aliases": [],
4673
4726
  "args": {},
4674
- "description": "Delete records in multiple objects using SFDMU Workspace\n \nIf you need to run this command in production, you need to:\n\n- define runnableInProduction in export.json\n- define sfdmuCanModify: YOUR_INSTANCE_URL in config/branches/.sfdx-hardis.YOUR_BRANCH.yml\n",
4727
+ "description": "Configure Data Export/Import with a [SFDX Data Loader](https://help.sfdmu.com/) Project\n\nSee article:\n\n[![How to detect bad words in Salesforce records using SFDX Data Loader and sfdx-hardis](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-badwords.jpg)](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n",
4675
4728
  "examples": [
4676
- "$ sf hardis:org:data:delete"
4729
+ "$ sf hardis:org:configure:data"
4677
4730
  ],
4678
4731
  "flags": {
4679
4732
  "json": {
@@ -4691,14 +4744,6 @@
4691
4744
  "multiple": false,
4692
4745
  "type": "option"
4693
4746
  },
4694
- "path": {
4695
- "char": "p",
4696
- "description": "Path to the sfdmu workspace folder",
4697
- "name": "path",
4698
- "hasDynamicHelp": false,
4699
- "multiple": false,
4700
- "type": "option"
4701
- },
4702
4747
  "debug": {
4703
4748
  "char": "d",
4704
4749
  "description": "Activate debug mode (more logs)",
@@ -4718,32 +4763,17 @@
4718
4763
  "name": "skipauth",
4719
4764
  "allowNo": false,
4720
4765
  "type": "boolean"
4721
- },
4722
- "target-org": {
4723
- "aliases": [
4724
- "targetusername",
4725
- "u"
4726
- ],
4727
- "char": "o",
4728
- "deprecateAliases": true,
4729
- "name": "target-org",
4730
- "noCacheDefault": true,
4731
- "required": true,
4732
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
4733
- "hasDynamicHelp": true,
4734
- "multiple": false,
4735
- "type": "option"
4736
4766
  }
4737
4767
  },
4738
- "hasDynamicHelp": true,
4768
+ "hasDynamicHelp": false,
4739
4769
  "hiddenAliases": [],
4740
- "id": "hardis:org:data:delete",
4770
+ "id": "hardis:org:configure:data",
4741
4771
  "pluginAlias": "sfdx-hardis",
4742
4772
  "pluginName": "sfdx-hardis",
4743
4773
  "pluginType": "core",
4744
4774
  "strict": true,
4745
4775
  "enableJsonFlag": true,
4746
- "title": "Delete data",
4776
+ "title": "Configure Data project",
4747
4777
  "requiresProject": false,
4748
4778
  "requiresSfdxPlugins": [
4749
4779
  "sfdmu"
@@ -4754,43 +4784,43 @@
4754
4784
  "commands",
4755
4785
  "hardis",
4756
4786
  "org",
4757
- "data",
4758
- "delete.js"
4787
+ "configure",
4788
+ "data.js"
4759
4789
  ],
4760
4790
  "aliasPermutations": [],
4761
4791
  "permutations": [
4762
- "hardis:org:data:delete",
4763
- "org:hardis:data:delete",
4764
- "org:data:hardis:delete",
4765
- "org:data:delete:hardis",
4766
- "hardis:data:org:delete",
4767
- "data:hardis:org:delete",
4768
- "data:org:hardis:delete",
4769
- "data:org:delete:hardis",
4770
- "hardis:data:delete:org",
4771
- "data:hardis:delete:org",
4772
- "data:delete:hardis:org",
4773
- "data:delete:org:hardis",
4774
- "hardis:org:delete:data",
4775
- "org:hardis:delete:data",
4776
- "org:delete:hardis:data",
4777
- "org:delete:data:hardis",
4778
- "hardis:delete:org:data",
4779
- "delete:hardis:org:data",
4780
- "delete:org:hardis:data",
4781
- "delete:org:data:hardis",
4782
- "hardis:delete:data:org",
4783
- "delete:hardis:data:org",
4784
- "delete:data:hardis:org",
4785
- "delete:data:org:hardis"
4792
+ "hardis:org:configure:data",
4793
+ "org:hardis:configure:data",
4794
+ "org:configure:hardis:data",
4795
+ "org:configure:data:hardis",
4796
+ "hardis:configure:org:data",
4797
+ "configure:hardis:org:data",
4798
+ "configure:org:hardis:data",
4799
+ "configure:org:data:hardis",
4800
+ "hardis:configure:data:org",
4801
+ "configure:hardis:data:org",
4802
+ "configure:data:hardis:org",
4803
+ "configure:data:org:hardis",
4804
+ "hardis:org:data:configure",
4805
+ "org:hardis:data:configure",
4806
+ "org:data:hardis:configure",
4807
+ "org:data:configure:hardis",
4808
+ "hardis:data:org:configure",
4809
+ "data:hardis:org:configure",
4810
+ "data:org:hardis:configure",
4811
+ "data:org:configure:hardis",
4812
+ "hardis:data:configure:org",
4813
+ "data:hardis:configure:org",
4814
+ "data:configure:hardis:org",
4815
+ "data:configure:org:hardis"
4786
4816
  ]
4787
4817
  },
4788
- "hardis:org:data:export": {
4818
+ "hardis:org:configure:files": {
4789
4819
  "aliases": [],
4790
4820
  "args": {},
4791
- "description": "Export data from an org using a [SFDX Data Loader](https://help.sfdmu.com/) Project\n\nSee article:\n\n[![How to detect bad words in Salesforce records using SFDX Data Loader and sfdx-hardis](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-badwords.jpg)](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n",
4821
+ "description": "Configure export of file attachments from a Salesforce org\n\nSee article below\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
4792
4822
  "examples": [
4793
- "$ sf hardis:org:data:export"
4823
+ "$ sf hardis:org:configure:files"
4794
4824
  ],
4795
4825
  "flags": {
4796
4826
  "json": {
@@ -4808,14 +4838,6 @@
4808
4838
  "multiple": false,
4809
4839
  "type": "option"
4810
4840
  },
4811
- "path": {
4812
- "char": "p",
4813
- "description": "Path to the sfdmu workspace folder",
4814
- "name": "path",
4815
- "hasDynamicHelp": false,
4816
- "multiple": false,
4817
- "type": "option"
4818
- },
4819
4841
  "debug": {
4820
4842
  "char": "d",
4821
4843
  "description": "Activate debug mode (more logs)",
@@ -4835,79 +4857,61 @@
4835
4857
  "name": "skipauth",
4836
4858
  "allowNo": false,
4837
4859
  "type": "boolean"
4838
- },
4839
- "target-org": {
4840
- "aliases": [
4841
- "targetusername",
4842
- "u"
4843
- ],
4844
- "char": "o",
4845
- "deprecateAliases": true,
4846
- "name": "target-org",
4847
- "noCacheDefault": true,
4848
- "required": true,
4849
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
4850
- "hasDynamicHelp": true,
4851
- "multiple": false,
4852
- "type": "option"
4853
4860
  }
4854
4861
  },
4855
- "hasDynamicHelp": true,
4862
+ "hasDynamicHelp": false,
4856
4863
  "hiddenAliases": [],
4857
- "id": "hardis:org:data:export",
4864
+ "id": "hardis:org:configure:files",
4858
4865
  "pluginAlias": "sfdx-hardis",
4859
4866
  "pluginName": "sfdx-hardis",
4860
4867
  "pluginType": "core",
4861
4868
  "strict": true,
4862
4869
  "enableJsonFlag": true,
4863
- "title": "Export data",
4870
+ "title": "Configure File export project",
4864
4871
  "requiresProject": false,
4865
- "requiresSfdxPlugins": [
4866
- "sfdmu"
4867
- ],
4868
4872
  "isESM": true,
4869
4873
  "relativePath": [
4870
4874
  "lib",
4871
4875
  "commands",
4872
4876
  "hardis",
4873
4877
  "org",
4874
- "data",
4875
- "export.js"
4878
+ "configure",
4879
+ "files.js"
4876
4880
  ],
4877
4881
  "aliasPermutations": [],
4878
4882
  "permutations": [
4879
- "hardis:org:data:export",
4880
- "org:hardis:data:export",
4881
- "org:data:hardis:export",
4882
- "org:data:export:hardis",
4883
- "hardis:data:org:export",
4884
- "data:hardis:org:export",
4885
- "data:org:hardis:export",
4886
- "data:org:export:hardis",
4887
- "hardis:data:export:org",
4888
- "data:hardis:export:org",
4889
- "data:export:hardis:org",
4890
- "data:export:org:hardis",
4891
- "hardis:org:export:data",
4892
- "org:hardis:export:data",
4893
- "org:export:hardis:data",
4894
- "org:export:data:hardis",
4895
- "hardis:export:org:data",
4896
- "export:hardis:org:data",
4897
- "export:org:hardis:data",
4898
- "export:org:data:hardis",
4899
- "hardis:export:data:org",
4900
- "export:hardis:data:org",
4901
- "export:data:hardis:org",
4902
- "export:data:org:hardis"
4883
+ "hardis:org:configure:files",
4884
+ "org:hardis:configure:files",
4885
+ "org:configure:hardis:files",
4886
+ "org:configure:files:hardis",
4887
+ "hardis:configure:org:files",
4888
+ "configure:hardis:org:files",
4889
+ "configure:org:hardis:files",
4890
+ "configure:org:files:hardis",
4891
+ "hardis:configure:files:org",
4892
+ "configure:hardis:files:org",
4893
+ "configure:files:hardis:org",
4894
+ "configure:files:org:hardis",
4895
+ "hardis:org:files:configure",
4896
+ "org:hardis:files:configure",
4897
+ "org:files:hardis:configure",
4898
+ "org:files:configure:hardis",
4899
+ "hardis:files:org:configure",
4900
+ "files:hardis:org:configure",
4901
+ "files:org:hardis:configure",
4902
+ "files:org:configure:hardis",
4903
+ "hardis:files:configure:org",
4904
+ "files:hardis:configure:org",
4905
+ "files:configure:hardis:org",
4906
+ "files:configure:org:hardis"
4903
4907
  ]
4904
4908
  },
4905
- "hardis:org:data:import": {
4909
+ "hardis:org:configure:monitoring": {
4906
4910
  "aliases": [],
4907
4911
  "args": {},
4908
- "description": "Import/Load data in an org using a [SFDX Data Loader](https://help.sfdmu.com/) Project\n\nIf you need to run this command in a production org, you need to either:\n\n- Define **sfdmuCanModify** in your .sfdx-hardis.yml config file. (Example: `sfdmuCanModify: prod-instance.my.salesforce.com`)\n- Define an environment variable SFDMU_CAN_MODIFY. (Example: `SFDMU_CAN_MODIFY=prod-instance.my.salesforce.com`)\n\nSee article:\n\n[![How to detect bad words in Salesforce records using SFDX Data Loader and sfdx-hardis](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-badwords.jpg)](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n",
4912
+ "description": "Configure monitoring of an org",
4909
4913
  "examples": [
4910
- "$ sf hardis:org:data:import"
4914
+ "$ sf hardis:org:configure:monitoring"
4911
4915
  ],
4912
4916
  "flags": {
4913
4917
  "json": {
@@ -4925,10 +4929,9 @@
4925
4929
  "multiple": false,
4926
4930
  "type": "option"
4927
4931
  },
4928
- "path": {
4929
- "char": "p",
4930
- "description": "Path to the sfdmu workspace folder",
4931
- "name": "path",
4932
+ "orginstanceurl": {
4933
+ "description": "Org instance url (technical param, do not use manually)",
4934
+ "name": "orginstanceurl",
4932
4935
  "hasDynamicHelp": false,
4933
4936
  "multiple": false,
4934
4937
  "type": "option"
@@ -4971,16 +4974,16 @@
4971
4974
  },
4972
4975
  "hasDynamicHelp": true,
4973
4976
  "hiddenAliases": [],
4974
- "id": "hardis:org:data:import",
4977
+ "id": "hardis:org:configure:monitoring",
4975
4978
  "pluginAlias": "sfdx-hardis",
4976
4979
  "pluginName": "sfdx-hardis",
4977
4980
  "pluginType": "core",
4978
4981
  "strict": true,
4979
4982
  "enableJsonFlag": true,
4980
- "title": "Import data",
4983
+ "title": "Configure org monitoring",
4981
4984
  "requiresProject": false,
4982
- "requiresSfdxPlugins": [
4983
- "sfdmu"
4985
+ "requiresDependencies": [
4986
+ "openssl"
4984
4987
  ],
4985
4988
  "isESM": true,
4986
4989
  "relativePath": [
@@ -4988,43 +4991,43 @@
4988
4991
  "commands",
4989
4992
  "hardis",
4990
4993
  "org",
4991
- "data",
4992
- "import.js"
4994
+ "configure",
4995
+ "monitoring.js"
4993
4996
  ],
4994
4997
  "aliasPermutations": [],
4995
4998
  "permutations": [
4996
- "hardis:org:data:import",
4997
- "org:hardis:data:import",
4998
- "org:data:hardis:import",
4999
- "org:data:import:hardis",
5000
- "hardis:data:org:import",
5001
- "data:hardis:org:import",
5002
- "data:org:hardis:import",
5003
- "data:org:import:hardis",
5004
- "hardis:data:import:org",
5005
- "data:hardis:import:org",
5006
- "data:import:hardis:org",
5007
- "data:import:org:hardis",
5008
- "hardis:org:import:data",
5009
- "org:hardis:import:data",
5010
- "org:import:hardis:data",
5011
- "org:import:data:hardis",
5012
- "hardis:import:org:data",
5013
- "import:hardis:org:data",
5014
- "import:org:hardis:data",
5015
- "import:org:data:hardis",
5016
- "hardis:import:data:org",
5017
- "import:hardis:data:org",
5018
- "import:data:hardis:org",
5019
- "import:data:org:hardis"
4999
+ "hardis:org:configure:monitoring",
5000
+ "org:hardis:configure:monitoring",
5001
+ "org:configure:hardis:monitoring",
5002
+ "org:configure:monitoring:hardis",
5003
+ "hardis:configure:org:monitoring",
5004
+ "configure:hardis:org:monitoring",
5005
+ "configure:org:hardis:monitoring",
5006
+ "configure:org:monitoring:hardis",
5007
+ "hardis:configure:monitoring:org",
5008
+ "configure:hardis:monitoring:org",
5009
+ "configure:monitoring:hardis:org",
5010
+ "configure:monitoring:org:hardis",
5011
+ "hardis:org:monitoring:configure",
5012
+ "org:hardis:monitoring:configure",
5013
+ "org:monitoring:hardis:configure",
5014
+ "org:monitoring:configure:hardis",
5015
+ "hardis:monitoring:org:configure",
5016
+ "monitoring:hardis:org:configure",
5017
+ "monitoring:org:hardis:configure",
5018
+ "monitoring:org:configure:hardis",
5019
+ "hardis:monitoring:configure:org",
5020
+ "monitoring:hardis:configure:org",
5021
+ "monitoring:configure:hardis:org",
5022
+ "monitoring:configure:org:hardis"
5020
5023
  ]
5021
5024
  },
5022
- "hardis:org:files:export": {
5025
+ "hardis:org:data:delete": {
5023
5026
  "aliases": [],
5024
5027
  "args": {},
5025
- "description": "Export file attachments from a Salesforce org\n\nSee article below\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
5028
+ "description": "Delete records in multiple objects using SFDMU Workspace\n \nIf you need to run this command in production, you need to:\n\n- define runnableInProduction in export.json\n- define sfdmuCanModify: YOUR_INSTANCE_URL in config/branches/.sfdx-hardis.YOUR_BRANCH.yml\n",
5026
5029
  "examples": [
5027
- "$ sf hardis:org:files:export"
5030
+ "$ sf hardis:org:data:delete"
5028
5031
  ],
5029
5032
  "flags": {
5030
5033
  "json": {
@@ -5044,39 +5047,12 @@
5044
5047
  },
5045
5048
  "path": {
5046
5049
  "char": "p",
5047
- "description": "Path to the file export project",
5050
+ "description": "Path to the sfdmu workspace folder",
5048
5051
  "name": "path",
5049
5052
  "hasDynamicHelp": false,
5050
5053
  "multiple": false,
5051
5054
  "type": "option"
5052
5055
  },
5053
- "chunksize": {
5054
- "char": "c",
5055
- "description": "Number of records to add in a chunk before it is processed",
5056
- "name": "chunksize",
5057
- "default": 1000,
5058
- "hasDynamicHelp": false,
5059
- "multiple": false,
5060
- "type": "option"
5061
- },
5062
- "polltimeout": {
5063
- "char": "t",
5064
- "description": "Timeout in MS for Bulk API calls",
5065
- "name": "polltimeout",
5066
- "default": 300000,
5067
- "hasDynamicHelp": false,
5068
- "multiple": false,
5069
- "type": "option"
5070
- },
5071
- "startchunknumber": {
5072
- "char": "s",
5073
- "description": "Chunk number to start from",
5074
- "name": "startchunknumber",
5075
- "default": 0,
5076
- "hasDynamicHelp": false,
5077
- "multiple": false,
5078
- "type": "option"
5079
- },
5080
5056
  "debug": {
5081
5057
  "char": "d",
5082
5058
  "description": "Activate debug mode (more logs)",
@@ -5115,57 +5091,60 @@
5115
5091
  },
5116
5092
  "hasDynamicHelp": true,
5117
5093
  "hiddenAliases": [],
5118
- "id": "hardis:org:files:export",
5094
+ "id": "hardis:org:data:delete",
5119
5095
  "pluginAlias": "sfdx-hardis",
5120
5096
  "pluginName": "sfdx-hardis",
5121
5097
  "pluginType": "core",
5122
5098
  "strict": true,
5123
5099
  "enableJsonFlag": true,
5124
- "title": "Export files",
5100
+ "title": "Delete data",
5125
5101
  "requiresProject": false,
5126
- "isESM": true,
5127
- "relativePath": [
5102
+ "requiresSfdxPlugins": [
5103
+ "sfdmu"
5104
+ ],
5105
+ "isESM": true,
5106
+ "relativePath": [
5128
5107
  "lib",
5129
5108
  "commands",
5130
5109
  "hardis",
5131
5110
  "org",
5132
- "files",
5133
- "export.js"
5111
+ "data",
5112
+ "delete.js"
5134
5113
  ],
5135
5114
  "aliasPermutations": [],
5136
5115
  "permutations": [
5137
- "hardis:org:files:export",
5138
- "org:hardis:files:export",
5139
- "org:files:hardis:export",
5140
- "org:files:export:hardis",
5141
- "hardis:files:org:export",
5142
- "files:hardis:org:export",
5143
- "files:org:hardis:export",
5144
- "files:org:export:hardis",
5145
- "hardis:files:export:org",
5146
- "files:hardis:export:org",
5147
- "files:export:hardis:org",
5148
- "files:export:org:hardis",
5149
- "hardis:org:export:files",
5150
- "org:hardis:export:files",
5151
- "org:export:hardis:files",
5152
- "org:export:files:hardis",
5153
- "hardis:export:org:files",
5154
- "export:hardis:org:files",
5155
- "export:org:hardis:files",
5156
- "export:org:files:hardis",
5157
- "hardis:export:files:org",
5158
- "export:hardis:files:org",
5159
- "export:files:hardis:org",
5160
- "export:files:org:hardis"
5116
+ "hardis:org:data:delete",
5117
+ "org:hardis:data:delete",
5118
+ "org:data:hardis:delete",
5119
+ "org:data:delete:hardis",
5120
+ "hardis:data:org:delete",
5121
+ "data:hardis:org:delete",
5122
+ "data:org:hardis:delete",
5123
+ "data:org:delete:hardis",
5124
+ "hardis:data:delete:org",
5125
+ "data:hardis:delete:org",
5126
+ "data:delete:hardis:org",
5127
+ "data:delete:org:hardis",
5128
+ "hardis:org:delete:data",
5129
+ "org:hardis:delete:data",
5130
+ "org:delete:hardis:data",
5131
+ "org:delete:data:hardis",
5132
+ "hardis:delete:org:data",
5133
+ "delete:hardis:org:data",
5134
+ "delete:org:hardis:data",
5135
+ "delete:org:data:hardis",
5136
+ "hardis:delete:data:org",
5137
+ "delete:hardis:data:org",
5138
+ "delete:data:hardis:org",
5139
+ "delete:data:org:hardis"
5161
5140
  ]
5162
5141
  },
5163
- "hardis:org:files:import": {
5142
+ "hardis:org:data:export": {
5164
5143
  "aliases": [],
5165
5144
  "args": {},
5166
- "description": "Import file attachments into a Salesforce org\n\nSee article below to see how to Export them.\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
5145
+ "description": "Export data from an org using a [SFDX Data Loader](https://help.sfdmu.com/) Project\n\nSee article:\n\n[![How to detect bad words in Salesforce records using SFDX Data Loader and sfdx-hardis](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-badwords.jpg)](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n",
5167
5146
  "examples": [
5168
- "$ sf hardis:org:files:import"
5147
+ "$ sf hardis:org:data:export"
5169
5148
  ],
5170
5149
  "flags": {
5171
5150
  "json": {
@@ -5185,19 +5164,129 @@
5185
5164
  },
5186
5165
  "path": {
5187
5166
  "char": "p",
5188
- "description": "Path to the file export project",
5167
+ "description": "Path to the sfdmu workspace folder",
5189
5168
  "name": "path",
5190
5169
  "hasDynamicHelp": false,
5191
5170
  "multiple": false,
5192
5171
  "type": "option"
5193
5172
  },
5194
- "overwrite": {
5195
- "char": "f",
5196
- "description": "Override existing files (doubles the number of API calls)",
5197
- "name": "overwrite",
5173
+ "debug": {
5174
+ "char": "d",
5175
+ "description": "Activate debug mode (more logs)",
5176
+ "name": "debug",
5177
+ "allowNo": false,
5178
+ "type": "boolean"
5179
+ },
5180
+ "websocket": {
5181
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
5182
+ "name": "websocket",
5183
+ "hasDynamicHelp": false,
5184
+ "multiple": false,
5185
+ "type": "option"
5186
+ },
5187
+ "skipauth": {
5188
+ "description": "Skip authentication check when a default username is required",
5189
+ "name": "skipauth",
5190
+ "allowNo": false,
5191
+ "type": "boolean"
5192
+ },
5193
+ "target-org": {
5194
+ "aliases": [
5195
+ "targetusername",
5196
+ "u"
5197
+ ],
5198
+ "char": "o",
5199
+ "deprecateAliases": true,
5200
+ "name": "target-org",
5201
+ "noCacheDefault": true,
5202
+ "required": true,
5203
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
5204
+ "hasDynamicHelp": true,
5205
+ "multiple": false,
5206
+ "type": "option"
5207
+ }
5208
+ },
5209
+ "hasDynamicHelp": true,
5210
+ "hiddenAliases": [],
5211
+ "id": "hardis:org:data:export",
5212
+ "pluginAlias": "sfdx-hardis",
5213
+ "pluginName": "sfdx-hardis",
5214
+ "pluginType": "core",
5215
+ "strict": true,
5216
+ "enableJsonFlag": true,
5217
+ "title": "Export data",
5218
+ "requiresProject": false,
5219
+ "requiresSfdxPlugins": [
5220
+ "sfdmu"
5221
+ ],
5222
+ "isESM": true,
5223
+ "relativePath": [
5224
+ "lib",
5225
+ "commands",
5226
+ "hardis",
5227
+ "org",
5228
+ "data",
5229
+ "export.js"
5230
+ ],
5231
+ "aliasPermutations": [],
5232
+ "permutations": [
5233
+ "hardis:org:data:export",
5234
+ "org:hardis:data:export",
5235
+ "org:data:hardis:export",
5236
+ "org:data:export:hardis",
5237
+ "hardis:data:org:export",
5238
+ "data:hardis:org:export",
5239
+ "data:org:hardis:export",
5240
+ "data:org:export:hardis",
5241
+ "hardis:data:export:org",
5242
+ "data:hardis:export:org",
5243
+ "data:export:hardis:org",
5244
+ "data:export:org:hardis",
5245
+ "hardis:org:export:data",
5246
+ "org:hardis:export:data",
5247
+ "org:export:hardis:data",
5248
+ "org:export:data:hardis",
5249
+ "hardis:export:org:data",
5250
+ "export:hardis:org:data",
5251
+ "export:org:hardis:data",
5252
+ "export:org:data:hardis",
5253
+ "hardis:export:data:org",
5254
+ "export:hardis:data:org",
5255
+ "export:data:hardis:org",
5256
+ "export:data:org:hardis"
5257
+ ]
5258
+ },
5259
+ "hardis:org:data:import": {
5260
+ "aliases": [],
5261
+ "args": {},
5262
+ "description": "Import/Load data in an org using a [SFDX Data Loader](https://help.sfdmu.com/) Project\n\nIf you need to run this command in a production org, you need to either:\n\n- Define **sfdmuCanModify** in your .sfdx-hardis.yml config file. (Example: `sfdmuCanModify: prod-instance.my.salesforce.com`)\n- Define an environment variable SFDMU_CAN_MODIFY. (Example: `SFDMU_CAN_MODIFY=prod-instance.my.salesforce.com`)\n\nSee article:\n\n[![How to detect bad words in Salesforce records using SFDX Data Loader and sfdx-hardis](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-badwords.jpg)](https://nicolas.vuillamy.fr/how-to-detect-bad-words-in-salesforce-records-using-sfdx-data-loader-and-sfdx-hardis-171db40a9bac)\n",
5263
+ "examples": [
5264
+ "$ sf hardis:org:data:import"
5265
+ ],
5266
+ "flags": {
5267
+ "json": {
5268
+ "description": "Format output as json.",
5269
+ "helpGroup": "GLOBAL",
5270
+ "name": "json",
5198
5271
  "allowNo": false,
5199
5272
  "type": "boolean"
5200
5273
  },
5274
+ "flags-dir": {
5275
+ "helpGroup": "GLOBAL",
5276
+ "name": "flags-dir",
5277
+ "summary": "Import flag values from a directory.",
5278
+ "hasDynamicHelp": false,
5279
+ "multiple": false,
5280
+ "type": "option"
5281
+ },
5282
+ "path": {
5283
+ "char": "p",
5284
+ "description": "Path to the sfdmu workspace folder",
5285
+ "name": "path",
5286
+ "hasDynamicHelp": false,
5287
+ "multiple": false,
5288
+ "type": "option"
5289
+ },
5201
5290
  "debug": {
5202
5291
  "char": "d",
5203
5292
  "description": "Activate debug mode (more logs)",
@@ -5236,49 +5325,52 @@
5236
5325
  },
5237
5326
  "hasDynamicHelp": true,
5238
5327
  "hiddenAliases": [],
5239
- "id": "hardis:org:files:import",
5328
+ "id": "hardis:org:data:import",
5240
5329
  "pluginAlias": "sfdx-hardis",
5241
5330
  "pluginName": "sfdx-hardis",
5242
5331
  "pluginType": "core",
5243
5332
  "strict": true,
5244
5333
  "enableJsonFlag": true,
5245
- "title": "Import files",
5334
+ "title": "Import data",
5246
5335
  "requiresProject": false,
5336
+ "requiresSfdxPlugins": [
5337
+ "sfdmu"
5338
+ ],
5247
5339
  "isESM": true,
5248
5340
  "relativePath": [
5249
5341
  "lib",
5250
5342
  "commands",
5251
5343
  "hardis",
5252
5344
  "org",
5253
- "files",
5345
+ "data",
5254
5346
  "import.js"
5255
5347
  ],
5256
5348
  "aliasPermutations": [],
5257
5349
  "permutations": [
5258
- "hardis:org:files:import",
5259
- "org:hardis:files:import",
5260
- "org:files:hardis:import",
5261
- "org:files:import:hardis",
5262
- "hardis:files:org:import",
5263
- "files:hardis:org:import",
5264
- "files:org:hardis:import",
5265
- "files:org:import:hardis",
5266
- "hardis:files:import:org",
5267
- "files:hardis:import:org",
5268
- "files:import:hardis:org",
5269
- "files:import:org:hardis",
5270
- "hardis:org:import:files",
5271
- "org:hardis:import:files",
5272
- "org:import:hardis:files",
5273
- "org:import:files:hardis",
5274
- "hardis:import:org:files",
5275
- "import:hardis:org:files",
5276
- "import:org:hardis:files",
5277
- "import:org:files:hardis",
5278
- "hardis:import:files:org",
5279
- "import:hardis:files:org",
5280
- "import:files:hardis:org",
5281
- "import:files:org:hardis"
5350
+ "hardis:org:data:import",
5351
+ "org:hardis:data:import",
5352
+ "org:data:hardis:import",
5353
+ "org:data:import:hardis",
5354
+ "hardis:data:org:import",
5355
+ "data:hardis:org:import",
5356
+ "data:org:hardis:import",
5357
+ "data:org:import:hardis",
5358
+ "hardis:data:import:org",
5359
+ "data:hardis:import:org",
5360
+ "data:import:hardis:org",
5361
+ "data:import:org:hardis",
5362
+ "hardis:org:import:data",
5363
+ "org:hardis:import:data",
5364
+ "org:import:hardis:data",
5365
+ "org:import:data:hardis",
5366
+ "hardis:import:org:data",
5367
+ "import:hardis:org:data",
5368
+ "import:org:hardis:data",
5369
+ "import:org:data:hardis",
5370
+ "hardis:import:data:org",
5371
+ "import:hardis:data:org",
5372
+ "import:data:hardis:org",
5373
+ "import:data:org:hardis"
5282
5374
  ]
5283
5375
  },
5284
5376
  "hardis:org:diagnose:audittrail": {
@@ -6430,13 +6522,12 @@
6430
6522
  "unusedusers:diagnose:org:hardis"
6431
6523
  ]
6432
6524
  },
6433
- "hardis:org:fix:listviewmine": {
6525
+ "hardis:org:files:export": {
6434
6526
  "aliases": [],
6435
6527
  "args": {},
6436
- "description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[![Invalid scope:Mine, not allowed ? Deploy your ListViews anyway !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-invalid-scope-mine.jpg)](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
6528
+ "description": "Export file attachments from a Salesforce org\n\nSee article below\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
6437
6529
  "examples": [
6438
- "$ sf hardis:org:fix:listviewmine",
6439
- "$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
6530
+ "$ sf hardis:org:files:export"
6440
6531
  ],
6441
6532
  "flags": {
6442
6533
  "json": {
@@ -6454,15 +6545,42 @@
6454
6545
  "multiple": false,
6455
6546
  "type": "option"
6456
6547
  },
6457
- "listviews": {
6458
- "char": "l",
6459
- "description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
6460
- "name": "listviews",
6548
+ "path": {
6549
+ "char": "p",
6550
+ "description": "Path to the file export project",
6551
+ "name": "path",
6461
6552
  "hasDynamicHelp": false,
6462
6553
  "multiple": false,
6463
6554
  "type": "option"
6464
6555
  },
6465
- "debug": {
6556
+ "chunksize": {
6557
+ "char": "c",
6558
+ "description": "Number of records to add in a chunk before it is processed",
6559
+ "name": "chunksize",
6560
+ "default": 1000,
6561
+ "hasDynamicHelp": false,
6562
+ "multiple": false,
6563
+ "type": "option"
6564
+ },
6565
+ "polltimeout": {
6566
+ "char": "t",
6567
+ "description": "Timeout in MS for Bulk API calls",
6568
+ "name": "polltimeout",
6569
+ "default": 300000,
6570
+ "hasDynamicHelp": false,
6571
+ "multiple": false,
6572
+ "type": "option"
6573
+ },
6574
+ "startchunknumber": {
6575
+ "char": "s",
6576
+ "description": "Chunk number to start from",
6577
+ "name": "startchunknumber",
6578
+ "default": 0,
6579
+ "hasDynamicHelp": false,
6580
+ "multiple": false,
6581
+ "type": "option"
6582
+ },
6583
+ "debug": {
6466
6584
  "char": "d",
6467
6585
  "description": "Activate debug mode (more logs)",
6468
6586
  "name": "debug",
@@ -6500,59 +6618,57 @@
6500
6618
  },
6501
6619
  "hasDynamicHelp": true,
6502
6620
  "hiddenAliases": [],
6503
- "id": "hardis:org:fix:listviewmine",
6621
+ "id": "hardis:org:files:export",
6504
6622
  "pluginAlias": "sfdx-hardis",
6505
6623
  "pluginName": "sfdx-hardis",
6506
6624
  "pluginType": "core",
6507
6625
  "strict": true,
6508
6626
  "enableJsonFlag": true,
6509
- "title": "Fix listviews with ",
6510
- "requiresProject": true,
6627
+ "title": "Export files",
6628
+ "requiresProject": false,
6511
6629
  "isESM": true,
6512
6630
  "relativePath": [
6513
6631
  "lib",
6514
6632
  "commands",
6515
6633
  "hardis",
6516
6634
  "org",
6517
- "fix",
6518
- "listviewmine.js"
6635
+ "files",
6636
+ "export.js"
6519
6637
  ],
6520
6638
  "aliasPermutations": [],
6521
6639
  "permutations": [
6522
- "hardis:org:fix:listviewmine",
6523
- "org:hardis:fix:listviewmine",
6524
- "org:fix:hardis:listviewmine",
6525
- "org:fix:listviewmine:hardis",
6526
- "hardis:fix:org:listviewmine",
6527
- "fix:hardis:org:listviewmine",
6528
- "fix:org:hardis:listviewmine",
6529
- "fix:org:listviewmine:hardis",
6530
- "hardis:fix:listviewmine:org",
6531
- "fix:hardis:listviewmine:org",
6532
- "fix:listviewmine:hardis:org",
6533
- "fix:listviewmine:org:hardis",
6534
- "hardis:org:listviewmine:fix",
6535
- "org:hardis:listviewmine:fix",
6536
- "org:listviewmine:hardis:fix",
6537
- "org:listviewmine:fix:hardis",
6538
- "hardis:listviewmine:org:fix",
6539
- "listviewmine:hardis:org:fix",
6540
- "listviewmine:org:hardis:fix",
6541
- "listviewmine:org:fix:hardis",
6542
- "hardis:listviewmine:fix:org",
6543
- "listviewmine:hardis:fix:org",
6544
- "listviewmine:fix:hardis:org",
6545
- "listviewmine:fix:org:hardis"
6640
+ "hardis:org:files:export",
6641
+ "org:hardis:files:export",
6642
+ "org:files:hardis:export",
6643
+ "org:files:export:hardis",
6644
+ "hardis:files:org:export",
6645
+ "files:hardis:org:export",
6646
+ "files:org:hardis:export",
6647
+ "files:org:export:hardis",
6648
+ "hardis:files:export:org",
6649
+ "files:hardis:export:org",
6650
+ "files:export:hardis:org",
6651
+ "files:export:org:hardis",
6652
+ "hardis:org:export:files",
6653
+ "org:hardis:export:files",
6654
+ "org:export:hardis:files",
6655
+ "org:export:files:hardis",
6656
+ "hardis:export:org:files",
6657
+ "export:hardis:org:files",
6658
+ "export:org:hardis:files",
6659
+ "export:org:files:hardis",
6660
+ "hardis:export:files:org",
6661
+ "export:hardis:files:org",
6662
+ "export:files:hardis:org",
6663
+ "export:files:org:hardis"
6546
6664
  ]
6547
6665
  },
6548
- "hardis:org:generate:packagexmlfull": {
6666
+ "hardis:org:files:import": {
6549
6667
  "aliases": [],
6550
6668
  "args": {},
6551
- "description": "Generates full org package.xml, including managed items",
6669
+ "description": "Import file attachments into a Salesforce org\n\nSee article below to see how to Export them.\n\n[![How to mass download notes and attachments files from a Salesforce org](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-mass-download.jpg)](https://nicolas.vuillamy.fr/how-to-mass-download-notes-and-attachments-files-from-a-salesforce-org-83a028824afd)\n",
6552
6670
  "examples": [
6553
- "$ sf hardis:org:generate:packagexmlfull",
6554
- "$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
6555
- "$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
6671
+ "$ sf hardis:org:files:import"
6556
6672
  ],
6557
6673
  "flags": {
6558
6674
  "json": {
@@ -6570,13 +6686,21 @@
6570
6686
  "multiple": false,
6571
6687
  "type": "option"
6572
6688
  },
6573
- "outputfile": {
6574
- "description": "Output package.xml file",
6575
- "name": "outputfile",
6689
+ "path": {
6690
+ "char": "p",
6691
+ "description": "Path to the file export project",
6692
+ "name": "path",
6576
6693
  "hasDynamicHelp": false,
6577
6694
  "multiple": false,
6578
6695
  "type": "option"
6579
6696
  },
6697
+ "overwrite": {
6698
+ "char": "f",
6699
+ "description": "Override existing files (doubles the number of API calls)",
6700
+ "name": "overwrite",
6701
+ "allowNo": false,
6702
+ "type": "boolean"
6703
+ },
6580
6704
  "debug": {
6581
6705
  "char": "d",
6582
6706
  "description": "Activate debug mode (more logs)",
@@ -6615,13 +6739,13 @@
6615
6739
  },
6616
6740
  "hasDynamicHelp": true,
6617
6741
  "hiddenAliases": [],
6618
- "id": "hardis:org:generate:packagexmlfull",
6742
+ "id": "hardis:org:files:import",
6619
6743
  "pluginAlias": "sfdx-hardis",
6620
6744
  "pluginName": "sfdx-hardis",
6621
6745
  "pluginType": "core",
6622
6746
  "strict": true,
6623
6747
  "enableJsonFlag": true,
6624
- "title": "Generate Full Org package.xml",
6748
+ "title": "Import files",
6625
6749
  "requiresProject": false,
6626
6750
  "isESM": true,
6627
6751
  "relativePath": [
@@ -6629,43 +6753,44 @@
6629
6753
  "commands",
6630
6754
  "hardis",
6631
6755
  "org",
6632
- "generate",
6633
- "packagexmlfull.js"
6756
+ "files",
6757
+ "import.js"
6634
6758
  ],
6635
6759
  "aliasPermutations": [],
6636
6760
  "permutations": [
6637
- "hardis:org:generate:packagexmlfull",
6638
- "org:hardis:generate:packagexmlfull",
6639
- "org:generate:hardis:packagexmlfull",
6640
- "org:generate:packagexmlfull:hardis",
6641
- "hardis:generate:org:packagexmlfull",
6642
- "generate:hardis:org:packagexmlfull",
6643
- "generate:org:hardis:packagexmlfull",
6644
- "generate:org:packagexmlfull:hardis",
6645
- "hardis:generate:packagexmlfull:org",
6646
- "generate:hardis:packagexmlfull:org",
6647
- "generate:packagexmlfull:hardis:org",
6648
- "generate:packagexmlfull:org:hardis",
6649
- "hardis:org:packagexmlfull:generate",
6650
- "org:hardis:packagexmlfull:generate",
6651
- "org:packagexmlfull:hardis:generate",
6652
- "org:packagexmlfull:generate:hardis",
6653
- "hardis:packagexmlfull:org:generate",
6654
- "packagexmlfull:hardis:org:generate",
6655
- "packagexmlfull:org:hardis:generate",
6656
- "packagexmlfull:org:generate:hardis",
6657
- "hardis:packagexmlfull:generate:org",
6658
- "packagexmlfull:hardis:generate:org",
6659
- "packagexmlfull:generate:hardis:org",
6660
- "packagexmlfull:generate:org:hardis"
6761
+ "hardis:org:files:import",
6762
+ "org:hardis:files:import",
6763
+ "org:files:hardis:import",
6764
+ "org:files:import:hardis",
6765
+ "hardis:files:org:import",
6766
+ "files:hardis:org:import",
6767
+ "files:org:hardis:import",
6768
+ "files:org:import:hardis",
6769
+ "hardis:files:import:org",
6770
+ "files:hardis:import:org",
6771
+ "files:import:hardis:org",
6772
+ "files:import:org:hardis",
6773
+ "hardis:org:import:files",
6774
+ "org:hardis:import:files",
6775
+ "org:import:hardis:files",
6776
+ "org:import:files:hardis",
6777
+ "hardis:import:org:files",
6778
+ "import:hardis:org:files",
6779
+ "import:org:hardis:files",
6780
+ "import:org:files:hardis",
6781
+ "hardis:import:files:org",
6782
+ "import:hardis:files:org",
6783
+ "import:files:hardis:org",
6784
+ "import:files:org:hardis"
6661
6785
  ]
6662
6786
  },
6663
- "hardis:org:monitor:all": {
6787
+ "hardis:org:fix:listviewmine": {
6664
6788
  "aliases": [],
6665
6789
  "args": {},
6666
- "description": "Monitor org, generate reports and sends notifications\n\nYou can disable some commands defining either a **monitoringDisable** property in `.sfdx-hardis.yml`, or a comma separated list in env variable **MONITORING_DISABLE**\n\nExample in .sfdx-hardis.yml:\n \n```yaml\nmonitoringDisable:\n - METADATA_STATUS\n - MISSING_ATTRIBUTES\n - UNUSED_METADATAS\n```\n \nExample in env var:\n\n```sh\nMONITORING_DISABLE=METADATA_STATUS,MISSING_ATTRIBUTES,UNUSED_METADATAS\n```\n\nA [default list of monitoring commands](https://sfdx-hardis.cloudity.com/salesforce-monitoring-home/#monitoring-commands) is used, if you want to override it you can define property **monitoringCommands** in your .sfdx-hardis.yml file\n\nExample:\n\n```yaml\nmonitoringCommands:\n - title: My Custom command\n command: sf my:custom:command\n - title: My Custom command 2\n command: sf my:other:custom:command\n```\n\nYou can force the daily run of all commands by defining env var `MONITORING_IGNORE_FREQUENCY=true`\n\nThe default list of commands is the following:\n\n| Key | Description | Command | Frequency |\n| :---: | :---- | :---- | :-----: |\n| [AUDIT_TRAIL](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | Detect suspect setup actions in major org | [sf hardis:org:diagnose:audittrail](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | daily |\n| [LEGACY_API](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | Detect calls to deprecated API versions | [sf hardis:org:diagnose:legacyapi](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | daily |\n| [ORG_LIMITS](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | Detect if org limits are close to be reached | [sf hardis:org:monitor:limits](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | daily |\n| [LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | Extract licenses information | [sf hardis:org:diagnose:licenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | weekly |\n| [LINT_ACCESS](https://sfdx-hardis.cloudity.com/hardis/lint/access) | Detect custom elements with no access rights defined in permission sets | [sf hardis:lint:access](https://sfdx-hardis.cloudity.com/hardis/lint/access) | weekly |\n| [UNUSED_LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | Detect permission set licenses that are assigned to users that do not need them | [sf hardis:org:diagnose:unusedlicenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | weekly |\n| [UNUSED_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users without recent logins | [sf hardis:org:diagnose:unusedusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ACTIVE_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users with recent logins | [sf hardis:org:diagnose:unusedusers --returnactiveusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ORG_INFO](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | Get org info + SF instance info + next major upgrade date | [sf hardis:org:diagnose:instanceupgrade](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | weekly |\n| [RELEASE_UPDATES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | Gather warnings about incoming and overdue Release Updates | [sf hardis:org:diagnose:releaseupdates](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | weekly |\n| [UNUSED_METADATAS](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | Detect custom labels and custom permissions that are not in use | [sf hardis:lint:unusedmetadatas](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | weekly |\n| [UNUSED_APEX_CLASSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | Detect unused Apex classes in an org | [sf hardis:org:diagnose:unused-apex-classes](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | weekly |\n| [CONNECTED_APPS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | Detect unused Connected Apps in an org | [sf hardis:org:diagnose:unused-connected-apps](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | weekly |\n| [METADATA_STATUS](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | Detect inactive metadata | [sf hardis:lint:metadatastatus](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | weekly |\n| [MISSING_ATTRIBUTES](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | Detect missing description on custom field | [sf hardis:lint:missingattributes](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | weekly |\n\n",
6790
+ "description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[![Invalid scope:Mine, not allowed ? Deploy your ListViews anyway !](https://github.com/hardisgroupcom/sfdx-hardis/raw/main/docs/assets/images/article-invalid-scope-mine.jpg)](https://nicolas.vuillamy.fr/invalid-scope-mine-not-allowed-deploy-your-listviews-anyway-443aceca8ac7)\n\nList of ListViews can be:\n\n- read from .sfdx-hardis.yml file in property **listViewsToSetToMine**\n- sent in argument listviews\n\nNote: property **listViewsToSetToMine** can be auto-generated by command hardis:work:save if .sfdx-hardis.yml contains the following configuration\n\n```yaml\nautoCleanTypes:\n - listViewsMine\n```\n\n- Example of sfdx-hardis.yml property `listViewsToSetToMine`:\n\n```yaml\nlistViewsToSetToMine:\n - \"force-app/main/default/objects/Operation__c/listViews/MyCurrentOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Operation__c/listViews/MyFinalizedOperations.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/Default_Opportunity_Pipeline.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MyCurrentSubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Opportunity/listViews/MySubscriptions.listView-meta.xml\"\n - \"force-app/main/default/objects/Account/listViews/MyActivePartners.listView-meta.xml\"\n```\n\n- If manually written, this could also be:\n\n```yaml\nlistViewsToSetToMine:\n - \"Operation__c:MyCurrentOperations\"\n - \"Operation__c:MyFinalizedOperations\"\n - \"Opportunity:Default_Opportunity_Pipeline\"\n - \"Opportunity:MyCurrentSubscriptions\"\n - \"Opportunity:MySubscriptions\"\n - \"Account:MyActivePartners\"\n```\n\nTroubleshooting: if you need to run this command from an alpine-linux based docker image, use this workaround in your dockerfile:\n\n```dockerfile\n# Do not use puppeteer embedded chromium\nRUN apk add --update --no-cache chromium\nENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=\"true\"\nENV CHROMIUM_PATH=\"/usr/bin/chromium-browser\"\nENV PUPPETEER_EXECUTABLE_PATH=\"$\\{CHROMIUM_PATH}\" // remove \\ before {\n```\n",
6667
6791
  "examples": [
6668
- "$ sf hardis:org:monitor:all"
6792
+ "$ sf hardis:org:fix:listviewmine",
6793
+ "$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
6669
6794
  ],
6670
6795
  "flags": {
6671
6796
  "json": {
@@ -6683,6 +6808,14 @@
6683
6808
  "multiple": false,
6684
6809
  "type": "option"
6685
6810
  },
6811
+ "listviews": {
6812
+ "char": "l",
6813
+ "description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
6814
+ "name": "listviews",
6815
+ "hasDynamicHelp": false,
6816
+ "multiple": false,
6817
+ "type": "option"
6818
+ },
6686
6819
  "debug": {
6687
6820
  "char": "d",
6688
6821
  "description": "Activate debug mode (more logs)",
@@ -6721,27 +6854,248 @@
6721
6854
  },
6722
6855
  "hasDynamicHelp": true,
6723
6856
  "hiddenAliases": [],
6724
- "id": "hardis:org:monitor:all",
6857
+ "id": "hardis:org:fix:listviewmine",
6725
6858
  "pluginAlias": "sfdx-hardis",
6726
6859
  "pluginName": "sfdx-hardis",
6727
6860
  "pluginType": "core",
6728
6861
  "strict": true,
6729
6862
  "enableJsonFlag": true,
6730
- "title": "Monitor org",
6731
- "monitoringCommandsDefault": [
6732
- {
6733
- "key": "AUDIT_TRAIL",
6734
- "title": "Detect suspect setup actions in major org",
6735
- "command": "sf hardis:org:diagnose:audittrail",
6736
- "frequency": "daily"
6863
+ "title": "Fix listviews with ",
6864
+ "requiresProject": true,
6865
+ "isESM": true,
6866
+ "relativePath": [
6867
+ "lib",
6868
+ "commands",
6869
+ "hardis",
6870
+ "org",
6871
+ "fix",
6872
+ "listviewmine.js"
6873
+ ],
6874
+ "aliasPermutations": [],
6875
+ "permutations": [
6876
+ "hardis:org:fix:listviewmine",
6877
+ "org:hardis:fix:listviewmine",
6878
+ "org:fix:hardis:listviewmine",
6879
+ "org:fix:listviewmine:hardis",
6880
+ "hardis:fix:org:listviewmine",
6881
+ "fix:hardis:org:listviewmine",
6882
+ "fix:org:hardis:listviewmine",
6883
+ "fix:org:listviewmine:hardis",
6884
+ "hardis:fix:listviewmine:org",
6885
+ "fix:hardis:listviewmine:org",
6886
+ "fix:listviewmine:hardis:org",
6887
+ "fix:listviewmine:org:hardis",
6888
+ "hardis:org:listviewmine:fix",
6889
+ "org:hardis:listviewmine:fix",
6890
+ "org:listviewmine:hardis:fix",
6891
+ "org:listviewmine:fix:hardis",
6892
+ "hardis:listviewmine:org:fix",
6893
+ "listviewmine:hardis:org:fix",
6894
+ "listviewmine:org:hardis:fix",
6895
+ "listviewmine:org:fix:hardis",
6896
+ "hardis:listviewmine:fix:org",
6897
+ "listviewmine:hardis:fix:org",
6898
+ "listviewmine:fix:hardis:org",
6899
+ "listviewmine:fix:org:hardis"
6900
+ ]
6901
+ },
6902
+ "hardis:org:generate:packagexmlfull": {
6903
+ "aliases": [],
6904
+ "args": {},
6905
+ "description": "Generates full org package.xml, including managed items",
6906
+ "examples": [
6907
+ "$ sf hardis:org:generate:packagexmlfull",
6908
+ "$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
6909
+ "$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
6910
+ ],
6911
+ "flags": {
6912
+ "json": {
6913
+ "description": "Format output as json.",
6914
+ "helpGroup": "GLOBAL",
6915
+ "name": "json",
6916
+ "allowNo": false,
6917
+ "type": "boolean"
6737
6918
  },
6738
- {
6739
- "key": "LEGACY_API",
6740
- "title": "Detect calls to deprecated API versions",
6741
- "command": "sf hardis:org:diagnose:legacyapi",
6742
- "frequency": "daily"
6919
+ "flags-dir": {
6920
+ "helpGroup": "GLOBAL",
6921
+ "name": "flags-dir",
6922
+ "summary": "Import flag values from a directory.",
6923
+ "hasDynamicHelp": false,
6924
+ "multiple": false,
6925
+ "type": "option"
6743
6926
  },
6744
- {
6927
+ "outputfile": {
6928
+ "description": "Output package.xml file",
6929
+ "name": "outputfile",
6930
+ "hasDynamicHelp": false,
6931
+ "multiple": false,
6932
+ "type": "option"
6933
+ },
6934
+ "debug": {
6935
+ "char": "d",
6936
+ "description": "Activate debug mode (more logs)",
6937
+ "name": "debug",
6938
+ "allowNo": false,
6939
+ "type": "boolean"
6940
+ },
6941
+ "websocket": {
6942
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
6943
+ "name": "websocket",
6944
+ "hasDynamicHelp": false,
6945
+ "multiple": false,
6946
+ "type": "option"
6947
+ },
6948
+ "skipauth": {
6949
+ "description": "Skip authentication check when a default username is required",
6950
+ "name": "skipauth",
6951
+ "allowNo": false,
6952
+ "type": "boolean"
6953
+ },
6954
+ "target-org": {
6955
+ "aliases": [
6956
+ "targetusername",
6957
+ "u"
6958
+ ],
6959
+ "char": "o",
6960
+ "deprecateAliases": true,
6961
+ "name": "target-org",
6962
+ "noCacheDefault": true,
6963
+ "required": true,
6964
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
6965
+ "hasDynamicHelp": true,
6966
+ "multiple": false,
6967
+ "type": "option"
6968
+ }
6969
+ },
6970
+ "hasDynamicHelp": true,
6971
+ "hiddenAliases": [],
6972
+ "id": "hardis:org:generate:packagexmlfull",
6973
+ "pluginAlias": "sfdx-hardis",
6974
+ "pluginName": "sfdx-hardis",
6975
+ "pluginType": "core",
6976
+ "strict": true,
6977
+ "enableJsonFlag": true,
6978
+ "title": "Generate Full Org package.xml",
6979
+ "requiresProject": false,
6980
+ "isESM": true,
6981
+ "relativePath": [
6982
+ "lib",
6983
+ "commands",
6984
+ "hardis",
6985
+ "org",
6986
+ "generate",
6987
+ "packagexmlfull.js"
6988
+ ],
6989
+ "aliasPermutations": [],
6990
+ "permutations": [
6991
+ "hardis:org:generate:packagexmlfull",
6992
+ "org:hardis:generate:packagexmlfull",
6993
+ "org:generate:hardis:packagexmlfull",
6994
+ "org:generate:packagexmlfull:hardis",
6995
+ "hardis:generate:org:packagexmlfull",
6996
+ "generate:hardis:org:packagexmlfull",
6997
+ "generate:org:hardis:packagexmlfull",
6998
+ "generate:org:packagexmlfull:hardis",
6999
+ "hardis:generate:packagexmlfull:org",
7000
+ "generate:hardis:packagexmlfull:org",
7001
+ "generate:packagexmlfull:hardis:org",
7002
+ "generate:packagexmlfull:org:hardis",
7003
+ "hardis:org:packagexmlfull:generate",
7004
+ "org:hardis:packagexmlfull:generate",
7005
+ "org:packagexmlfull:hardis:generate",
7006
+ "org:packagexmlfull:generate:hardis",
7007
+ "hardis:packagexmlfull:org:generate",
7008
+ "packagexmlfull:hardis:org:generate",
7009
+ "packagexmlfull:org:hardis:generate",
7010
+ "packagexmlfull:org:generate:hardis",
7011
+ "hardis:packagexmlfull:generate:org",
7012
+ "packagexmlfull:hardis:generate:org",
7013
+ "packagexmlfull:generate:hardis:org",
7014
+ "packagexmlfull:generate:org:hardis"
7015
+ ]
7016
+ },
7017
+ "hardis:org:monitor:all": {
7018
+ "aliases": [],
7019
+ "args": {},
7020
+ "description": "Monitor org, generate reports and sends notifications\n\nYou can disable some commands defining either a **monitoringDisable** property in `.sfdx-hardis.yml`, or a comma separated list in env variable **MONITORING_DISABLE**\n\nExample in .sfdx-hardis.yml:\n \n```yaml\nmonitoringDisable:\n - METADATA_STATUS\n - MISSING_ATTRIBUTES\n - UNUSED_METADATAS\n```\n \nExample in env var:\n\n```sh\nMONITORING_DISABLE=METADATA_STATUS,MISSING_ATTRIBUTES,UNUSED_METADATAS\n```\n\nA [default list of monitoring commands](https://sfdx-hardis.cloudity.com/salesforce-monitoring-home/#monitoring-commands) is used, if you want to override it you can define property **monitoringCommands** in your .sfdx-hardis.yml file\n\nExample:\n\n```yaml\nmonitoringCommands:\n - title: My Custom command\n command: sf my:custom:command\n - title: My Custom command 2\n command: sf my:other:custom:command\n```\n\nYou can force the daily run of all commands by defining env var `MONITORING_IGNORE_FREQUENCY=true`\n\nThe default list of commands is the following:\n\n| Key | Description | Command | Frequency |\n| :---: | :---- | :---- | :-----: |\n| [AUDIT_TRAIL](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | Detect suspect setup actions in major org | [sf hardis:org:diagnose:audittrail](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/audittrail) | daily |\n| [LEGACY_API](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | Detect calls to deprecated API versions | [sf hardis:org:diagnose:legacyapi](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/legacyapi) | daily |\n| [ORG_LIMITS](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | Detect if org limits are close to be reached | [sf hardis:org:monitor:limits](https://sfdx-hardis.cloudity.com/hardis/org/monitor/limits) | daily |\n| [LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | Extract licenses information | [sf hardis:org:diagnose:licenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/licenses) | weekly |\n| [LINT_ACCESS](https://sfdx-hardis.cloudity.com/hardis/lint/access) | Detect custom elements with no access rights defined in permission sets | [sf hardis:lint:access](https://sfdx-hardis.cloudity.com/hardis/lint/access) | weekly |\n| [UNUSED_LICENSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | Detect permission set licenses that are assigned to users that do not need them | [sf hardis:org:diagnose:unusedlicenses](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedlicenses) | weekly |\n| [UNUSED_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users without recent logins | [sf hardis:org:diagnose:unusedusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ACTIVE_USERS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | Detect active users with recent logins | [sf hardis:org:diagnose:unusedusers --returnactiveusers](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unusedusers) | weekly |\n| [ORG_INFO](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | Get org info + SF instance info + next major upgrade date | [sf hardis:org:diagnose:instanceupgrade](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/instanceupgrade) | weekly |\n| [RELEASE_UPDATES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | Gather warnings about incoming and overdue Release Updates | [sf hardis:org:diagnose:releaseupdates](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/releaseupdates) | weekly |\n| [UNUSED_METADATAS](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | Detect custom labels and custom permissions that are not in use | [sf hardis:lint:unusedmetadatas](https://sfdx-hardis.cloudity.com/hardis/lint/unusedmetadatas) | weekly |\n| [UNUSED_APEX_CLASSES](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | Detect unused Apex classes in an org | [sf hardis:org:diagnose:unused-apex-classes](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-apex-classes) | weekly |\n| [CONNECTED_APPS](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | Detect unused Connected Apps in an org | [sf hardis:org:diagnose:unused-connected-apps](https://sfdx-hardis.cloudity.com/hardis/org/diagnose/unused-connected-apps) | weekly |\n| [METADATA_STATUS](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | Detect inactive metadata | [sf hardis:lint:metadatastatus](https://sfdx-hardis.cloudity.com/hardis/lint/metadatastatus) | weekly |\n| [MISSING_ATTRIBUTES](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | Detect missing description on custom field | [sf hardis:lint:missingattributes](https://sfdx-hardis.cloudity.com/hardis/lint/missingattributes) | weekly |\n\n",
7021
+ "examples": [
7022
+ "$ sf hardis:org:monitor:all"
7023
+ ],
7024
+ "flags": {
7025
+ "json": {
7026
+ "description": "Format output as json.",
7027
+ "helpGroup": "GLOBAL",
7028
+ "name": "json",
7029
+ "allowNo": false,
7030
+ "type": "boolean"
7031
+ },
7032
+ "flags-dir": {
7033
+ "helpGroup": "GLOBAL",
7034
+ "name": "flags-dir",
7035
+ "summary": "Import flag values from a directory.",
7036
+ "hasDynamicHelp": false,
7037
+ "multiple": false,
7038
+ "type": "option"
7039
+ },
7040
+ "debug": {
7041
+ "char": "d",
7042
+ "description": "Activate debug mode (more logs)",
7043
+ "name": "debug",
7044
+ "allowNo": false,
7045
+ "type": "boolean"
7046
+ },
7047
+ "websocket": {
7048
+ "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
7049
+ "name": "websocket",
7050
+ "hasDynamicHelp": false,
7051
+ "multiple": false,
7052
+ "type": "option"
7053
+ },
7054
+ "skipauth": {
7055
+ "description": "Skip authentication check when a default username is required",
7056
+ "name": "skipauth",
7057
+ "allowNo": false,
7058
+ "type": "boolean"
7059
+ },
7060
+ "target-org": {
7061
+ "aliases": [
7062
+ "targetusername",
7063
+ "u"
7064
+ ],
7065
+ "char": "o",
7066
+ "deprecateAliases": true,
7067
+ "name": "target-org",
7068
+ "noCacheDefault": true,
7069
+ "required": true,
7070
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
7071
+ "hasDynamicHelp": true,
7072
+ "multiple": false,
7073
+ "type": "option"
7074
+ }
7075
+ },
7076
+ "hasDynamicHelp": true,
7077
+ "hiddenAliases": [],
7078
+ "id": "hardis:org:monitor:all",
7079
+ "pluginAlias": "sfdx-hardis",
7080
+ "pluginName": "sfdx-hardis",
7081
+ "pluginType": "core",
7082
+ "strict": true,
7083
+ "enableJsonFlag": true,
7084
+ "title": "Monitor org",
7085
+ "monitoringCommandsDefault": [
7086
+ {
7087
+ "key": "AUDIT_TRAIL",
7088
+ "title": "Detect suspect setup actions in major org",
7089
+ "command": "sf hardis:org:diagnose:audittrail",
7090
+ "frequency": "daily"
7091
+ },
7092
+ {
7093
+ "key": "LEGACY_API",
7094
+ "title": "Detect calls to deprecated API versions",
7095
+ "command": "sf hardis:org:diagnose:legacyapi",
7096
+ "frequency": "daily"
7097
+ },
7098
+ {
6745
7099
  "key": "ORG_LIMITS",
6746
7100
  "title": "Detect if org limits are close to be reached",
6747
7101
  "command": "sf hardis:org:monitor:limits",
@@ -8022,360 +8376,6 @@
8022
8376
  "unfreeze:user:org:hardis"
8023
8377
  ]
8024
8378
  },
8025
- "hardis:package:version:create": {
8026
- "aliases": [],
8027
- "args": {},
8028
- "description": "Create a new version of an unlocked package",
8029
- "examples": [
8030
- "$ sf hardis:package:version:create"
8031
- ],
8032
- "flags": {
8033
- "json": {
8034
- "description": "Format output as json.",
8035
- "helpGroup": "GLOBAL",
8036
- "name": "json",
8037
- "allowNo": false,
8038
- "type": "boolean"
8039
- },
8040
- "flags-dir": {
8041
- "helpGroup": "GLOBAL",
8042
- "name": "flags-dir",
8043
- "summary": "Import flag values from a directory.",
8044
- "hasDynamicHelp": false,
8045
- "multiple": false,
8046
- "type": "option"
8047
- },
8048
- "debug": {
8049
- "char": "d",
8050
- "description": "Activate debug mode (more logs)",
8051
- "name": "debug",
8052
- "allowNo": false,
8053
- "type": "boolean"
8054
- },
8055
- "package": {
8056
- "char": "p",
8057
- "description": "Package identifier that you want to use to generate a new package version",
8058
- "name": "package",
8059
- "default": "",
8060
- "hasDynamicHelp": false,
8061
- "multiple": false,
8062
- "type": "option"
8063
- },
8064
- "installkey": {
8065
- "char": "k",
8066
- "description": "Package installation key",
8067
- "name": "installkey",
8068
- "default": "",
8069
- "hasDynamicHelp": false,
8070
- "multiple": false,
8071
- "type": "option"
8072
- },
8073
- "deleteafter": {
8074
- "description": "Delete package version after creating it",
8075
- "name": "deleteafter",
8076
- "allowNo": false,
8077
- "type": "boolean"
8078
- },
8079
- "install": {
8080
- "char": "i",
8081
- "description": "Install package version on default org after generation",
8082
- "name": "install",
8083
- "allowNo": false,
8084
- "type": "boolean"
8085
- },
8086
- "websocket": {
8087
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
8088
- "name": "websocket",
8089
- "hasDynamicHelp": false,
8090
- "multiple": false,
8091
- "type": "option"
8092
- },
8093
- "skipauth": {
8094
- "description": "Skip authentication check when a default username is required",
8095
- "name": "skipauth",
8096
- "allowNo": false,
8097
- "type": "boolean"
8098
- },
8099
- "target-dev-hub": {
8100
- "aliases": [
8101
- "targetdevhubusername"
8102
- ],
8103
- "char": "v",
8104
- "deprecateAliases": true,
8105
- "name": "target-dev-hub",
8106
- "noCacheDefault": true,
8107
- "required": true,
8108
- "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
8109
- "hasDynamicHelp": true,
8110
- "multiple": false,
8111
- "type": "option"
8112
- }
8113
- },
8114
- "hasDynamicHelp": true,
8115
- "hiddenAliases": [],
8116
- "id": "hardis:package:version:create",
8117
- "pluginAlias": "sfdx-hardis",
8118
- "pluginName": "sfdx-hardis",
8119
- "pluginType": "core",
8120
- "strict": true,
8121
- "enableJsonFlag": true,
8122
- "title": "Create a new version of a package",
8123
- "requiresProject": true,
8124
- "isESM": true,
8125
- "relativePath": [
8126
- "lib",
8127
- "commands",
8128
- "hardis",
8129
- "package",
8130
- "version",
8131
- "create.js"
8132
- ],
8133
- "aliasPermutations": [],
8134
- "permutations": [
8135
- "hardis:package:version:create",
8136
- "package:hardis:version:create",
8137
- "package:version:hardis:create",
8138
- "package:version:create:hardis",
8139
- "hardis:version:package:create",
8140
- "version:hardis:package:create",
8141
- "version:package:hardis:create",
8142
- "version:package:create:hardis",
8143
- "hardis:version:create:package",
8144
- "version:hardis:create:package",
8145
- "version:create:hardis:package",
8146
- "version:create:package:hardis",
8147
- "hardis:package:create:version",
8148
- "package:hardis:create:version",
8149
- "package:create:hardis:version",
8150
- "package:create:version:hardis",
8151
- "hardis:create:package:version",
8152
- "create:hardis:package:version",
8153
- "create:package:hardis:version",
8154
- "create:package:version:hardis",
8155
- "hardis:create:version:package",
8156
- "create:hardis:version:package",
8157
- "create:version:hardis:package",
8158
- "create:version:package:hardis"
8159
- ]
8160
- },
8161
- "hardis:package:version:list": {
8162
- "aliases": [],
8163
- "args": {},
8164
- "description": "List versions of unlocked package",
8165
- "examples": [
8166
- "$ sf hardis:package:version:list"
8167
- ],
8168
- "flags": {
8169
- "json": {
8170
- "description": "Format output as json.",
8171
- "helpGroup": "GLOBAL",
8172
- "name": "json",
8173
- "allowNo": false,
8174
- "type": "boolean"
8175
- },
8176
- "flags-dir": {
8177
- "helpGroup": "GLOBAL",
8178
- "name": "flags-dir",
8179
- "summary": "Import flag values from a directory.",
8180
- "hasDynamicHelp": false,
8181
- "multiple": false,
8182
- "type": "option"
8183
- },
8184
- "debug": {
8185
- "char": "d",
8186
- "description": "Activate debug mode (more logs)",
8187
- "name": "debug",
8188
- "allowNo": false,
8189
- "type": "boolean"
8190
- },
8191
- "websocket": {
8192
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
8193
- "name": "websocket",
8194
- "hasDynamicHelp": false,
8195
- "multiple": false,
8196
- "type": "option"
8197
- },
8198
- "skipauth": {
8199
- "description": "Skip authentication check when a default username is required",
8200
- "name": "skipauth",
8201
- "allowNo": false,
8202
- "type": "boolean"
8203
- },
8204
- "target-dev-hub": {
8205
- "aliases": [
8206
- "targetdevhubusername"
8207
- ],
8208
- "char": "v",
8209
- "deprecateAliases": true,
8210
- "name": "target-dev-hub",
8211
- "noCacheDefault": true,
8212
- "required": true,
8213
- "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
8214
- "hasDynamicHelp": true,
8215
- "multiple": false,
8216
- "type": "option"
8217
- }
8218
- },
8219
- "hasDynamicHelp": true,
8220
- "hiddenAliases": [],
8221
- "id": "hardis:package:version:list",
8222
- "pluginAlias": "sfdx-hardis",
8223
- "pluginName": "sfdx-hardis",
8224
- "pluginType": "core",
8225
- "strict": true,
8226
- "enableJsonFlag": true,
8227
- "title": "Create a new version of a package",
8228
- "requiresProject": true,
8229
- "isESM": true,
8230
- "relativePath": [
8231
- "lib",
8232
- "commands",
8233
- "hardis",
8234
- "package",
8235
- "version",
8236
- "list.js"
8237
- ],
8238
- "aliasPermutations": [],
8239
- "permutations": [
8240
- "hardis:package:version:list",
8241
- "package:hardis:version:list",
8242
- "package:version:hardis:list",
8243
- "package:version:list:hardis",
8244
- "hardis:version:package:list",
8245
- "version:hardis:package:list",
8246
- "version:package:hardis:list",
8247
- "version:package:list:hardis",
8248
- "hardis:version:list:package",
8249
- "version:hardis:list:package",
8250
- "version:list:hardis:package",
8251
- "version:list:package:hardis",
8252
- "hardis:package:list:version",
8253
- "package:hardis:list:version",
8254
- "package:list:hardis:version",
8255
- "package:list:version:hardis",
8256
- "hardis:list:package:version",
8257
- "list:hardis:package:version",
8258
- "list:package:hardis:version",
8259
- "list:package:version:hardis",
8260
- "hardis:list:version:package",
8261
- "list:hardis:version:package",
8262
- "list:version:hardis:package",
8263
- "list:version:package:hardis"
8264
- ]
8265
- },
8266
- "hardis:package:version:promote": {
8267
- "aliases": [],
8268
- "args": {},
8269
- "description": "Promote package(s) version(s): convert it from beta to released",
8270
- "examples": [
8271
- "$ sf hardis:package:version:promote",
8272
- "$ sf hardis:package:version:promote --auto"
8273
- ],
8274
- "flags": {
8275
- "json": {
8276
- "description": "Format output as json.",
8277
- "helpGroup": "GLOBAL",
8278
- "name": "json",
8279
- "allowNo": false,
8280
- "type": "boolean"
8281
- },
8282
- "flags-dir": {
8283
- "helpGroup": "GLOBAL",
8284
- "name": "flags-dir",
8285
- "summary": "Import flag values from a directory.",
8286
- "hasDynamicHelp": false,
8287
- "multiple": false,
8288
- "type": "option"
8289
- },
8290
- "auto": {
8291
- "char": "f",
8292
- "description": "Auto-detect which versions of which packages need to be promoted",
8293
- "name": "auto",
8294
- "allowNo": false,
8295
- "type": "boolean"
8296
- },
8297
- "debug": {
8298
- "char": "d",
8299
- "description": "Activate debug mode (more logs)",
8300
- "name": "debug",
8301
- "allowNo": false,
8302
- "type": "boolean"
8303
- },
8304
- "websocket": {
8305
- "description": "Websocket host:port for VsCode SFDX Hardis UI integration",
8306
- "name": "websocket",
8307
- "hasDynamicHelp": false,
8308
- "multiple": false,
8309
- "type": "option"
8310
- },
8311
- "skipauth": {
8312
- "description": "Skip authentication check when a default username is required",
8313
- "name": "skipauth",
8314
- "allowNo": false,
8315
- "type": "boolean"
8316
- },
8317
- "target-dev-hub": {
8318
- "aliases": [
8319
- "targetdevhubusername"
8320
- ],
8321
- "char": "v",
8322
- "deprecateAliases": true,
8323
- "name": "target-dev-hub",
8324
- "noCacheDefault": true,
8325
- "required": true,
8326
- "summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
8327
- "hasDynamicHelp": true,
8328
- "multiple": false,
8329
- "type": "option"
8330
- }
8331
- },
8332
- "hasDynamicHelp": true,
8333
- "hiddenAliases": [],
8334
- "id": "hardis:package:version:promote",
8335
- "pluginAlias": "sfdx-hardis",
8336
- "pluginName": "sfdx-hardis",
8337
- "pluginType": "core",
8338
- "strict": true,
8339
- "enableJsonFlag": true,
8340
- "title": "Promote new versions of package(s)",
8341
- "requiresProject": true,
8342
- "isESM": true,
8343
- "relativePath": [
8344
- "lib",
8345
- "commands",
8346
- "hardis",
8347
- "package",
8348
- "version",
8349
- "promote.js"
8350
- ],
8351
- "aliasPermutations": [],
8352
- "permutations": [
8353
- "hardis:package:version:promote",
8354
- "package:hardis:version:promote",
8355
- "package:version:hardis:promote",
8356
- "package:version:promote:hardis",
8357
- "hardis:version:package:promote",
8358
- "version:hardis:package:promote",
8359
- "version:package:hardis:promote",
8360
- "version:package:promote:hardis",
8361
- "hardis:version:promote:package",
8362
- "version:hardis:promote:package",
8363
- "version:promote:hardis:package",
8364
- "version:promote:package:hardis",
8365
- "hardis:package:promote:version",
8366
- "package:hardis:promote:version",
8367
- "package:promote:hardis:version",
8368
- "package:promote:version:hardis",
8369
- "hardis:promote:package:version",
8370
- "promote:hardis:package:version",
8371
- "promote:package:hardis:version",
8372
- "promote:package:version:hardis",
8373
- "hardis:promote:version:package",
8374
- "promote:hardis:version:package",
8375
- "promote:version:hardis:package",
8376
- "promote:version:package:hardis"
8377
- ]
8378
- },
8379
8379
  "hardis:project:audit:apiversion": {
8380
8380
  "aliases": [],
8381
8381
  "args": {},
@@ -14201,5 +14201,5 @@
14201
14201
  ]
14202
14202
  }
14203
14203
  },
14204
- "version": "5.16.4-beta202501221328.0"
14204
+ "version": "5.16.4"
14205
14205
  }