salesforce-alm package is deprecated #2792
-
Hi, Previously we were using sfdx-cli V7 Now we have migrated to @salesforce/cli V2 version. So previously we were using a salesforce-alm and salesforcedx packages in sfdx-cli. But In the V2 version of salesforce cli those salesforce-alm and salesforcedx packages are deprecated. So what is the replacement for those functionalities? We were using the following functionality from the salesforce-alm package - getting getMetadataTypeFromSourcePath from require('salesforce-alm/dist/lib/source/metadataTypeFactory')
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's important to keep in mind that a CLI or CLI plugin has its input/output (command flags and return types) as an API. All the "helper" code inside that's not exported is not something you should created dependencies on. It's not a public API, even if node lets you see/use the code. We don't make any promises to maintain the shape of those functions or keep 1-1 equivalents around permanently. our list of plugins/libraries are here: https://github.com/salesforcecli/status For example, you'll find those apex test reporters here: https://github.com/forcedotcom/salesforcedx-apex/tree/main/src/reporters. Github search is your friend here. Looking in |
Beta Was this translation helpful? Give feedback.
It's important to keep in mind that a CLI or CLI plugin has its input/output (command flags and return types) as an API.
All the "helper" code inside that's not exported is not something you should created dependencies on. It's not a public API, even if node lets you see/use the code. We don't make any promises to maintain the shape of those functions or keep 1-1 equivalents around permanently.
our list of plugins/libraries are here: https://github.com/salesforcecli/status
For example, you'll find those apex test reporters here: https://github.com/forcedotcom/salesforcedx-apex/tree/main/src/reporters.
Github search is your friend here. Looking in
forcedotcom
andsalesforcecli
repos is you…