Replies: 9 comments
-
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
Beta Was this translation helpful? Give feedback.
-
This issue has been linked to a new work item: W-10346855 |
Beta Was this translation helpful? Give feedback.
-
Yes pease, this would be super helpful |
Beta Was this translation helpful? Give feedback.
-
This is a great idea! |
Beta Was this translation helpful? Give feedback.
-
We really need this! |
Beta Was this translation helpful? Give feedback.
-
Much needed for automating CICD process |
Beta Was this translation helpful? Give feedback.
-
much needed, awaiting this feature. |
Beta Was this translation helpful? Give feedback.
-
I'm curious about this. If you've got a CI, why not |
Beta Was this translation helpful? Give feedback.
-
Thanks, everyone, for your feedback on this idea. Unfortunately, we do not plan to deliver this feature as part of the Salesforce CLI. As @mshanemc pointed out, CI/CD pipelines that require post-install logic for unlocked packages should use As a product team, our focus is delivering functionality that enables outcomes for users that wouldn't otherwise be possible. In other words, we want to give you a flexible and reliable set of building blocks and empower you to compose complex solutions with them. If automatic execution of post-install logic with unlocked packages is still something you'd like, I'd suggest reaching out to the Packaging Team via the Unlocked Packages group in the Trailblazer Community. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently, we are only able to run post-install anonymous scripts for 2GP managed packages.
What are you trying to do
Execute anonymous scripts after the install of an unlocked package, so we can automate some action like record creation after the package is installed. We want the setup and record creation for an unlocked package to be fully automated from an SFDX command so that we can avoid missing manual steps after an unlocked package installation.
Describe the solution you'd like
Ability to specify one or multiple anonymous scripts in the sfdx-project.json file of an SFDX project that is an unlocked package, and the script(s) will execute after the unlocked package is installed into a Salesforce org.
Describe alternatives you've considered
SFDX plugin, internal wrapper CLI solution, manually executing scripts after package installation
Additional context
Add any other context or screenshots about the feature request here.
Beta Was this translation helpful? Give feedback.
All reactions