I'm planning to move from changeset Deployment approach to org development model which can provide more flexible and scalable environment for development. Also it can provide source tracking in version control system such as GitHub. When I download the metadata from my production org and zip the folder, I try to deploy the zip folder to a sandbox with command sfdx force:mdapi:deploy, however, many errors prop out.

Most errors are related to the objects in managed packages are not found and namespace in those packages cannot recognize. I have purchased and installed several managed packages and I've used some of the objects in those packages in my own trigger. So how could I include those managed packages in the metadata that I used to deploy to a sandbox to make the org development model success?

1 Answer 1


You need to specify dependencies, as demonstrated in the documentation.

You can use force:package:installed:list to get the ID values for dependencies that you need to specify. This is primarily intended for Unlocked Packages, which will eventually be your path forward.

You can also use Org-Dependent Packages, which will include dependencies in your org automatically.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .