I am just getting started with sfdx and trying to retrieve all the metadata present in my sandbox using the command sfdx force:mdapi:retrieve --retrievetargetdir force-app
. It runs fine and creates a zip file called unpacakged.zip
but no metadata in it.
How do I configure so that it retrieves all the metadata present in my sandbox(not scratch org)?
This is what my folder structure looks like:
.
├── config
│ └── project-scratch-def.json
├── force-app
│ ├── main
│ │ └── default
│ │ └── aura
│ ├── package.xml -> Created by retrieve command and it is plain
│ │ package.xml
│ └── unpackaged.zip -> Created by retrieve command but no metadata
│ in it.
├── README.md
└── sfdx-project.json