sfdx-hardis 6.0.4-beta202508131002.0 → 6.0.6-beta202508141313.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/lib/commands/hardis/cache/clear.js +2 -1
- package/lib/commands/hardis/cache/clear.js.map +1 -1
- package/lib/commands/hardis/config/get.js +1 -1
- package/lib/commands/hardis/config/get.js.map +1 -1
- package/lib/commands/hardis/doc/extract/permsetgroups.js +5 -5
- package/lib/commands/hardis/doc/extract/permsetgroups.js.map +1 -1
- package/lib/commands/hardis/doc/fieldusage.js +5 -5
- package/lib/commands/hardis/doc/fieldusage.js.map +1 -1
- package/lib/commands/hardis/doc/flow2markdown.js +2 -2
- package/lib/commands/hardis/doc/flow2markdown.js.map +1 -1
- package/lib/commands/hardis/doc/mkdocs-to-cf.js +19 -19
- package/lib/commands/hardis/doc/mkdocs-to-cf.js.map +1 -1
- package/lib/commands/hardis/doc/mkdocs-to-salesforce.js +12 -12
- package/lib/commands/hardis/doc/mkdocs-to-salesforce.js.map +1 -1
- package/lib/commands/hardis/doc/override-prompts.js +14 -14
- package/lib/commands/hardis/doc/override-prompts.js.map +1 -1
- package/lib/commands/hardis/doc/plugin/generate.js +4 -4
- package/lib/commands/hardis/doc/plugin/generate.js.map +1 -1
- package/lib/commands/hardis/doc/project2markdown.js +40 -40
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/git/pull-requests/extract.js +1 -1
- package/lib/commands/hardis/git/pull-requests/extract.js.map +1 -1
- package/lib/commands/hardis/lint/access.js +7 -7
- package/lib/commands/hardis/lint/access.js.map +1 -1
- package/lib/commands/hardis/lint/metadatastatus.js +1 -1
- package/lib/commands/hardis/lint/metadatastatus.js.map +1 -1
- package/lib/commands/hardis/lint/missingattributes.js +1 -1
- package/lib/commands/hardis/lint/missingattributes.js.map +1 -1
- package/lib/commands/hardis/lint/unusedmetadatas.js +13 -13
- package/lib/commands/hardis/lint/unusedmetadatas.js.map +1 -1
- package/lib/commands/hardis/mdapi/deploy.js +3 -3
- package/lib/commands/hardis/mdapi/deploy.js.map +1 -1
- package/lib/commands/hardis/misc/custom-label-translations.js +18 -18
- package/lib/commands/hardis/misc/custom-label-translations.js.map +1 -1
- package/lib/commands/hardis/misc/purge-references.js +2 -2
- package/lib/commands/hardis/misc/purge-references.js.map +1 -1
- package/lib/commands/hardis/misc/servicenow-report.js +8 -8
- package/lib/commands/hardis/misc/servicenow-report.js.map +1 -1
- package/lib/commands/hardis/misc/toml2csv.js +16 -16
- package/lib/commands/hardis/misc/toml2csv.js.map +1 -1
- package/lib/commands/hardis/org/community/update.js +5 -5
- package/lib/commands/hardis/org/community/update.js.map +1 -1
- package/lib/commands/hardis/org/configure/data.js +5 -5
- package/lib/commands/hardis/org/configure/data.js.map +1 -1
- package/lib/commands/hardis/org/configure/files.js +1 -1
- package/lib/commands/hardis/org/configure/files.js.map +1 -1
- package/lib/commands/hardis/org/configure/monitoring.js +11 -11
- package/lib/commands/hardis/org/configure/monitoring.js.map +1 -1
- package/lib/commands/hardis/org/create.js +7 -7
- package/lib/commands/hardis/org/create.js.map +1 -1
- package/lib/commands/hardis/org/data/delete.js +1 -1
- package/lib/commands/hardis/org/data/delete.js.map +1 -1
- package/lib/commands/hardis/org/data/export.js +1 -1
- package/lib/commands/hardis/org/data/export.js.map +1 -1
- package/lib/commands/hardis/org/data/import.js +1 -1
- package/lib/commands/hardis/org/data/import.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/audittrail.js +14 -14
- package/lib/commands/hardis/org/diagnose/audittrail.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/instanceupgrade.js +3 -3
- package/lib/commands/hardis/org/diagnose/instanceupgrade.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/legacyapi.js +17 -17
- package/lib/commands/hardis/org/diagnose/legacyapi.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/licenses.js +2 -2
- package/lib/commands/hardis/org/diagnose/licenses.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/releaseupdates.js +3 -3
- package/lib/commands/hardis/org/diagnose/releaseupdates.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/unused-apex-classes.js +7 -7
- package/lib/commands/hardis/org/diagnose/unused-apex-classes.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/unused-connected-apps.js +7 -7
- package/lib/commands/hardis/org/diagnose/unused-connected-apps.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/unusedlicenses.js +10 -10
- package/lib/commands/hardis/org/diagnose/unusedlicenses.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/unusedusers.js +3 -3
- package/lib/commands/hardis/org/diagnose/unusedusers.js.map +1 -1
- package/lib/commands/hardis/org/files/export.js +1 -1
- package/lib/commands/hardis/org/files/export.js.map +1 -1
- package/lib/commands/hardis/org/files/import.js +1 -1
- package/lib/commands/hardis/org/files/import.js.map +1 -1
- package/lib/commands/hardis/org/fix/listviewmine.js +1 -1
- package/lib/commands/hardis/org/fix/listviewmine.js.map +1 -1
- package/lib/commands/hardis/org/generate/packagexmlfull.js +3 -3
- package/lib/commands/hardis/org/generate/packagexmlfull.js.map +1 -1
- package/lib/commands/hardis/org/monitor/all.js +10 -10
- package/lib/commands/hardis/org/monitor/all.js.map +1 -1
- package/lib/commands/hardis/org/monitor/backup.js +22 -22
- package/lib/commands/hardis/org/monitor/backup.js.map +1 -1
- package/lib/commands/hardis/org/monitor/limits.js +4 -4
- package/lib/commands/hardis/org/monitor/limits.js.map +1 -1
- package/lib/commands/hardis/org/multi-org-query.js +8 -8
- package/lib/commands/hardis/org/multi-org-query.js.map +1 -1
- package/lib/commands/hardis/org/purge/apexlog.js +2 -2
- package/lib/commands/hardis/org/purge/apexlog.js.map +1 -1
- package/lib/commands/hardis/org/purge/flow.js +14 -14
- package/lib/commands/hardis/org/purge/flow.js.map +1 -1
- package/lib/commands/hardis/org/retrieve/packageconfig.js +3 -3
- package/lib/commands/hardis/org/retrieve/packageconfig.js.map +1 -1
- package/lib/commands/hardis/org/retrieve/sources/analytics.js +3 -3
- package/lib/commands/hardis/org/retrieve/sources/analytics.js.map +1 -1
- package/lib/commands/hardis/org/retrieve/sources/dx.js +11 -11
- package/lib/commands/hardis/org/retrieve/sources/dx.js.map +1 -1
- package/lib/commands/hardis/org/retrieve/sources/dx2.js +2 -2
- package/lib/commands/hardis/org/retrieve/sources/dx2.js.map +1 -1
- package/lib/commands/hardis/org/retrieve/sources/metadata.js +16 -16
- package/lib/commands/hardis/org/retrieve/sources/metadata.js.map +1 -1
- package/lib/commands/hardis/org/retrieve/sources/retrofit.js +11 -11
- package/lib/commands/hardis/org/retrieve/sources/retrofit.js.map +1 -1
- package/lib/commands/hardis/org/select.js +2 -2
- package/lib/commands/hardis/org/select.js.map +1 -1
- package/lib/commands/hardis/org/test/apex.js +8 -8
- package/lib/commands/hardis/org/test/apex.js.map +1 -1
- package/lib/commands/hardis/org/user/activateinvalid.js +7 -7
- package/lib/commands/hardis/org/user/activateinvalid.js.map +1 -1
- package/lib/commands/hardis/org/user/freeze.js +10 -10
- package/lib/commands/hardis/org/user/freeze.js.map +1 -1
- package/lib/commands/hardis/org/user/unfreeze.js +10 -10
- package/lib/commands/hardis/org/user/unfreeze.js.map +1 -1
- package/lib/commands/hardis/package/create.js +1 -1
- package/lib/commands/hardis/package/create.js.map +1 -1
- package/lib/commands/hardis/package/install.js +1 -1
- package/lib/commands/hardis/package/install.js.map +1 -1
- package/lib/commands/hardis/package/mergexml.js +1 -1
- package/lib/commands/hardis/package/mergexml.js.map +1 -1
- package/lib/commands/hardis/package/version/create.js +2 -2
- package/lib/commands/hardis/package/version/create.js.map +1 -1
- package/lib/commands/hardis/package/version/promote.js +3 -3
- package/lib/commands/hardis/package/version/promote.js.map +1 -1
- package/lib/commands/hardis/project/audit/apiversion.js +8 -8
- package/lib/commands/hardis/project/audit/apiversion.js.map +1 -1
- package/lib/commands/hardis/project/audit/callincallout.js +2 -2
- package/lib/commands/hardis/project/audit/callincallout.js.map +1 -1
- package/lib/commands/hardis/project/audit/duplicatefiles.js +4 -4
- package/lib/commands/hardis/project/audit/duplicatefiles.js.map +1 -1
- package/lib/commands/hardis/project/audit/remotesites.js +2 -2
- package/lib/commands/hardis/project/audit/remotesites.js.map +1 -1
- package/lib/commands/hardis/project/clean/emptyitems.js +3 -3
- package/lib/commands/hardis/project/clean/emptyitems.js.map +1 -1
- package/lib/commands/hardis/project/clean/filter-xml-content.js +14 -14
- package/lib/commands/hardis/project/clean/filter-xml-content.js.map +1 -1
- package/lib/commands/hardis/project/clean/flowpositions.js +3 -3
- package/lib/commands/hardis/project/clean/flowpositions.js.map +1 -1
- package/lib/commands/hardis/project/clean/hiddenitems.js +3 -3
- package/lib/commands/hardis/project/clean/hiddenitems.js.map +1 -1
- package/lib/commands/hardis/project/clean/listviews.js +3 -3
- package/lib/commands/hardis/project/clean/listviews.js.map +1 -1
- package/lib/commands/hardis/project/clean/manageditems.js +2 -2
- package/lib/commands/hardis/project/clean/manageditems.js.map +1 -1
- package/lib/commands/hardis/project/clean/minimizeprofiles.js +4 -4
- package/lib/commands/hardis/project/clean/minimizeprofiles.js.map +1 -1
- package/lib/commands/hardis/project/clean/orgmissingitems.js +5 -5
- package/lib/commands/hardis/project/clean/orgmissingitems.js.map +1 -1
- package/lib/commands/hardis/project/clean/references.js +8 -8
- package/lib/commands/hardis/project/clean/references.js.map +1 -1
- package/lib/commands/hardis/project/clean/retrievefolders.js +1 -1
- package/lib/commands/hardis/project/clean/retrievefolders.js.map +1 -1
- package/lib/commands/hardis/project/clean/sensitive-metadatas.js +3 -3
- package/lib/commands/hardis/project/clean/sensitive-metadatas.js.map +1 -1
- package/lib/commands/hardis/project/clean/standarditems.js +5 -5
- package/lib/commands/hardis/project/clean/standarditems.js.map +1 -1
- package/lib/commands/hardis/project/clean/systemdebug.js +2 -2
- package/lib/commands/hardis/project/clean/systemdebug.js.map +1 -1
- package/lib/commands/hardis/project/clean/xml.js +5 -5
- package/lib/commands/hardis/project/clean/xml.js.map +1 -1
- package/lib/commands/hardis/project/configure/auth.js +3 -3
- package/lib/commands/hardis/project/configure/auth.js.map +1 -1
- package/lib/commands/hardis/project/convert/profilestopermsets.js +2 -2
- package/lib/commands/hardis/project/convert/profilestopermsets.js.map +1 -1
- package/lib/commands/hardis/project/create.js +4 -4
- package/lib/commands/hardis/project/create.js.map +1 -1
- package/lib/commands/hardis/project/deploy/notify.js +4 -4
- package/lib/commands/hardis/project/deploy/notify.js.map +1 -1
- package/lib/commands/hardis/project/deploy/smart.js +25 -25
- package/lib/commands/hardis/project/deploy/smart.js.map +1 -1
- package/lib/commands/hardis/project/deploy/sources/metadata.js +7 -7
- package/lib/commands/hardis/project/deploy/sources/metadata.js.map +1 -1
- package/lib/commands/hardis/project/fix/profiletabs.js +2 -2
- package/lib/commands/hardis/project/fix/profiletabs.js.map +1 -1
- package/lib/commands/hardis/project/fix/v53flexipages.js +4 -4
- package/lib/commands/hardis/project/fix/v53flexipages.js.map +1 -1
- package/lib/commands/hardis/project/generate/bypass.js +20 -20
- package/lib/commands/hardis/project/generate/bypass.js.map +1 -1
- package/lib/commands/hardis/project/generate/flow-git-diff.js +2 -2
- package/lib/commands/hardis/project/generate/flow-git-diff.js.map +1 -1
- package/lib/commands/hardis/project/generate/gitdelta.js +3 -3
- package/lib/commands/hardis/project/generate/gitdelta.js.map +1 -1
- package/lib/commands/hardis/project/lint.js +3 -3
- package/lib/commands/hardis/project/lint.js.map +1 -1
- package/lib/commands/hardis/project/metadata/findduplicates.js +7 -7
- package/lib/commands/hardis/project/metadata/findduplicates.js.map +1 -1
- package/lib/commands/hardis/scratch/create.js +14 -14
- package/lib/commands/hardis/scratch/create.js.map +1 -1
- package/lib/commands/hardis/scratch/delete.js +1 -1
- package/lib/commands/hardis/scratch/delete.js.map +1 -1
- package/lib/commands/hardis/scratch/pool/create.js +3 -3
- package/lib/commands/hardis/scratch/pool/create.js.map +1 -1
- package/lib/commands/hardis/scratch/pool/localauth.js +1 -1
- package/lib/commands/hardis/scratch/pool/localauth.js.map +1 -1
- package/lib/commands/hardis/scratch/pool/refresh.js +13 -13
- package/lib/commands/hardis/scratch/pool/refresh.js.map +1 -1
- package/lib/commands/hardis/scratch/pool/reset.js +4 -4
- package/lib/commands/hardis/scratch/pool/reset.js.map +1 -1
- package/lib/commands/hardis/scratch/pool/view.js +4 -4
- package/lib/commands/hardis/scratch/pool/view.js.map +1 -1
- package/lib/commands/hardis/scratch/pull.js +3 -2
- package/lib/commands/hardis/scratch/pull.js.map +1 -1
- package/lib/commands/hardis/source/deploy.js +3 -3
- package/lib/commands/hardis/source/deploy.js.map +1 -1
- package/lib/commands/hardis/source/push.js +3 -3
- package/lib/commands/hardis/source/push.js.map +1 -1
- package/lib/commands/hardis/source/retrieve.js +3 -3
- package/lib/commands/hardis/source/retrieve.js.map +1 -1
- package/lib/commands/hardis/work/new.js +16 -16
- package/lib/commands/hardis/work/new.js.map +1 -1
- package/lib/commands/hardis/work/refresh.js +12 -12
- package/lib/commands/hardis/work/refresh.js.map +1 -1
- package/lib/commands/hardis/work/resetselection.js +3 -3
- package/lib/commands/hardis/work/resetselection.js.map +1 -1
- package/lib/commands/hardis/work/save.js +35 -29
- package/lib/commands/hardis/work/save.js.map +1 -1
- package/lib/common/aiProvider/agentforceProvider.js +5 -5
- package/lib/common/aiProvider/agentforceProvider.js.map +1 -1
- package/lib/common/aiProvider/index.js +6 -6
- package/lib/common/aiProvider/index.js.map +1 -1
- package/lib/common/aiProvider/langchainProvider.js +7 -7
- package/lib/common/aiProvider/langchainProvider.js.map +1 -1
- package/lib/common/aiProvider/openaiProvider.js +5 -5
- package/lib/common/aiProvider/openaiProvider.js.map +1 -1
- package/lib/common/aiProvider/promptTemplates.js +4 -4
- package/lib/common/aiProvider/promptTemplates.js.map +1 -1
- package/lib/common/docBuilder/docBuilderPackageXml.js +3 -3
- package/lib/common/docBuilder/docBuilderPackageXml.js.map +1 -1
- package/lib/common/docBuilder/docBuilderRoles.js +2 -2
- package/lib/common/docBuilder/docBuilderRoles.js.map +1 -1
- package/lib/common/docBuilder/docBuilderRoot.js +4 -4
- package/lib/common/docBuilder/docBuilderRoot.js.map +1 -1
- package/lib/common/docBuilder/docUtils.js +7 -7
- package/lib/common/docBuilder/docUtils.js.map +1 -1
- package/lib/common/docBuilder/objectModelBuilder.js +1 -1
- package/lib/common/docBuilder/objectModelBuilder.js.map +1 -1
- package/lib/common/gitProvider/azureDevops.js +31 -31
- package/lib/common/gitProvider/azureDevops.js.map +1 -1
- package/lib/common/gitProvider/bitbucket.js +16 -16
- package/lib/common/gitProvider/bitbucket.js.map +1 -1
- package/lib/common/gitProvider/gitProviderRoot.js +10 -10
- package/lib/common/gitProvider/gitProviderRoot.js.map +1 -1
- package/lib/common/gitProvider/github.js +11 -11
- package/lib/common/gitProvider/github.js.map +1 -1
- package/lib/common/gitProvider/gitlab.js +6 -6
- package/lib/common/gitProvider/gitlab.js.map +1 -1
- package/lib/common/gitProvider/index.js +14 -14
- package/lib/common/gitProvider/index.js.map +1 -1
- package/lib/common/gitProvider/utilsMarkdown.js +2 -2
- package/lib/common/gitProvider/utilsMarkdown.js.map +1 -1
- package/lib/common/keyValueProviders/localtest.js +1 -1
- package/lib/common/keyValueProviders/localtest.js.map +1 -1
- package/lib/common/keyValueProviders/salesforce.js +4 -4
- package/lib/common/keyValueProviders/salesforce.js.map +1 -1
- package/lib/common/metadata-utils/index.js +18 -18
- package/lib/common/metadata-utils/index.js.map +1 -1
- package/lib/common/notifProvider/apiProvider.js +12 -12
- package/lib/common/notifProvider/apiProvider.js.map +1 -1
- package/lib/common/notifProvider/emailProvider.js +3 -3
- package/lib/common/notifProvider/emailProvider.js.map +1 -1
- package/lib/common/notifProvider/index.js +6 -6
- package/lib/common/notifProvider/index.js.map +1 -1
- package/lib/common/notifProvider/notifProviderRoot.js +1 -1
- package/lib/common/notifProvider/notifProviderRoot.js.map +1 -1
- package/lib/common/notifProvider/slackProvider.js +3 -3
- package/lib/common/notifProvider/slackProvider.js.map +1 -1
- package/lib/common/notifProvider/teamsProvider.js +2 -2
- package/lib/common/notifProvider/teamsProvider.js.map +1 -1
- package/lib/common/ticketProvider/azureBoardsProvider.js +8 -8
- package/lib/common/ticketProvider/azureBoardsProvider.js.map +1 -1
- package/lib/common/ticketProvider/index.js +1 -1
- package/lib/common/ticketProvider/index.js.map +1 -1
- package/lib/common/ticketProvider/jiraProvider.js +12 -12
- package/lib/common/ticketProvider/jiraProvider.js.map +1 -1
- package/lib/common/ticketProvider/ticketProviderRoot.js +2 -2
- package/lib/common/ticketProvider/ticketProviderRoot.js.map +1 -1
- package/lib/common/utils/apiUtils.js +37 -19
- package/lib/common/utils/apiUtils.js.map +1 -1
- package/lib/common/utils/authUtils.js +9 -9
- package/lib/common/utils/authUtils.js.map +1 -1
- package/lib/common/utils/classUtils.js +4 -4
- package/lib/common/utils/classUtils.js.map +1 -1
- package/lib/common/utils/dataUtils.js +8 -8
- package/lib/common/utils/dataUtils.js.map +1 -1
- package/lib/common/utils/deployTipJson.js +2 -2
- package/lib/common/utils/deployTipJson.js.map +1 -1
- package/lib/common/utils/deployTips.js +2 -2
- package/lib/common/utils/deployTips.js.map +1 -1
- package/lib/common/utils/deployUtils.js +89 -89
- package/lib/common/utils/deployUtils.js.map +1 -1
- package/lib/common/utils/emailUtils.js +3 -3
- package/lib/common/utils/emailUtils.js.map +1 -1
- package/lib/common/utils/filesUtils.d.ts +5 -1
- package/lib/common/utils/filesUtils.js +48 -48
- package/lib/common/utils/filesUtils.js.map +1 -1
- package/lib/common/utils/gitUtils.js +12 -12
- package/lib/common/utils/gitUtils.js.map +1 -1
- package/lib/common/utils/index.d.ts +2 -1
- package/lib/common/utils/index.js +60 -79
- package/lib/common/utils/index.js.map +1 -1
- package/lib/common/utils/markdownUtils.js +2 -2
- package/lib/common/utils/markdownUtils.js.map +1 -1
- package/lib/common/utils/mermaidUtils.js +19 -19
- package/lib/common/utils/mermaidUtils.js.map +1 -1
- package/lib/common/utils/orgConfigUtils.js +8 -8
- package/lib/common/utils/orgConfigUtils.js.map +1 -1
- package/lib/common/utils/orgUtils.js +21 -21
- package/lib/common/utils/orgUtils.js.map +1 -1
- package/lib/common/utils/poolUtils.js +13 -13
- package/lib/common/utils/poolUtils.js.map +1 -1
- package/lib/common/utils/profileUtils.js +1 -1
- package/lib/common/utils/profileUtils.js.map +1 -1
- package/lib/common/utils/projectUtils.js +9 -9
- package/lib/common/utils/projectUtils.js.map +1 -1
- package/lib/common/utils/prompts.js +62 -12
- package/lib/common/utils/prompts.js.map +1 -1
- package/lib/common/utils/workaroundUtils.js +2 -2
- package/lib/common/utils/workaroundUtils.js.map +1 -1
- package/lib/common/utils/wrapUtils.js +3 -3
- package/lib/common/utils/wrapUtils.js.map +1 -1
- package/lib/common/utils/xmlUtils.js +10 -10
- package/lib/common/utils/xmlUtils.js.map +1 -1
- package/lib/common/websocketClient.d.ts +1 -1
- package/lib/common/websocketClient.js +7 -6
- package/lib/common/websocketClient.js.map +1 -1
- package/lib/config/index.js +3 -3
- package/lib/config/index.js.map +1 -1
- package/lib/hooks/finally/notify.js +2 -2
- package/lib/hooks/finally/notify.js.map +1 -1
- package/lib/hooks/prerun/check-dependencies.js +7 -7
- package/lib/hooks/prerun/check-dependencies.js.map +1 -1
- package/oclif.manifest.json +607 -607
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -5751,243 +5751,6 @@
|
|
|
5751
5751
|
"import:files:org:hardis"
|
|
5752
5752
|
]
|
|
5753
5753
|
},
|
|
5754
|
-
"hardis:org:fix:listviewmine": {
|
|
5755
|
-
"aliases": [],
|
|
5756
|
-
"args": {},
|
|
5757
|
-
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](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",
|
|
5758
|
-
"examples": [
|
|
5759
|
-
"$ sf hardis:org:fix:listviewmine",
|
|
5760
|
-
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
5761
|
-
],
|
|
5762
|
-
"flags": {
|
|
5763
|
-
"json": {
|
|
5764
|
-
"description": "Format output as json.",
|
|
5765
|
-
"helpGroup": "GLOBAL",
|
|
5766
|
-
"name": "json",
|
|
5767
|
-
"allowNo": false,
|
|
5768
|
-
"type": "boolean"
|
|
5769
|
-
},
|
|
5770
|
-
"flags-dir": {
|
|
5771
|
-
"helpGroup": "GLOBAL",
|
|
5772
|
-
"name": "flags-dir",
|
|
5773
|
-
"summary": "Import flag values from a directory.",
|
|
5774
|
-
"hasDynamicHelp": false,
|
|
5775
|
-
"multiple": false,
|
|
5776
|
-
"type": "option"
|
|
5777
|
-
},
|
|
5778
|
-
"listviews": {
|
|
5779
|
-
"char": "l",
|
|
5780
|
-
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
5781
|
-
"name": "listviews",
|
|
5782
|
-
"hasDynamicHelp": false,
|
|
5783
|
-
"multiple": false,
|
|
5784
|
-
"type": "option"
|
|
5785
|
-
},
|
|
5786
|
-
"debug": {
|
|
5787
|
-
"char": "d",
|
|
5788
|
-
"description": "Activate debug mode (more logs)",
|
|
5789
|
-
"name": "debug",
|
|
5790
|
-
"allowNo": false,
|
|
5791
|
-
"type": "boolean"
|
|
5792
|
-
},
|
|
5793
|
-
"websocket": {
|
|
5794
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5795
|
-
"name": "websocket",
|
|
5796
|
-
"hasDynamicHelp": false,
|
|
5797
|
-
"multiple": false,
|
|
5798
|
-
"type": "option"
|
|
5799
|
-
},
|
|
5800
|
-
"skipauth": {
|
|
5801
|
-
"description": "Skip authentication check when a default username is required",
|
|
5802
|
-
"name": "skipauth",
|
|
5803
|
-
"allowNo": false,
|
|
5804
|
-
"type": "boolean"
|
|
5805
|
-
},
|
|
5806
|
-
"target-org": {
|
|
5807
|
-
"aliases": [
|
|
5808
|
-
"targetusername",
|
|
5809
|
-
"u"
|
|
5810
|
-
],
|
|
5811
|
-
"char": "o",
|
|
5812
|
-
"deprecateAliases": true,
|
|
5813
|
-
"name": "target-org",
|
|
5814
|
-
"noCacheDefault": true,
|
|
5815
|
-
"required": true,
|
|
5816
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5817
|
-
"hasDynamicHelp": true,
|
|
5818
|
-
"multiple": false,
|
|
5819
|
-
"type": "option"
|
|
5820
|
-
}
|
|
5821
|
-
},
|
|
5822
|
-
"hasDynamicHelp": true,
|
|
5823
|
-
"hiddenAliases": [],
|
|
5824
|
-
"id": "hardis:org:fix:listviewmine",
|
|
5825
|
-
"pluginAlias": "sfdx-hardis",
|
|
5826
|
-
"pluginName": "sfdx-hardis",
|
|
5827
|
-
"pluginType": "core",
|
|
5828
|
-
"strict": true,
|
|
5829
|
-
"enableJsonFlag": true,
|
|
5830
|
-
"title": "Fix listviews with ",
|
|
5831
|
-
"requiresProject": true,
|
|
5832
|
-
"isESM": true,
|
|
5833
|
-
"relativePath": [
|
|
5834
|
-
"lib",
|
|
5835
|
-
"commands",
|
|
5836
|
-
"hardis",
|
|
5837
|
-
"org",
|
|
5838
|
-
"fix",
|
|
5839
|
-
"listviewmine.js"
|
|
5840
|
-
],
|
|
5841
|
-
"aliasPermutations": [],
|
|
5842
|
-
"permutations": [
|
|
5843
|
-
"hardis:org:fix:listviewmine",
|
|
5844
|
-
"org:hardis:fix:listviewmine",
|
|
5845
|
-
"org:fix:hardis:listviewmine",
|
|
5846
|
-
"org:fix:listviewmine:hardis",
|
|
5847
|
-
"hardis:fix:org:listviewmine",
|
|
5848
|
-
"fix:hardis:org:listviewmine",
|
|
5849
|
-
"fix:org:hardis:listviewmine",
|
|
5850
|
-
"fix:org:listviewmine:hardis",
|
|
5851
|
-
"hardis:fix:listviewmine:org",
|
|
5852
|
-
"fix:hardis:listviewmine:org",
|
|
5853
|
-
"fix:listviewmine:hardis:org",
|
|
5854
|
-
"fix:listviewmine:org:hardis",
|
|
5855
|
-
"hardis:org:listviewmine:fix",
|
|
5856
|
-
"org:hardis:listviewmine:fix",
|
|
5857
|
-
"org:listviewmine:hardis:fix",
|
|
5858
|
-
"org:listviewmine:fix:hardis",
|
|
5859
|
-
"hardis:listviewmine:org:fix",
|
|
5860
|
-
"listviewmine:hardis:org:fix",
|
|
5861
|
-
"listviewmine:org:hardis:fix",
|
|
5862
|
-
"listviewmine:org:fix:hardis",
|
|
5863
|
-
"hardis:listviewmine:fix:org",
|
|
5864
|
-
"listviewmine:hardis:fix:org",
|
|
5865
|
-
"listviewmine:fix:hardis:org",
|
|
5866
|
-
"listviewmine:fix:org:hardis"
|
|
5867
|
-
]
|
|
5868
|
-
},
|
|
5869
|
-
"hardis:org:generate:packagexmlfull": {
|
|
5870
|
-
"aliases": [],
|
|
5871
|
-
"args": {},
|
|
5872
|
-
"description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n",
|
|
5873
|
-
"examples": [
|
|
5874
|
-
"$ sf hardis:org:generate:packagexmlfull",
|
|
5875
|
-
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
5876
|
-
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
5877
|
-
],
|
|
5878
|
-
"flags": {
|
|
5879
|
-
"json": {
|
|
5880
|
-
"description": "Format output as json.",
|
|
5881
|
-
"helpGroup": "GLOBAL",
|
|
5882
|
-
"name": "json",
|
|
5883
|
-
"allowNo": false,
|
|
5884
|
-
"type": "boolean"
|
|
5885
|
-
},
|
|
5886
|
-
"flags-dir": {
|
|
5887
|
-
"helpGroup": "GLOBAL",
|
|
5888
|
-
"name": "flags-dir",
|
|
5889
|
-
"summary": "Import flag values from a directory.",
|
|
5890
|
-
"hasDynamicHelp": false,
|
|
5891
|
-
"multiple": false,
|
|
5892
|
-
"type": "option"
|
|
5893
|
-
},
|
|
5894
|
-
"outputfile": {
|
|
5895
|
-
"description": "Output package.xml file",
|
|
5896
|
-
"name": "outputfile",
|
|
5897
|
-
"hasDynamicHelp": false,
|
|
5898
|
-
"multiple": false,
|
|
5899
|
-
"type": "option"
|
|
5900
|
-
},
|
|
5901
|
-
"debug": {
|
|
5902
|
-
"char": "d",
|
|
5903
|
-
"description": "Activate debug mode (more logs)",
|
|
5904
|
-
"name": "debug",
|
|
5905
|
-
"allowNo": false,
|
|
5906
|
-
"type": "boolean"
|
|
5907
|
-
},
|
|
5908
|
-
"no-prompt": {
|
|
5909
|
-
"char": "n",
|
|
5910
|
-
"description": "Do not prompt for org username, use the default one",
|
|
5911
|
-
"name": "no-prompt",
|
|
5912
|
-
"allowNo": false,
|
|
5913
|
-
"type": "boolean"
|
|
5914
|
-
},
|
|
5915
|
-
"websocket": {
|
|
5916
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
5917
|
-
"name": "websocket",
|
|
5918
|
-
"hasDynamicHelp": false,
|
|
5919
|
-
"multiple": false,
|
|
5920
|
-
"type": "option"
|
|
5921
|
-
},
|
|
5922
|
-
"skipauth": {
|
|
5923
|
-
"description": "Skip authentication check when a default username is required",
|
|
5924
|
-
"name": "skipauth",
|
|
5925
|
-
"allowNo": false,
|
|
5926
|
-
"type": "boolean"
|
|
5927
|
-
},
|
|
5928
|
-
"target-org": {
|
|
5929
|
-
"aliases": [
|
|
5930
|
-
"targetusername",
|
|
5931
|
-
"u"
|
|
5932
|
-
],
|
|
5933
|
-
"char": "o",
|
|
5934
|
-
"deprecateAliases": true,
|
|
5935
|
-
"name": "target-org",
|
|
5936
|
-
"noCacheDefault": true,
|
|
5937
|
-
"required": true,
|
|
5938
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
5939
|
-
"hasDynamicHelp": true,
|
|
5940
|
-
"multiple": false,
|
|
5941
|
-
"type": "option"
|
|
5942
|
-
}
|
|
5943
|
-
},
|
|
5944
|
-
"hasDynamicHelp": true,
|
|
5945
|
-
"hiddenAliases": [],
|
|
5946
|
-
"id": "hardis:org:generate:packagexmlfull",
|
|
5947
|
-
"pluginAlias": "sfdx-hardis",
|
|
5948
|
-
"pluginName": "sfdx-hardis",
|
|
5949
|
-
"pluginType": "core",
|
|
5950
|
-
"strict": true,
|
|
5951
|
-
"enableJsonFlag": true,
|
|
5952
|
-
"title": "Generate Full Org package.xml",
|
|
5953
|
-
"requiresProject": false,
|
|
5954
|
-
"isESM": true,
|
|
5955
|
-
"relativePath": [
|
|
5956
|
-
"lib",
|
|
5957
|
-
"commands",
|
|
5958
|
-
"hardis",
|
|
5959
|
-
"org",
|
|
5960
|
-
"generate",
|
|
5961
|
-
"packagexmlfull.js"
|
|
5962
|
-
],
|
|
5963
|
-
"aliasPermutations": [],
|
|
5964
|
-
"permutations": [
|
|
5965
|
-
"hardis:org:generate:packagexmlfull",
|
|
5966
|
-
"org:hardis:generate:packagexmlfull",
|
|
5967
|
-
"org:generate:hardis:packagexmlfull",
|
|
5968
|
-
"org:generate:packagexmlfull:hardis",
|
|
5969
|
-
"hardis:generate:org:packagexmlfull",
|
|
5970
|
-
"generate:hardis:org:packagexmlfull",
|
|
5971
|
-
"generate:org:hardis:packagexmlfull",
|
|
5972
|
-
"generate:org:packagexmlfull:hardis",
|
|
5973
|
-
"hardis:generate:packagexmlfull:org",
|
|
5974
|
-
"generate:hardis:packagexmlfull:org",
|
|
5975
|
-
"generate:packagexmlfull:hardis:org",
|
|
5976
|
-
"generate:packagexmlfull:org:hardis",
|
|
5977
|
-
"hardis:org:packagexmlfull:generate",
|
|
5978
|
-
"org:hardis:packagexmlfull:generate",
|
|
5979
|
-
"org:packagexmlfull:hardis:generate",
|
|
5980
|
-
"org:packagexmlfull:generate:hardis",
|
|
5981
|
-
"hardis:packagexmlfull:org:generate",
|
|
5982
|
-
"packagexmlfull:hardis:org:generate",
|
|
5983
|
-
"packagexmlfull:org:hardis:generate",
|
|
5984
|
-
"packagexmlfull:org:generate:hardis",
|
|
5985
|
-
"hardis:packagexmlfull:generate:org",
|
|
5986
|
-
"packagexmlfull:hardis:generate:org",
|
|
5987
|
-
"packagexmlfull:generate:hardis:org",
|
|
5988
|
-
"packagexmlfull:generate:org:hardis"
|
|
5989
|
-
]
|
|
5990
|
-
},
|
|
5991
5754
|
"hardis:org:diagnose:audittrail": {
|
|
5992
5755
|
"aliases": [],
|
|
5993
5756
|
"args": {},
|
|
@@ -7137,12 +6900,13 @@
|
|
|
7137
6900
|
"unusedusers:diagnose:org:hardis"
|
|
7138
6901
|
]
|
|
7139
6902
|
},
|
|
7140
|
-
"hardis:org:
|
|
6903
|
+
"hardis:org:fix:listviewmine": {
|
|
7141
6904
|
"aliases": [],
|
|
7142
6905
|
"args": {},
|
|
7143
|
-
"description": "
|
|
6906
|
+
"description": "Fix listviews whose scope Mine has been replaced by Everything\n\n[](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",
|
|
7144
6907
|
"examples": [
|
|
7145
|
-
"$ sf hardis:org:
|
|
6908
|
+
"$ sf hardis:org:fix:listviewmine",
|
|
6909
|
+
"$ sf hardis:org:fix:listviewmine --listviews Opportunity:MySubscriptions,Account:MyActivePartners"
|
|
7146
6910
|
],
|
|
7147
6911
|
"flags": {
|
|
7148
6912
|
"json": {
|
|
@@ -7160,6 +6924,14 @@
|
|
|
7160
6924
|
"multiple": false,
|
|
7161
6925
|
"type": "option"
|
|
7162
6926
|
},
|
|
6927
|
+
"listviews": {
|
|
6928
|
+
"char": "l",
|
|
6929
|
+
"description": "Comma-separated list of listviews following format Object:ListViewName\nExample: Contact:MyContacts,Contact:MyActiveContacts,Opportunity:MYClosedOpportunities",
|
|
6930
|
+
"name": "listviews",
|
|
6931
|
+
"hasDynamicHelp": false,
|
|
6932
|
+
"multiple": false,
|
|
6933
|
+
"type": "option"
|
|
6934
|
+
},
|
|
7163
6935
|
"debug": {
|
|
7164
6936
|
"char": "d",
|
|
7165
6937
|
"description": "Activate debug mode (more logs)",
|
|
@@ -7198,14 +6970,242 @@
|
|
|
7198
6970
|
},
|
|
7199
6971
|
"hasDynamicHelp": true,
|
|
7200
6972
|
"hiddenAliases": [],
|
|
7201
|
-
"id": "hardis:org:
|
|
6973
|
+
"id": "hardis:org:fix:listviewmine",
|
|
7202
6974
|
"pluginAlias": "sfdx-hardis",
|
|
7203
6975
|
"pluginName": "sfdx-hardis",
|
|
7204
6976
|
"pluginType": "core",
|
|
7205
6977
|
"strict": true,
|
|
7206
6978
|
"enableJsonFlag": true,
|
|
7207
|
-
"title": "
|
|
7208
|
-
"
|
|
6979
|
+
"title": "Fix listviews with ",
|
|
6980
|
+
"requiresProject": true,
|
|
6981
|
+
"isESM": true,
|
|
6982
|
+
"relativePath": [
|
|
6983
|
+
"lib",
|
|
6984
|
+
"commands",
|
|
6985
|
+
"hardis",
|
|
6986
|
+
"org",
|
|
6987
|
+
"fix",
|
|
6988
|
+
"listviewmine.js"
|
|
6989
|
+
],
|
|
6990
|
+
"aliasPermutations": [],
|
|
6991
|
+
"permutations": [
|
|
6992
|
+
"hardis:org:fix:listviewmine",
|
|
6993
|
+
"org:hardis:fix:listviewmine",
|
|
6994
|
+
"org:fix:hardis:listviewmine",
|
|
6995
|
+
"org:fix:listviewmine:hardis",
|
|
6996
|
+
"hardis:fix:org:listviewmine",
|
|
6997
|
+
"fix:hardis:org:listviewmine",
|
|
6998
|
+
"fix:org:hardis:listviewmine",
|
|
6999
|
+
"fix:org:listviewmine:hardis",
|
|
7000
|
+
"hardis:fix:listviewmine:org",
|
|
7001
|
+
"fix:hardis:listviewmine:org",
|
|
7002
|
+
"fix:listviewmine:hardis:org",
|
|
7003
|
+
"fix:listviewmine:org:hardis",
|
|
7004
|
+
"hardis:org:listviewmine:fix",
|
|
7005
|
+
"org:hardis:listviewmine:fix",
|
|
7006
|
+
"org:listviewmine:hardis:fix",
|
|
7007
|
+
"org:listviewmine:fix:hardis",
|
|
7008
|
+
"hardis:listviewmine:org:fix",
|
|
7009
|
+
"listviewmine:hardis:org:fix",
|
|
7010
|
+
"listviewmine:org:hardis:fix",
|
|
7011
|
+
"listviewmine:org:fix:hardis",
|
|
7012
|
+
"hardis:listviewmine:fix:org",
|
|
7013
|
+
"listviewmine:hardis:fix:org",
|
|
7014
|
+
"listviewmine:fix:hardis:org",
|
|
7015
|
+
"listviewmine:fix:org:hardis"
|
|
7016
|
+
]
|
|
7017
|
+
},
|
|
7018
|
+
"hardis:org:generate:packagexmlfull": {
|
|
7019
|
+
"aliases": [],
|
|
7020
|
+
"args": {},
|
|
7021
|
+
"description": "\n## Command Behavior\n\n**Generates a comprehensive `package.xml` file for a Salesforce org, including all metadata components, even managed ones.**\n\nThis command is essential for various Salesforce development and administration tasks, especially when you need a complete snapshot of an org's metadata. It goes beyond typical source tracking by including managed package components, which is crucial for understanding the full metadata footprint of an org.\n\nKey functionalities:\n\n- **Full Org Metadata Retrieval:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a complete list of all metadata types and their members.\n- **Managed Package Inclusion:** Unlike standard source retrieval, this command explicitly includes metadata from managed packages, providing a truly comprehensive `package.xml`.\n- **Customizable Output:** Allows you to specify the output file path for the generated `package.xml`.\n- **Interactive Org Selection:** If no target org is specified, it interactively prompts the user to choose an org. (or use --no-prompt to skip this step)\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **Salesforce Metadata API Interaction:** It leverages the Salesforce Metadata API to list all available metadata types and then retrieve all components for each type.\n- **`buildOrgManifest` Utility:** The core logic for querying the org's metadata and constructing the `package.xml` is encapsulated within the `buildOrgManifest` utility function.\n- **XML Generation:** It dynamically builds the XML structure of the `package.xml` file, including the `types` and `members` elements for all retrieved metadata.\n- **File System Operations:** It writes the generated `package.xml` file to the specified output path.\n- **Interactive Prompts:** Uses `promptOrgUsernameDefault` to guide the user in selecting the target Salesforce org.\n",
|
|
7022
|
+
"examples": [
|
|
7023
|
+
"$ sf hardis:org:generate:packagexmlfull",
|
|
7024
|
+
"$ sf hardis:org:generate:packagexmlfull --outputfile /tmp/packagexmlfull.xml",
|
|
7025
|
+
"$ sf hardis:org:generate:packagexmlfull --target-org nico@example.com"
|
|
7026
|
+
],
|
|
7027
|
+
"flags": {
|
|
7028
|
+
"json": {
|
|
7029
|
+
"description": "Format output as json.",
|
|
7030
|
+
"helpGroup": "GLOBAL",
|
|
7031
|
+
"name": "json",
|
|
7032
|
+
"allowNo": false,
|
|
7033
|
+
"type": "boolean"
|
|
7034
|
+
},
|
|
7035
|
+
"flags-dir": {
|
|
7036
|
+
"helpGroup": "GLOBAL",
|
|
7037
|
+
"name": "flags-dir",
|
|
7038
|
+
"summary": "Import flag values from a directory.",
|
|
7039
|
+
"hasDynamicHelp": false,
|
|
7040
|
+
"multiple": false,
|
|
7041
|
+
"type": "option"
|
|
7042
|
+
},
|
|
7043
|
+
"outputfile": {
|
|
7044
|
+
"description": "Output package.xml file",
|
|
7045
|
+
"name": "outputfile",
|
|
7046
|
+
"hasDynamicHelp": false,
|
|
7047
|
+
"multiple": false,
|
|
7048
|
+
"type": "option"
|
|
7049
|
+
},
|
|
7050
|
+
"debug": {
|
|
7051
|
+
"char": "d",
|
|
7052
|
+
"description": "Activate debug mode (more logs)",
|
|
7053
|
+
"name": "debug",
|
|
7054
|
+
"allowNo": false,
|
|
7055
|
+
"type": "boolean"
|
|
7056
|
+
},
|
|
7057
|
+
"no-prompt": {
|
|
7058
|
+
"char": "n",
|
|
7059
|
+
"description": "Do not prompt for org username, use the default one",
|
|
7060
|
+
"name": "no-prompt",
|
|
7061
|
+
"allowNo": false,
|
|
7062
|
+
"type": "boolean"
|
|
7063
|
+
},
|
|
7064
|
+
"websocket": {
|
|
7065
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7066
|
+
"name": "websocket",
|
|
7067
|
+
"hasDynamicHelp": false,
|
|
7068
|
+
"multiple": false,
|
|
7069
|
+
"type": "option"
|
|
7070
|
+
},
|
|
7071
|
+
"skipauth": {
|
|
7072
|
+
"description": "Skip authentication check when a default username is required",
|
|
7073
|
+
"name": "skipauth",
|
|
7074
|
+
"allowNo": false,
|
|
7075
|
+
"type": "boolean"
|
|
7076
|
+
},
|
|
7077
|
+
"target-org": {
|
|
7078
|
+
"aliases": [
|
|
7079
|
+
"targetusername",
|
|
7080
|
+
"u"
|
|
7081
|
+
],
|
|
7082
|
+
"char": "o",
|
|
7083
|
+
"deprecateAliases": true,
|
|
7084
|
+
"name": "target-org",
|
|
7085
|
+
"noCacheDefault": true,
|
|
7086
|
+
"required": true,
|
|
7087
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7088
|
+
"hasDynamicHelp": true,
|
|
7089
|
+
"multiple": false,
|
|
7090
|
+
"type": "option"
|
|
7091
|
+
}
|
|
7092
|
+
},
|
|
7093
|
+
"hasDynamicHelp": true,
|
|
7094
|
+
"hiddenAliases": [],
|
|
7095
|
+
"id": "hardis:org:generate:packagexmlfull",
|
|
7096
|
+
"pluginAlias": "sfdx-hardis",
|
|
7097
|
+
"pluginName": "sfdx-hardis",
|
|
7098
|
+
"pluginType": "core",
|
|
7099
|
+
"strict": true,
|
|
7100
|
+
"enableJsonFlag": true,
|
|
7101
|
+
"title": "Generate Full Org package.xml",
|
|
7102
|
+
"requiresProject": false,
|
|
7103
|
+
"isESM": true,
|
|
7104
|
+
"relativePath": [
|
|
7105
|
+
"lib",
|
|
7106
|
+
"commands",
|
|
7107
|
+
"hardis",
|
|
7108
|
+
"org",
|
|
7109
|
+
"generate",
|
|
7110
|
+
"packagexmlfull.js"
|
|
7111
|
+
],
|
|
7112
|
+
"aliasPermutations": [],
|
|
7113
|
+
"permutations": [
|
|
7114
|
+
"hardis:org:generate:packagexmlfull",
|
|
7115
|
+
"org:hardis:generate:packagexmlfull",
|
|
7116
|
+
"org:generate:hardis:packagexmlfull",
|
|
7117
|
+
"org:generate:packagexmlfull:hardis",
|
|
7118
|
+
"hardis:generate:org:packagexmlfull",
|
|
7119
|
+
"generate:hardis:org:packagexmlfull",
|
|
7120
|
+
"generate:org:hardis:packagexmlfull",
|
|
7121
|
+
"generate:org:packagexmlfull:hardis",
|
|
7122
|
+
"hardis:generate:packagexmlfull:org",
|
|
7123
|
+
"generate:hardis:packagexmlfull:org",
|
|
7124
|
+
"generate:packagexmlfull:hardis:org",
|
|
7125
|
+
"generate:packagexmlfull:org:hardis",
|
|
7126
|
+
"hardis:org:packagexmlfull:generate",
|
|
7127
|
+
"org:hardis:packagexmlfull:generate",
|
|
7128
|
+
"org:packagexmlfull:hardis:generate",
|
|
7129
|
+
"org:packagexmlfull:generate:hardis",
|
|
7130
|
+
"hardis:packagexmlfull:org:generate",
|
|
7131
|
+
"packagexmlfull:hardis:org:generate",
|
|
7132
|
+
"packagexmlfull:org:hardis:generate",
|
|
7133
|
+
"packagexmlfull:org:generate:hardis",
|
|
7134
|
+
"hardis:packagexmlfull:generate:org",
|
|
7135
|
+
"packagexmlfull:hardis:generate:org",
|
|
7136
|
+
"packagexmlfull:generate:hardis:org",
|
|
7137
|
+
"packagexmlfull:generate:org:hardis"
|
|
7138
|
+
]
|
|
7139
|
+
},
|
|
7140
|
+
"hardis:org:monitor:all": {
|
|
7141
|
+
"aliases": [],
|
|
7142
|
+
"args": {},
|
|
7143
|
+
"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",
|
|
7144
|
+
"examples": [
|
|
7145
|
+
"$ sf hardis:org:monitor:all"
|
|
7146
|
+
],
|
|
7147
|
+
"flags": {
|
|
7148
|
+
"json": {
|
|
7149
|
+
"description": "Format output as json.",
|
|
7150
|
+
"helpGroup": "GLOBAL",
|
|
7151
|
+
"name": "json",
|
|
7152
|
+
"allowNo": false,
|
|
7153
|
+
"type": "boolean"
|
|
7154
|
+
},
|
|
7155
|
+
"flags-dir": {
|
|
7156
|
+
"helpGroup": "GLOBAL",
|
|
7157
|
+
"name": "flags-dir",
|
|
7158
|
+
"summary": "Import flag values from a directory.",
|
|
7159
|
+
"hasDynamicHelp": false,
|
|
7160
|
+
"multiple": false,
|
|
7161
|
+
"type": "option"
|
|
7162
|
+
},
|
|
7163
|
+
"debug": {
|
|
7164
|
+
"char": "d",
|
|
7165
|
+
"description": "Activate debug mode (more logs)",
|
|
7166
|
+
"name": "debug",
|
|
7167
|
+
"allowNo": false,
|
|
7168
|
+
"type": "boolean"
|
|
7169
|
+
},
|
|
7170
|
+
"websocket": {
|
|
7171
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7172
|
+
"name": "websocket",
|
|
7173
|
+
"hasDynamicHelp": false,
|
|
7174
|
+
"multiple": false,
|
|
7175
|
+
"type": "option"
|
|
7176
|
+
},
|
|
7177
|
+
"skipauth": {
|
|
7178
|
+
"description": "Skip authentication check when a default username is required",
|
|
7179
|
+
"name": "skipauth",
|
|
7180
|
+
"allowNo": false,
|
|
7181
|
+
"type": "boolean"
|
|
7182
|
+
},
|
|
7183
|
+
"target-org": {
|
|
7184
|
+
"aliases": [
|
|
7185
|
+
"targetusername",
|
|
7186
|
+
"u"
|
|
7187
|
+
],
|
|
7188
|
+
"char": "o",
|
|
7189
|
+
"deprecateAliases": true,
|
|
7190
|
+
"name": "target-org",
|
|
7191
|
+
"noCacheDefault": true,
|
|
7192
|
+
"required": true,
|
|
7193
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7194
|
+
"hasDynamicHelp": true,
|
|
7195
|
+
"multiple": false,
|
|
7196
|
+
"type": "option"
|
|
7197
|
+
}
|
|
7198
|
+
},
|
|
7199
|
+
"hasDynamicHelp": true,
|
|
7200
|
+
"hiddenAliases": [],
|
|
7201
|
+
"id": "hardis:org:monitor:all",
|
|
7202
|
+
"pluginAlias": "sfdx-hardis",
|
|
7203
|
+
"pluginName": "sfdx-hardis",
|
|
7204
|
+
"pluginType": "core",
|
|
7205
|
+
"strict": true,
|
|
7206
|
+
"enableJsonFlag": true,
|
|
7207
|
+
"title": "Monitor org",
|
|
7208
|
+
"monitoringCommandsDefault": [
|
|
7209
7209
|
{
|
|
7210
7210
|
"key": "AUDIT_TRAIL",
|
|
7211
7211
|
"title": "Detect suspect setup actions in major org",
|
|
@@ -7612,113 +7612,6 @@
|
|
|
7612
7612
|
"limits:monitor:org:hardis"
|
|
7613
7613
|
]
|
|
7614
7614
|
},
|
|
7615
|
-
"hardis:org:retrieve:packageconfig": {
|
|
7616
|
-
"aliases": [],
|
|
7617
|
-
"args": {},
|
|
7618
|
-
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n",
|
|
7619
|
-
"examples": [
|
|
7620
|
-
"$ sf hardis:org:retrieve:packageconfig",
|
|
7621
|
-
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
7622
|
-
],
|
|
7623
|
-
"flags": {
|
|
7624
|
-
"json": {
|
|
7625
|
-
"description": "Format output as json.",
|
|
7626
|
-
"helpGroup": "GLOBAL",
|
|
7627
|
-
"name": "json",
|
|
7628
|
-
"allowNo": false,
|
|
7629
|
-
"type": "boolean"
|
|
7630
|
-
},
|
|
7631
|
-
"flags-dir": {
|
|
7632
|
-
"helpGroup": "GLOBAL",
|
|
7633
|
-
"name": "flags-dir",
|
|
7634
|
-
"summary": "Import flag values from a directory.",
|
|
7635
|
-
"hasDynamicHelp": false,
|
|
7636
|
-
"multiple": false,
|
|
7637
|
-
"type": "option"
|
|
7638
|
-
},
|
|
7639
|
-
"debug": {
|
|
7640
|
-
"char": "d",
|
|
7641
|
-
"description": "Activate debug mode (more logs)",
|
|
7642
|
-
"name": "debug",
|
|
7643
|
-
"allowNo": false,
|
|
7644
|
-
"type": "boolean"
|
|
7645
|
-
},
|
|
7646
|
-
"websocket": {
|
|
7647
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7648
|
-
"name": "websocket",
|
|
7649
|
-
"hasDynamicHelp": false,
|
|
7650
|
-
"multiple": false,
|
|
7651
|
-
"type": "option"
|
|
7652
|
-
},
|
|
7653
|
-
"skipauth": {
|
|
7654
|
-
"description": "Skip authentication check when a default username is required",
|
|
7655
|
-
"name": "skipauth",
|
|
7656
|
-
"allowNo": false,
|
|
7657
|
-
"type": "boolean"
|
|
7658
|
-
},
|
|
7659
|
-
"target-org": {
|
|
7660
|
-
"aliases": [
|
|
7661
|
-
"targetusername",
|
|
7662
|
-
"u"
|
|
7663
|
-
],
|
|
7664
|
-
"char": "o",
|
|
7665
|
-
"deprecateAliases": true,
|
|
7666
|
-
"name": "target-org",
|
|
7667
|
-
"noCacheDefault": true,
|
|
7668
|
-
"required": true,
|
|
7669
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7670
|
-
"hasDynamicHelp": true,
|
|
7671
|
-
"multiple": false,
|
|
7672
|
-
"type": "option"
|
|
7673
|
-
}
|
|
7674
|
-
},
|
|
7675
|
-
"hasDynamicHelp": true,
|
|
7676
|
-
"hiddenAliases": [],
|
|
7677
|
-
"id": "hardis:org:retrieve:packageconfig",
|
|
7678
|
-
"pluginAlias": "sfdx-hardis",
|
|
7679
|
-
"pluginName": "sfdx-hardis",
|
|
7680
|
-
"pluginType": "core",
|
|
7681
|
-
"strict": true,
|
|
7682
|
-
"enableJsonFlag": true,
|
|
7683
|
-
"title": "Retrieve package configuration from an org",
|
|
7684
|
-
"requiresProject": false,
|
|
7685
|
-
"isESM": true,
|
|
7686
|
-
"relativePath": [
|
|
7687
|
-
"lib",
|
|
7688
|
-
"commands",
|
|
7689
|
-
"hardis",
|
|
7690
|
-
"org",
|
|
7691
|
-
"retrieve",
|
|
7692
|
-
"packageconfig.js"
|
|
7693
|
-
],
|
|
7694
|
-
"aliasPermutations": [],
|
|
7695
|
-
"permutations": [
|
|
7696
|
-
"hardis:org:retrieve:packageconfig",
|
|
7697
|
-
"org:hardis:retrieve:packageconfig",
|
|
7698
|
-
"org:retrieve:hardis:packageconfig",
|
|
7699
|
-
"org:retrieve:packageconfig:hardis",
|
|
7700
|
-
"hardis:retrieve:org:packageconfig",
|
|
7701
|
-
"retrieve:hardis:org:packageconfig",
|
|
7702
|
-
"retrieve:org:hardis:packageconfig",
|
|
7703
|
-
"retrieve:org:packageconfig:hardis",
|
|
7704
|
-
"hardis:retrieve:packageconfig:org",
|
|
7705
|
-
"retrieve:hardis:packageconfig:org",
|
|
7706
|
-
"retrieve:packageconfig:hardis:org",
|
|
7707
|
-
"retrieve:packageconfig:org:hardis",
|
|
7708
|
-
"hardis:org:packageconfig:retrieve",
|
|
7709
|
-
"org:hardis:packageconfig:retrieve",
|
|
7710
|
-
"org:packageconfig:hardis:retrieve",
|
|
7711
|
-
"org:packageconfig:retrieve:hardis",
|
|
7712
|
-
"hardis:packageconfig:org:retrieve",
|
|
7713
|
-
"packageconfig:hardis:org:retrieve",
|
|
7714
|
-
"packageconfig:org:hardis:retrieve",
|
|
7715
|
-
"packageconfig:org:retrieve:hardis",
|
|
7716
|
-
"hardis:packageconfig:retrieve:org",
|
|
7717
|
-
"packageconfig:hardis:retrieve:org",
|
|
7718
|
-
"packageconfig:retrieve:hardis:org",
|
|
7719
|
-
"packageconfig:retrieve:org:hardis"
|
|
7720
|
-
]
|
|
7721
|
-
},
|
|
7722
7615
|
"hardis:org:purge:apexlog": {
|
|
7723
7616
|
"aliases": [],
|
|
7724
7617
|
"args": {},
|
|
@@ -7987,6 +7880,113 @@
|
|
|
7987
7880
|
"flow:purge:org:hardis"
|
|
7988
7881
|
]
|
|
7989
7882
|
},
|
|
7883
|
+
"hardis:org:retrieve:packageconfig": {
|
|
7884
|
+
"aliases": [],
|
|
7885
|
+
"args": {},
|
|
7886
|
+
"description": "\n**Retrieves the installed package configuration from a Salesforce org and optionally updates the local project configuration.**\n\nThis command is useful for maintaining an accurate record of installed packages within your Salesforce project, which is crucial for managing dependencies and ensuring consistent deployments across environments.\n\nKey functionalities:\n\n- **Package Listing:** Connects to a specified Salesforce org (or prompts for one if not provided) and retrieves a list of all installed packages.\n- **Configuration Update:** Offers the option to update your local project's configuration with the retrieved list of installed packages. This can be beneficial for automating package installations during environment setup or CI/CD processes.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **Org Connection:** It establishes a connection to the target Salesforce org using the provided or prompted username.\n- **Metadata Retrieval:** It utilizes `MetadataUtils.listInstalledPackages` to query the Salesforce org and obtain details about the installed packages.\n- **Interactive Prompt:** It uses the `prompts` library to ask the user whether they want to update their local project configuration with the retrieved package list.\n- **Configuration Management:** If the user confirms, it calls `managePackageConfig` to update the project's configuration file (likely `.sfdx-hardis.yml`) with the new package information.\n- **User Feedback:** Provides clear messages to the user about the success of the package retrieval and configuration update.\n",
|
|
7887
|
+
"examples": [
|
|
7888
|
+
"$ sf hardis:org:retrieve:packageconfig",
|
|
7889
|
+
"sf hardis:org:retrieve:packageconfig -u myOrg"
|
|
7890
|
+
],
|
|
7891
|
+
"flags": {
|
|
7892
|
+
"json": {
|
|
7893
|
+
"description": "Format output as json.",
|
|
7894
|
+
"helpGroup": "GLOBAL",
|
|
7895
|
+
"name": "json",
|
|
7896
|
+
"allowNo": false,
|
|
7897
|
+
"type": "boolean"
|
|
7898
|
+
},
|
|
7899
|
+
"flags-dir": {
|
|
7900
|
+
"helpGroup": "GLOBAL",
|
|
7901
|
+
"name": "flags-dir",
|
|
7902
|
+
"summary": "Import flag values from a directory.",
|
|
7903
|
+
"hasDynamicHelp": false,
|
|
7904
|
+
"multiple": false,
|
|
7905
|
+
"type": "option"
|
|
7906
|
+
},
|
|
7907
|
+
"debug": {
|
|
7908
|
+
"char": "d",
|
|
7909
|
+
"description": "Activate debug mode (more logs)",
|
|
7910
|
+
"name": "debug",
|
|
7911
|
+
"allowNo": false,
|
|
7912
|
+
"type": "boolean"
|
|
7913
|
+
},
|
|
7914
|
+
"websocket": {
|
|
7915
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
7916
|
+
"name": "websocket",
|
|
7917
|
+
"hasDynamicHelp": false,
|
|
7918
|
+
"multiple": false,
|
|
7919
|
+
"type": "option"
|
|
7920
|
+
},
|
|
7921
|
+
"skipauth": {
|
|
7922
|
+
"description": "Skip authentication check when a default username is required",
|
|
7923
|
+
"name": "skipauth",
|
|
7924
|
+
"allowNo": false,
|
|
7925
|
+
"type": "boolean"
|
|
7926
|
+
},
|
|
7927
|
+
"target-org": {
|
|
7928
|
+
"aliases": [
|
|
7929
|
+
"targetusername",
|
|
7930
|
+
"u"
|
|
7931
|
+
],
|
|
7932
|
+
"char": "o",
|
|
7933
|
+
"deprecateAliases": true,
|
|
7934
|
+
"name": "target-org",
|
|
7935
|
+
"noCacheDefault": true,
|
|
7936
|
+
"required": true,
|
|
7937
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
7938
|
+
"hasDynamicHelp": true,
|
|
7939
|
+
"multiple": false,
|
|
7940
|
+
"type": "option"
|
|
7941
|
+
}
|
|
7942
|
+
},
|
|
7943
|
+
"hasDynamicHelp": true,
|
|
7944
|
+
"hiddenAliases": [],
|
|
7945
|
+
"id": "hardis:org:retrieve:packageconfig",
|
|
7946
|
+
"pluginAlias": "sfdx-hardis",
|
|
7947
|
+
"pluginName": "sfdx-hardis",
|
|
7948
|
+
"pluginType": "core",
|
|
7949
|
+
"strict": true,
|
|
7950
|
+
"enableJsonFlag": true,
|
|
7951
|
+
"title": "Retrieve package configuration from an org",
|
|
7952
|
+
"requiresProject": false,
|
|
7953
|
+
"isESM": true,
|
|
7954
|
+
"relativePath": [
|
|
7955
|
+
"lib",
|
|
7956
|
+
"commands",
|
|
7957
|
+
"hardis",
|
|
7958
|
+
"org",
|
|
7959
|
+
"retrieve",
|
|
7960
|
+
"packageconfig.js"
|
|
7961
|
+
],
|
|
7962
|
+
"aliasPermutations": [],
|
|
7963
|
+
"permutations": [
|
|
7964
|
+
"hardis:org:retrieve:packageconfig",
|
|
7965
|
+
"org:hardis:retrieve:packageconfig",
|
|
7966
|
+
"org:retrieve:hardis:packageconfig",
|
|
7967
|
+
"org:retrieve:packageconfig:hardis",
|
|
7968
|
+
"hardis:retrieve:org:packageconfig",
|
|
7969
|
+
"retrieve:hardis:org:packageconfig",
|
|
7970
|
+
"retrieve:org:hardis:packageconfig",
|
|
7971
|
+
"retrieve:org:packageconfig:hardis",
|
|
7972
|
+
"hardis:retrieve:packageconfig:org",
|
|
7973
|
+
"retrieve:hardis:packageconfig:org",
|
|
7974
|
+
"retrieve:packageconfig:hardis:org",
|
|
7975
|
+
"retrieve:packageconfig:org:hardis",
|
|
7976
|
+
"hardis:org:packageconfig:retrieve",
|
|
7977
|
+
"org:hardis:packageconfig:retrieve",
|
|
7978
|
+
"org:packageconfig:hardis:retrieve",
|
|
7979
|
+
"org:packageconfig:retrieve:hardis",
|
|
7980
|
+
"hardis:packageconfig:org:retrieve",
|
|
7981
|
+
"packageconfig:hardis:org:retrieve",
|
|
7982
|
+
"packageconfig:org:hardis:retrieve",
|
|
7983
|
+
"packageconfig:org:retrieve:hardis",
|
|
7984
|
+
"hardis:packageconfig:retrieve:org",
|
|
7985
|
+
"packageconfig:hardis:retrieve:org",
|
|
7986
|
+
"packageconfig:retrieve:hardis:org",
|
|
7987
|
+
"packageconfig:retrieve:org:hardis"
|
|
7988
|
+
]
|
|
7989
|
+
},
|
|
7990
7990
|
"hardis:org:test:apex": {
|
|
7991
7991
|
"aliases": [],
|
|
7992
7992
|
"args": {},
|
|
@@ -10948,262 +10948,47 @@
|
|
|
10948
10948
|
"hiddenAliases": [],
|
|
10949
10949
|
"id": "hardis:project:clean:xml",
|
|
10950
10950
|
"pluginAlias": "sfdx-hardis",
|
|
10951
|
-
"pluginName": "sfdx-hardis",
|
|
10952
|
-
"pluginType": "core",
|
|
10953
|
-
"strict": true,
|
|
10954
|
-
"enableJsonFlag": true,
|
|
10955
|
-
"title": "Clean retrieved empty items in dx sources",
|
|
10956
|
-
"requiresProject": true,
|
|
10957
|
-
"isESM": true,
|
|
10958
|
-
"relativePath": [
|
|
10959
|
-
"lib",
|
|
10960
|
-
"commands",
|
|
10961
|
-
"hardis",
|
|
10962
|
-
"project",
|
|
10963
|
-
"clean",
|
|
10964
|
-
"xml.js"
|
|
10965
|
-
],
|
|
10966
|
-
"aliasPermutations": [],
|
|
10967
|
-
"permutations": [
|
|
10968
|
-
"hardis:project:clean:xml",
|
|
10969
|
-
"project:hardis:clean:xml",
|
|
10970
|
-
"project:clean:hardis:xml",
|
|
10971
|
-
"project:clean:xml:hardis",
|
|
10972
|
-
"hardis:clean:project:xml",
|
|
10973
|
-
"clean:hardis:project:xml",
|
|
10974
|
-
"clean:project:hardis:xml",
|
|
10975
|
-
"clean:project:xml:hardis",
|
|
10976
|
-
"hardis:clean:xml:project",
|
|
10977
|
-
"clean:hardis:xml:project",
|
|
10978
|
-
"clean:xml:hardis:project",
|
|
10979
|
-
"clean:xml:project:hardis",
|
|
10980
|
-
"hardis:project:xml:clean",
|
|
10981
|
-
"project:hardis:xml:clean",
|
|
10982
|
-
"project:xml:hardis:clean",
|
|
10983
|
-
"project:xml:clean:hardis",
|
|
10984
|
-
"hardis:xml:project:clean",
|
|
10985
|
-
"xml:hardis:project:clean",
|
|
10986
|
-
"xml:project:hardis:clean",
|
|
10987
|
-
"xml:project:clean:hardis",
|
|
10988
|
-
"hardis:xml:clean:project",
|
|
10989
|
-
"xml:hardis:clean:project",
|
|
10990
|
-
"xml:clean:hardis:project",
|
|
10991
|
-
"xml:clean:project:hardis"
|
|
10992
|
-
]
|
|
10993
|
-
},
|
|
10994
|
-
"hardis:project:fix:profiletabs": {
|
|
10995
|
-
"aliases": [],
|
|
10996
|
-
"args": {},
|
|
10997
|
-
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n",
|
|
10998
|
-
"examples": [
|
|
10999
|
-
"$ sf hardis:project:fix:profiletabs"
|
|
11000
|
-
],
|
|
11001
|
-
"flags": {
|
|
11002
|
-
"json": {
|
|
11003
|
-
"description": "Format output as json.",
|
|
11004
|
-
"helpGroup": "GLOBAL",
|
|
11005
|
-
"name": "json",
|
|
11006
|
-
"allowNo": false,
|
|
11007
|
-
"type": "boolean"
|
|
11008
|
-
},
|
|
11009
|
-
"flags-dir": {
|
|
11010
|
-
"helpGroup": "GLOBAL",
|
|
11011
|
-
"name": "flags-dir",
|
|
11012
|
-
"summary": "Import flag values from a directory.",
|
|
11013
|
-
"hasDynamicHelp": false,
|
|
11014
|
-
"multiple": false,
|
|
11015
|
-
"type": "option"
|
|
11016
|
-
},
|
|
11017
|
-
"path": {
|
|
11018
|
-
"char": "p",
|
|
11019
|
-
"description": "Root folder",
|
|
11020
|
-
"name": "path",
|
|
11021
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11022
|
-
"hasDynamicHelp": false,
|
|
11023
|
-
"multiple": false,
|
|
11024
|
-
"type": "option"
|
|
11025
|
-
},
|
|
11026
|
-
"debug": {
|
|
11027
|
-
"char": "d",
|
|
11028
|
-
"description": "Activate debug mode (more logs)",
|
|
11029
|
-
"name": "debug",
|
|
11030
|
-
"allowNo": false,
|
|
11031
|
-
"type": "boolean"
|
|
11032
|
-
},
|
|
11033
|
-
"websocket": {
|
|
11034
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11035
|
-
"name": "websocket",
|
|
11036
|
-
"hasDynamicHelp": false,
|
|
11037
|
-
"multiple": false,
|
|
11038
|
-
"type": "option"
|
|
11039
|
-
},
|
|
11040
|
-
"skipauth": {
|
|
11041
|
-
"description": "Skip authentication check when a default username is required",
|
|
11042
|
-
"name": "skipauth",
|
|
11043
|
-
"allowNo": false,
|
|
11044
|
-
"type": "boolean"
|
|
11045
|
-
},
|
|
11046
|
-
"target-org": {
|
|
11047
|
-
"aliases": [
|
|
11048
|
-
"targetusername",
|
|
11049
|
-
"u"
|
|
11050
|
-
],
|
|
11051
|
-
"char": "o",
|
|
11052
|
-
"deprecateAliases": true,
|
|
11053
|
-
"name": "target-org",
|
|
11054
|
-
"noCacheDefault": true,
|
|
11055
|
-
"required": true,
|
|
11056
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
11057
|
-
"hasDynamicHelp": true,
|
|
11058
|
-
"multiple": false,
|
|
11059
|
-
"type": "option"
|
|
11060
|
-
}
|
|
11061
|
-
},
|
|
11062
|
-
"hasDynamicHelp": true,
|
|
11063
|
-
"hiddenAliases": [],
|
|
11064
|
-
"id": "hardis:project:fix:profiletabs",
|
|
11065
|
-
"pluginAlias": "sfdx-hardis",
|
|
11066
|
-
"pluginName": "sfdx-hardis",
|
|
11067
|
-
"pluginType": "core",
|
|
11068
|
-
"strict": true,
|
|
11069
|
-
"enableJsonFlag": true,
|
|
11070
|
-
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
11071
|
-
"requiresProject": true,
|
|
11072
|
-
"isESM": true,
|
|
11073
|
-
"relativePath": [
|
|
11074
|
-
"lib",
|
|
11075
|
-
"commands",
|
|
11076
|
-
"hardis",
|
|
11077
|
-
"project",
|
|
11078
|
-
"fix",
|
|
11079
|
-
"profiletabs.js"
|
|
11080
|
-
],
|
|
11081
|
-
"aliasPermutations": [],
|
|
11082
|
-
"permutations": [
|
|
11083
|
-
"hardis:project:fix:profiletabs",
|
|
11084
|
-
"project:hardis:fix:profiletabs",
|
|
11085
|
-
"project:fix:hardis:profiletabs",
|
|
11086
|
-
"project:fix:profiletabs:hardis",
|
|
11087
|
-
"hardis:fix:project:profiletabs",
|
|
11088
|
-
"fix:hardis:project:profiletabs",
|
|
11089
|
-
"fix:project:hardis:profiletabs",
|
|
11090
|
-
"fix:project:profiletabs:hardis",
|
|
11091
|
-
"hardis:fix:profiletabs:project",
|
|
11092
|
-
"fix:hardis:profiletabs:project",
|
|
11093
|
-
"fix:profiletabs:hardis:project",
|
|
11094
|
-
"fix:profiletabs:project:hardis",
|
|
11095
|
-
"hardis:project:profiletabs:fix",
|
|
11096
|
-
"project:hardis:profiletabs:fix",
|
|
11097
|
-
"project:profiletabs:hardis:fix",
|
|
11098
|
-
"project:profiletabs:fix:hardis",
|
|
11099
|
-
"hardis:profiletabs:project:fix",
|
|
11100
|
-
"profiletabs:hardis:project:fix",
|
|
11101
|
-
"profiletabs:project:hardis:fix",
|
|
11102
|
-
"profiletabs:project:fix:hardis",
|
|
11103
|
-
"hardis:profiletabs:fix:project",
|
|
11104
|
-
"profiletabs:hardis:fix:project",
|
|
11105
|
-
"profiletabs:fix:hardis:project",
|
|
11106
|
-
"profiletabs:fix:project:hardis"
|
|
11107
|
-
]
|
|
11108
|
-
},
|
|
11109
|
-
"hardis:project:fix:v53flexipages": {
|
|
11110
|
-
"aliases": [],
|
|
11111
|
-
"args": {},
|
|
11112
|
-
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n",
|
|
11113
|
-
"examples": [
|
|
11114
|
-
"$ sf hardis:project:fix:v53flexipages"
|
|
11115
|
-
],
|
|
11116
|
-
"flags": {
|
|
11117
|
-
"json": {
|
|
11118
|
-
"description": "Format output as json.",
|
|
11119
|
-
"helpGroup": "GLOBAL",
|
|
11120
|
-
"name": "json",
|
|
11121
|
-
"allowNo": false,
|
|
11122
|
-
"type": "boolean"
|
|
11123
|
-
},
|
|
11124
|
-
"flags-dir": {
|
|
11125
|
-
"helpGroup": "GLOBAL",
|
|
11126
|
-
"name": "flags-dir",
|
|
11127
|
-
"summary": "Import flag values from a directory.",
|
|
11128
|
-
"hasDynamicHelp": false,
|
|
11129
|
-
"multiple": false,
|
|
11130
|
-
"type": "option"
|
|
11131
|
-
},
|
|
11132
|
-
"path": {
|
|
11133
|
-
"char": "p",
|
|
11134
|
-
"description": "Root folder",
|
|
11135
|
-
"name": "path",
|
|
11136
|
-
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
11137
|
-
"hasDynamicHelp": false,
|
|
11138
|
-
"multiple": false,
|
|
11139
|
-
"type": "option"
|
|
11140
|
-
},
|
|
11141
|
-
"debug": {
|
|
11142
|
-
"char": "d",
|
|
11143
|
-
"description": "Activate debug mode (more logs)",
|
|
11144
|
-
"name": "debug",
|
|
11145
|
-
"allowNo": false,
|
|
11146
|
-
"type": "boolean"
|
|
11147
|
-
},
|
|
11148
|
-
"websocket": {
|
|
11149
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
11150
|
-
"name": "websocket",
|
|
11151
|
-
"hasDynamicHelp": false,
|
|
11152
|
-
"multiple": false,
|
|
11153
|
-
"type": "option"
|
|
11154
|
-
},
|
|
11155
|
-
"skipauth": {
|
|
11156
|
-
"description": "Skip authentication check when a default username is required",
|
|
11157
|
-
"name": "skipauth",
|
|
11158
|
-
"allowNo": false,
|
|
11159
|
-
"type": "boolean"
|
|
11160
|
-
}
|
|
11161
|
-
},
|
|
11162
|
-
"hasDynamicHelp": false,
|
|
11163
|
-
"hiddenAliases": [],
|
|
11164
|
-
"id": "hardis:project:fix:v53flexipages",
|
|
11165
|
-
"pluginAlias": "sfdx-hardis",
|
|
11166
|
-
"pluginName": "sfdx-hardis",
|
|
11167
|
-
"pluginType": "core",
|
|
11168
|
-
"strict": true,
|
|
11169
|
-
"enableJsonFlag": true,
|
|
11170
|
-
"title": "Fix flexipages for v53",
|
|
11171
|
-
"requiresProject": true,
|
|
11172
|
-
"isESM": true,
|
|
11173
|
-
"relativePath": [
|
|
11174
|
-
"lib",
|
|
11175
|
-
"commands",
|
|
11176
|
-
"hardis",
|
|
11177
|
-
"project",
|
|
11178
|
-
"fix",
|
|
11179
|
-
"v53flexipages.js"
|
|
11180
|
-
],
|
|
11181
|
-
"aliasPermutations": [],
|
|
11182
|
-
"permutations": [
|
|
11183
|
-
"hardis:project:fix:v53flexipages",
|
|
11184
|
-
"project:hardis:fix:v53flexipages",
|
|
11185
|
-
"project:fix:hardis:v53flexipages",
|
|
11186
|
-
"project:fix:v53flexipages:hardis",
|
|
11187
|
-
"hardis:fix:project:v53flexipages",
|
|
11188
|
-
"fix:hardis:project:v53flexipages",
|
|
11189
|
-
"fix:project:hardis:v53flexipages",
|
|
11190
|
-
"fix:project:v53flexipages:hardis",
|
|
11191
|
-
"hardis:fix:v53flexipages:project",
|
|
11192
|
-
"fix:hardis:v53flexipages:project",
|
|
11193
|
-
"fix:v53flexipages:hardis:project",
|
|
11194
|
-
"fix:v53flexipages:project:hardis",
|
|
11195
|
-
"hardis:project:v53flexipages:fix",
|
|
11196
|
-
"project:hardis:v53flexipages:fix",
|
|
11197
|
-
"project:v53flexipages:hardis:fix",
|
|
11198
|
-
"project:v53flexipages:fix:hardis",
|
|
11199
|
-
"hardis:v53flexipages:project:fix",
|
|
11200
|
-
"v53flexipages:hardis:project:fix",
|
|
11201
|
-
"v53flexipages:project:hardis:fix",
|
|
11202
|
-
"v53flexipages:project:fix:hardis",
|
|
11203
|
-
"hardis:v53flexipages:fix:project",
|
|
11204
|
-
"v53flexipages:hardis:fix:project",
|
|
11205
|
-
"v53flexipages:fix:hardis:project",
|
|
11206
|
-
"v53flexipages:fix:project:hardis"
|
|
10951
|
+
"pluginName": "sfdx-hardis",
|
|
10952
|
+
"pluginType": "core",
|
|
10953
|
+
"strict": true,
|
|
10954
|
+
"enableJsonFlag": true,
|
|
10955
|
+
"title": "Clean retrieved empty items in dx sources",
|
|
10956
|
+
"requiresProject": true,
|
|
10957
|
+
"isESM": true,
|
|
10958
|
+
"relativePath": [
|
|
10959
|
+
"lib",
|
|
10960
|
+
"commands",
|
|
10961
|
+
"hardis",
|
|
10962
|
+
"project",
|
|
10963
|
+
"clean",
|
|
10964
|
+
"xml.js"
|
|
10965
|
+
],
|
|
10966
|
+
"aliasPermutations": [],
|
|
10967
|
+
"permutations": [
|
|
10968
|
+
"hardis:project:clean:xml",
|
|
10969
|
+
"project:hardis:clean:xml",
|
|
10970
|
+
"project:clean:hardis:xml",
|
|
10971
|
+
"project:clean:xml:hardis",
|
|
10972
|
+
"hardis:clean:project:xml",
|
|
10973
|
+
"clean:hardis:project:xml",
|
|
10974
|
+
"clean:project:hardis:xml",
|
|
10975
|
+
"clean:project:xml:hardis",
|
|
10976
|
+
"hardis:clean:xml:project",
|
|
10977
|
+
"clean:hardis:xml:project",
|
|
10978
|
+
"clean:xml:hardis:project",
|
|
10979
|
+
"clean:xml:project:hardis",
|
|
10980
|
+
"hardis:project:xml:clean",
|
|
10981
|
+
"project:hardis:xml:clean",
|
|
10982
|
+
"project:xml:hardis:clean",
|
|
10983
|
+
"project:xml:clean:hardis",
|
|
10984
|
+
"hardis:xml:project:clean",
|
|
10985
|
+
"xml:hardis:project:clean",
|
|
10986
|
+
"xml:project:hardis:clean",
|
|
10987
|
+
"xml:project:clean:hardis",
|
|
10988
|
+
"hardis:xml:clean:project",
|
|
10989
|
+
"xml:hardis:clean:project",
|
|
10990
|
+
"xml:clean:hardis:project",
|
|
10991
|
+
"xml:clean:project:hardis"
|
|
11207
10992
|
]
|
|
11208
10993
|
},
|
|
11209
10994
|
"hardis:project:deploy:notify": {
|
|
@@ -12381,6 +12166,221 @@
|
|
|
12381
12166
|
"validate:deploy:project:hardis"
|
|
12382
12167
|
]
|
|
12383
12168
|
},
|
|
12169
|
+
"hardis:project:fix:profiletabs": {
|
|
12170
|
+
"aliases": [],
|
|
12171
|
+
"args": {},
|
|
12172
|
+
"description": "\n## Command Behavior\n\n**Interactively updates tab visibility settings in Salesforce profiles, addressing a common issue where tab visibilities are not correctly retrieved by `sf project retrieve start`.**\n\nThis command provides a user-friendly interface to manage tab settings within your profile XML files, ensuring that your local project accurately reflects the intended tab configurations in your Salesforce org.\n\nKey functionalities:\n\n- **Interactive Tab Selection:** Displays a multi-select menu of all available tabs in your org, allowing you to choose which tabs to update.\n- **Visibility Control:** Lets you set the visibility for the selected tabs to either `DefaultOn` (Visible) or `Hidden`.\n- **Profile Selection:** Presents a multi-select menu of all .profile-meta.xml files in your project, allowing you to apply the tab visibility changes to specific profiles.\n- **XML Updates:** Modifies the <tabVisibilities> section of the selected profile XML files to reflect the chosen tab settings. If a tab visibility setting already exists for a selected tab, it will be updated; otherwise, a new one will be added.\n- **Sorted Output:** The <tabVisibilities> in the updated profile XML files are sorted alphabetically for consistency and readability.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **SOQL Queries (Tooling API):** It queries the `TabDefinition` object using `soqlQueryTooling` to retrieve a list of all available tabs in the target org.\n- **File Discovery:** Uses `glob` to find all .profile-meta.xml files within the specified project path.\n- **Interactive Prompts:** Leverages the `prompts` library to create interactive menus for selecting tabs, visibility settings, and profiles.\n- **XML Parsing and Manipulation:** Uses `parseXmlFile` to read the content of profile XML files and `writeXmlFile` to write the modified content back. It manipulates the `tabVisibilities` array within the parsed XML to add or update tab settings.\n- **Array Sorting:** Employs the `sort-array` library to sort the `tabVisibilities` alphabetically by tab name.\n- **Logging:** Provides feedback to the user about which profiles have been updated and a summary of the changes.\n",
|
|
12173
|
+
"examples": [
|
|
12174
|
+
"$ sf hardis:project:fix:profiletabs"
|
|
12175
|
+
],
|
|
12176
|
+
"flags": {
|
|
12177
|
+
"json": {
|
|
12178
|
+
"description": "Format output as json.",
|
|
12179
|
+
"helpGroup": "GLOBAL",
|
|
12180
|
+
"name": "json",
|
|
12181
|
+
"allowNo": false,
|
|
12182
|
+
"type": "boolean"
|
|
12183
|
+
},
|
|
12184
|
+
"flags-dir": {
|
|
12185
|
+
"helpGroup": "GLOBAL",
|
|
12186
|
+
"name": "flags-dir",
|
|
12187
|
+
"summary": "Import flag values from a directory.",
|
|
12188
|
+
"hasDynamicHelp": false,
|
|
12189
|
+
"multiple": false,
|
|
12190
|
+
"type": "option"
|
|
12191
|
+
},
|
|
12192
|
+
"path": {
|
|
12193
|
+
"char": "p",
|
|
12194
|
+
"description": "Root folder",
|
|
12195
|
+
"name": "path",
|
|
12196
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12197
|
+
"hasDynamicHelp": false,
|
|
12198
|
+
"multiple": false,
|
|
12199
|
+
"type": "option"
|
|
12200
|
+
},
|
|
12201
|
+
"debug": {
|
|
12202
|
+
"char": "d",
|
|
12203
|
+
"description": "Activate debug mode (more logs)",
|
|
12204
|
+
"name": "debug",
|
|
12205
|
+
"allowNo": false,
|
|
12206
|
+
"type": "boolean"
|
|
12207
|
+
},
|
|
12208
|
+
"websocket": {
|
|
12209
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12210
|
+
"name": "websocket",
|
|
12211
|
+
"hasDynamicHelp": false,
|
|
12212
|
+
"multiple": false,
|
|
12213
|
+
"type": "option"
|
|
12214
|
+
},
|
|
12215
|
+
"skipauth": {
|
|
12216
|
+
"description": "Skip authentication check when a default username is required",
|
|
12217
|
+
"name": "skipauth",
|
|
12218
|
+
"allowNo": false,
|
|
12219
|
+
"type": "boolean"
|
|
12220
|
+
},
|
|
12221
|
+
"target-org": {
|
|
12222
|
+
"aliases": [
|
|
12223
|
+
"targetusername",
|
|
12224
|
+
"u"
|
|
12225
|
+
],
|
|
12226
|
+
"char": "o",
|
|
12227
|
+
"deprecateAliases": true,
|
|
12228
|
+
"name": "target-org",
|
|
12229
|
+
"noCacheDefault": true,
|
|
12230
|
+
"required": true,
|
|
12231
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
12232
|
+
"hasDynamicHelp": true,
|
|
12233
|
+
"multiple": false,
|
|
12234
|
+
"type": "option"
|
|
12235
|
+
}
|
|
12236
|
+
},
|
|
12237
|
+
"hasDynamicHelp": true,
|
|
12238
|
+
"hiddenAliases": [],
|
|
12239
|
+
"id": "hardis:project:fix:profiletabs",
|
|
12240
|
+
"pluginAlias": "sfdx-hardis",
|
|
12241
|
+
"pluginName": "sfdx-hardis",
|
|
12242
|
+
"pluginType": "core",
|
|
12243
|
+
"strict": true,
|
|
12244
|
+
"enableJsonFlag": true,
|
|
12245
|
+
"title": "Fix profiles to add tabs that are not retrieved by SF CLI",
|
|
12246
|
+
"requiresProject": true,
|
|
12247
|
+
"isESM": true,
|
|
12248
|
+
"relativePath": [
|
|
12249
|
+
"lib",
|
|
12250
|
+
"commands",
|
|
12251
|
+
"hardis",
|
|
12252
|
+
"project",
|
|
12253
|
+
"fix",
|
|
12254
|
+
"profiletabs.js"
|
|
12255
|
+
],
|
|
12256
|
+
"aliasPermutations": [],
|
|
12257
|
+
"permutations": [
|
|
12258
|
+
"hardis:project:fix:profiletabs",
|
|
12259
|
+
"project:hardis:fix:profiletabs",
|
|
12260
|
+
"project:fix:hardis:profiletabs",
|
|
12261
|
+
"project:fix:profiletabs:hardis",
|
|
12262
|
+
"hardis:fix:project:profiletabs",
|
|
12263
|
+
"fix:hardis:project:profiletabs",
|
|
12264
|
+
"fix:project:hardis:profiletabs",
|
|
12265
|
+
"fix:project:profiletabs:hardis",
|
|
12266
|
+
"hardis:fix:profiletabs:project",
|
|
12267
|
+
"fix:hardis:profiletabs:project",
|
|
12268
|
+
"fix:profiletabs:hardis:project",
|
|
12269
|
+
"fix:profiletabs:project:hardis",
|
|
12270
|
+
"hardis:project:profiletabs:fix",
|
|
12271
|
+
"project:hardis:profiletabs:fix",
|
|
12272
|
+
"project:profiletabs:hardis:fix",
|
|
12273
|
+
"project:profiletabs:fix:hardis",
|
|
12274
|
+
"hardis:profiletabs:project:fix",
|
|
12275
|
+
"profiletabs:hardis:project:fix",
|
|
12276
|
+
"profiletabs:project:hardis:fix",
|
|
12277
|
+
"profiletabs:project:fix:hardis",
|
|
12278
|
+
"hardis:profiletabs:fix:project",
|
|
12279
|
+
"profiletabs:hardis:fix:project",
|
|
12280
|
+
"profiletabs:fix:hardis:project",
|
|
12281
|
+
"profiletabs:fix:project:hardis"
|
|
12282
|
+
]
|
|
12283
|
+
},
|
|
12284
|
+
"hardis:project:fix:v53flexipages": {
|
|
12285
|
+
"aliases": [],
|
|
12286
|
+
"args": {},
|
|
12287
|
+
"description": "\n## Command Behavior\n\n**Fixes Salesforce FlexiPages for compatibility with API Version 53.0 (Winter '22 release) by adding missing identifiers to component instances.**\n\nSalesforce introduced a change in API Version 53.0 that requires `identifier` tags within `componentInstance` and `fieldInstance` elements in FlexiPage metadata. If these identifiers are missing, deployments to orgs with API version 53.0 or higher will fail. This command automates the process of adding these missing identifiers, ensuring your FlexiPages remain deployable.\n\nKey functionalities:\n\n- **Targeted FlexiPage Processing:** Scans all .flexipage-meta.xml files within the specified root folder (defaults to current working directory).\n- **Identifier Injection:** Inserts a unique `identifier` tag (e.g., `SFDX_HARDIS_REPLACEMENT_ID`) into `componentInstance` and `fieldInstance` elements that lack one.\n\n**Important Note:** After running this command, ensure you update your `apiVersion` to `53.0` (or higher) in your `package.xml` and `sfdx-project.json` files.\n\n## Technical explanations\n\nThe command's technical implementation involves:\n\n- **File Discovery:** Uses `glob` to find all .flexipage-meta.xml files.\n- **Content Reading:** Reads the XML content of each FlexiPage file.\n- **Regular Expression Replacement:** Employs a set of regular expressions to identify specific XML patterns (componentName.../componentName.../componentInstance, componentName.../componentName.../visibilityRule, fieldItem.../fieldItem.../fieldInstance) that are missing the `identifier` tag.\n- **Dynamic ID Generation:** For each match, it generates a unique identifier (e.g., `sfdxHardisIdX`) and injects it into the XML structure.\n- **File Writing:** If changes are made, the modified XML content is written back to the FlexiPage file using `fs.writeFile`.\n- **Logging:** Provides messages about which FlexiPages are being processed and a summary of the total number of identifiers added.\n",
|
|
12288
|
+
"examples": [
|
|
12289
|
+
"$ sf hardis:project:fix:v53flexipages"
|
|
12290
|
+
],
|
|
12291
|
+
"flags": {
|
|
12292
|
+
"json": {
|
|
12293
|
+
"description": "Format output as json.",
|
|
12294
|
+
"helpGroup": "GLOBAL",
|
|
12295
|
+
"name": "json",
|
|
12296
|
+
"allowNo": false,
|
|
12297
|
+
"type": "boolean"
|
|
12298
|
+
},
|
|
12299
|
+
"flags-dir": {
|
|
12300
|
+
"helpGroup": "GLOBAL",
|
|
12301
|
+
"name": "flags-dir",
|
|
12302
|
+
"summary": "Import flag values from a directory.",
|
|
12303
|
+
"hasDynamicHelp": false,
|
|
12304
|
+
"multiple": false,
|
|
12305
|
+
"type": "option"
|
|
12306
|
+
},
|
|
12307
|
+
"path": {
|
|
12308
|
+
"char": "p",
|
|
12309
|
+
"description": "Root folder",
|
|
12310
|
+
"name": "path",
|
|
12311
|
+
"default": "/home/runner/work/sfdx-hardis/sfdx-hardis",
|
|
12312
|
+
"hasDynamicHelp": false,
|
|
12313
|
+
"multiple": false,
|
|
12314
|
+
"type": "option"
|
|
12315
|
+
},
|
|
12316
|
+
"debug": {
|
|
12317
|
+
"char": "d",
|
|
12318
|
+
"description": "Activate debug mode (more logs)",
|
|
12319
|
+
"name": "debug",
|
|
12320
|
+
"allowNo": false,
|
|
12321
|
+
"type": "boolean"
|
|
12322
|
+
},
|
|
12323
|
+
"websocket": {
|
|
12324
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
12325
|
+
"name": "websocket",
|
|
12326
|
+
"hasDynamicHelp": false,
|
|
12327
|
+
"multiple": false,
|
|
12328
|
+
"type": "option"
|
|
12329
|
+
},
|
|
12330
|
+
"skipauth": {
|
|
12331
|
+
"description": "Skip authentication check when a default username is required",
|
|
12332
|
+
"name": "skipauth",
|
|
12333
|
+
"allowNo": false,
|
|
12334
|
+
"type": "boolean"
|
|
12335
|
+
}
|
|
12336
|
+
},
|
|
12337
|
+
"hasDynamicHelp": false,
|
|
12338
|
+
"hiddenAliases": [],
|
|
12339
|
+
"id": "hardis:project:fix:v53flexipages",
|
|
12340
|
+
"pluginAlias": "sfdx-hardis",
|
|
12341
|
+
"pluginName": "sfdx-hardis",
|
|
12342
|
+
"pluginType": "core",
|
|
12343
|
+
"strict": true,
|
|
12344
|
+
"enableJsonFlag": true,
|
|
12345
|
+
"title": "Fix flexipages for v53",
|
|
12346
|
+
"requiresProject": true,
|
|
12347
|
+
"isESM": true,
|
|
12348
|
+
"relativePath": [
|
|
12349
|
+
"lib",
|
|
12350
|
+
"commands",
|
|
12351
|
+
"hardis",
|
|
12352
|
+
"project",
|
|
12353
|
+
"fix",
|
|
12354
|
+
"v53flexipages.js"
|
|
12355
|
+
],
|
|
12356
|
+
"aliasPermutations": [],
|
|
12357
|
+
"permutations": [
|
|
12358
|
+
"hardis:project:fix:v53flexipages",
|
|
12359
|
+
"project:hardis:fix:v53flexipages",
|
|
12360
|
+
"project:fix:hardis:v53flexipages",
|
|
12361
|
+
"project:fix:v53flexipages:hardis",
|
|
12362
|
+
"hardis:fix:project:v53flexipages",
|
|
12363
|
+
"fix:hardis:project:v53flexipages",
|
|
12364
|
+
"fix:project:hardis:v53flexipages",
|
|
12365
|
+
"fix:project:v53flexipages:hardis",
|
|
12366
|
+
"hardis:fix:v53flexipages:project",
|
|
12367
|
+
"fix:hardis:v53flexipages:project",
|
|
12368
|
+
"fix:v53flexipages:hardis:project",
|
|
12369
|
+
"fix:v53flexipages:project:hardis",
|
|
12370
|
+
"hardis:project:v53flexipages:fix",
|
|
12371
|
+
"project:hardis:v53flexipages:fix",
|
|
12372
|
+
"project:v53flexipages:hardis:fix",
|
|
12373
|
+
"project:v53flexipages:fix:hardis",
|
|
12374
|
+
"hardis:v53flexipages:project:fix",
|
|
12375
|
+
"v53flexipages:hardis:project:fix",
|
|
12376
|
+
"v53flexipages:project:hardis:fix",
|
|
12377
|
+
"v53flexipages:project:fix:hardis",
|
|
12378
|
+
"hardis:v53flexipages:fix:project",
|
|
12379
|
+
"v53flexipages:hardis:fix:project",
|
|
12380
|
+
"v53flexipages:fix:hardis:project",
|
|
12381
|
+
"v53flexipages:fix:project:hardis"
|
|
12382
|
+
]
|
|
12383
|
+
},
|
|
12384
12384
|
"hardis:project:generate:bypass": {
|
|
12385
12385
|
"aliases": [],
|
|
12386
12386
|
"args": {},
|
|
@@ -14863,5 +14863,5 @@
|
|
|
14863
14863
|
]
|
|
14864
14864
|
}
|
|
14865
14865
|
},
|
|
14866
|
-
"version": "6.0.
|
|
14866
|
+
"version": "6.0.6-beta202508141313.0"
|
|
14867
14867
|
}
|