I want to know how to retrieve a deployed package given the id in a zip format with all the deployed components and its package.xml :
I can access the list of components that have been deployed using metadata api via workbench by executing following rest API request :
/services/data/v53.0/metadata/deployRequest/<id of deployment>?includeDetails=true
Which will give me a list like this one :
Where each item represent a component been uploaded. But it only show me the name of the component, and not the file itself, nor the package.xml for all the components.
sfdx force:source:deploy
this is not really a package, it is unpackaged metadata. Here thepackage.xml
is simply an instruction as to what to deploy at the time the deployment is performed. To see the content you will need to retrieve the metadata again, but there is no way to retrieve thepackage.xml
itself as such since that isn't a metadata item, just the deployment content "mask".