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
Rahul DattaRahul Datta 

How to deploy managed package to org for Security Review

Hi, I'm new to Salesforce development and have created a managed package that I have submitted to security review. As part of the review process they have asked me to create an org using environment hub and have my managed package installed in that hub so they can test it. 

When I tried to deploy my code via the sfdx commands I get an error saying it's not a development org so I can push my managed package to that org. Upon further review of the instructions for security review, they say I can install the managed package via a link, but as far as I can tell a link doesn't work since my application hasn't been approved. 

What's the correct org type to create for security review and how do I get my managed packaged installed in that org? 
Best Answer chosen by Rahul Datta
Rahul DattaRahul Datta
Thanks Vinay, after going through the links you provided what I realized was that I was stuck on how to deploy to a non-scratch/sandbox org. It turns out that the way to do this can be found in these instructions: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_any_org.htm

All Answers

VinayVinay (Salesforce Developers) 
Hi Rahul,

Check below references which has details on how to submit package for security review.

https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/security_review_submit_solution.htm
https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/security_review_overview.htm

Please mark as Best Answer if above information was helpful.

Thanks,
Rahul DattaRahul Datta
Thanks Vinay, after going through the links you provided what I realized was that I was stuck on how to deploy to a non-scratch/sandbox org. It turns out that the way to do this can be found in these instructions: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_any_org.htm
This was selected as the best answer