Trying to convert an existing MDAPI project into an SFDX project.
MDAPI Project is in ~/Documents/Workspace/TheProject
and contains a src
directory
From the ~/SFDX Projects
directory in terminal I type:
sfdx force:project:create --projectname mytest
Output:
create mytest/sfdx-project.json create mytest/README.md create mytest/config/project-scratch-def.json
Look good so far
While in the MDAPI directory I type
sfdx force:mdapi:convert -r src -d ~/Documents/SFDC\ Projects/mytest
And bam, fail with
ERROR: This directory does not contain a valid Salesforce DX project.
▸ This directory does not contain a valid Salesforce DX project.
Not sure what is going on here as I am just starting to try and wrap my head around DX. I cannot get out of the gate it seems.
Anyone have some ideas or troubleshooting tips?
The contents of mytest directory are:
README.md
config
force-app
sfdx-project.json
and the project json is
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "41.0"
}
in case it matters