Does anyone know how to escape spaces in sdf on a ...
# sdf
j
Does anyone know how to escape spaces in sdf on a mac? When I try to execute the line:
Copy code
sdfcli project -p "/Users/dev/Documents/OneDrive - My Company/sdf/my_project"
I get the error:
Copy code
Invalid option "-".
If I try to escape all the spaces with a backslash, I get the error:
Copy code
Option "-p" expects only one value.
I'm trying to share sdf projects with co-workers so that any one of us can deploy work through our multiple environments.
c
don’t punish yourself trying to use the sdfcli via terminal. install the VS Code plugin and set up your environments in the .sdfcli.json file
BUT if you have to use the sdfcli just use
\
before the space to escape it
i highly recommend version controlling your project folders to a remote repository that everyone can use
l
I am a fan of the cli, I usually never use -p and only run the command the root of my project which has deploy.xml and manifest
1
to determine the env. I defined NS_SB1, NS_SB2, NS_PROD variables which defines url, account, email and role and do: sdfcli deploy $NS_SB1 having the issuetoken done it doesnt ask password. If you feel very confident, you can push the YES in there sdfcli deploy $NS_SB1 <<< YES
d
how can you cache multiple tokens for different sandboxes?
j
FYI, I solved it by creating a symlink folder. It works perfectly.
s
I'd say a symlink to work around the issue doesn't work perfectly by definition 🙂 I think the mac prompt is a bash-like shell by default? - so for future reference try surrounding your string in single quotes
'
rather than double quotes
c
The default MacOS shell is bash (zsh and ksh are also options)
s
interesting. I'd figure apple would have some sort of AppleShell or something
d
Mac os is just a layer on top of Debian. BTW, I think I've had to use single quotes in my powershell scripts for sdfcli too, I think it has to do with how the parameters are parsed and passed through maven