Issue
How to extract custom object meta-data into my DX project since
sfdx force:source:status
does not recognise the imported custom object via mdapi?
The reason to do this is to decouple my DX project from sandbox
Details
- I have a very simple custom object with all default fields in sandbox.
- I retrieved this custom object metadata from sandbox by
sfdx force:mdapi:retrieve
- I imported the metadata into a fresh new scratch org by
sfdx force:mdapi:deploy
- I validate that the custom object with all its fields is visible in scratch org
- I run
sfdx force:source:status
, it doesn't notice this change in the corresponding scratch org
Expected result
sfdx force:source:status
should have shown the diff and I would be able to pull the changes down to the local project.