-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
salesforce-alm package is deprecated #2787
Comments
Hello @svishalkumar06 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
{ |
Hello @svishalkumar06 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
Hi, We have not upgraded our node project to the ESM Module, we are using the Common JS Module for now for that reason we are using salesforce cli version 2.17.14. We are using V2 commands and cli So please suggest us how can we use salesforce-alm libraries in V2 Salesforce cli. |
Hey, for the first two you should use the SDR library: and sfdx-core for the last one: note that salesforce-alm was used by commands back then and there might not be 1-1 equivalients in SDR/sfdx-core |
@cristiand391 Can you suggest If we continue to use salesforce-alm libraries in our project as there is no 1-1 equivalents replacement Is there will be an issue in the future? |
@svishalkumar06 I would suggest moving to SDR and sfdx-core.
yeah, outdated dependencies might start to notice in the future (salesforce-alm was using SDR v7, we are at SDR v10 now), also could break in any node update if it was using a deprecated API. |
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 V2 version of salesforce cli those salesforce-alm and salesforcedx packages are deprecated. So what is the replacement for those functionalities ?
We were using following functionality from salesforce-alm package -
getting getMetadataTypeFromSourcePath from require('salesforce-alm/dist/lib/source/metadataTypeFactory')
getting metadataRegistry from require('salesforce-alm/dist/lib/source/metadataRegistry')
getting srcDevUtil from require('salesforce-alm/dist/lib/core/srcDevUtil')
How should we use these functionality in new salesforce cli package (@salesforce/cli) ?
The text was updated successfully, but these errors were encountered: