I'm a bit lost on how to transition from our managed package structure to Salesforce DX and Packaging 2.
We want to get our existing metadata into Salesforce DX structure to create our VCS repository and start creating scratch orgs as needed but have been unable to.
We've enabled the Dev Hub and Packaging 2 (beta) in our Business Org, we've created a Salesforce DX Project and we want to retrieve source from our existing managed package but when we issue the command sfdx force:mdapi:retrieve -s -r ./mdapipkg -u <username> -p <package name>
we get some errors.
If we use the business org username for <username>
with the packaging org package name, we get:
ERROR: The metadata retrieve operation failed: INVALID_CROSS_REFERENCE_KEY: No package named 'PACKAGE_NAME' found.
If we use the packaging org username for <username>
with the packaging org package name, we get:
ERROR: No org configuration found for name [email protected].
We would really appreciate if someone could guide or point us in the right direction for this transition.
sfdx force:source:push
I getERROR: Maximum size of request reached. Maximum size of request is 52428800 bytes
. I guess my package is too big to push it, is there something I can do here?