function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AlexMSAlexMS 

Is it possible to create a managed package with a post-install script using sfdx?

Might be a stupid question, but here goes :) So at the moment, we have a DevHub instance with a scratch org, and I can make packages quite happily with:

sfdx force:package:version:create --package "xxxxx" --definitionfile config/project-scratch-def.json --wait 10 -x

Is there a way to specify a post install script using this method?

Alternatively how do I go about taking my sfdx code and uploading it to our Developer Edition instance (and then I think I can use the Setup->Apps->Package Manager to create the package rather than using sfdx, which allows an Apex class to be specified for the PostInstall).
Raj VakatiRaj Vakati
I dnt think soo .. there are no options .. ( DX is