SalesforceFoundation / EDA

Education Data Architecture
BSD 3-Clause "New" or "Revised" License
224 stars 149 forks source link

CCI creates scratch org with SFDX alias in quotes #612

Closed dospromptman closed 6 years ago

dospromptman commented 6 years ago

It used to be that the scratch org name given to CCI would get passed along to sfdx to use as the alias when creating the scratch org. It was possible to use the alias with the project name prefixed to conveniently invoke sfdx against a scratch org.

However, the aliases are now created with quotes, such that the alias name is surrounded in literal quote characters. This requires escaping the quotes when trying to use sfdx with that alias.

This seems like a bug to me. Why is it wrapping it in quotes now? Why aren't the quotes getting removed from the argument when the sfdx command is invoked from cci?

cci org scratch dev itchy
cci org info itchy

This should work, but it does not:

sfdx force:org:display -u SAL__itchy

Instead, only this works:

sfdx force:org:display -u \"SAL__itchy\"

See attached screenshot.

cci_alias_quotes_bug
dospromptman commented 6 years ago

Whoops, posted this in the wrong repo...