I am trying to deploy files to a non-source tracked org with the cli deploy command as follows:
sfdx force:source:deploy -u [ORG] -p "force-app/main/default/layouts/Snapshot__mdt-Snapshot Layout.layout-meta.xml" but am getting this error:
ERROR running force:source:deploy: The Layout named Snapshot__mdt-Snapshot Layout was not found in the workspace. I've tried -p ''"[path/to/file]"'' and -p "\"[path/to/file]\"" and neither worked.
The file definitely exists and I am able to use the beta diff command from VSCode on this file.
So how do we include files with spaces in the name in our -p arg?
"double quotes to be able to include space. Try prefixing./to the path like"./force-app/main/default/..."../deploycommand specifically, along with the -p argument and including files with spaces in the name as part of that argument. I have no problem with any other command nor deploy for files without spaces.