Change in force:project:create behaviour in V47
keirbowden opened this issue · 2 comments
Summary
I regularly use the following command to add SalesforceDX nature to an existing project:
sfdx force:org:create -n .
In V47 of the CLI plugins, this errors.
Steps To Reproduce:
- Install v46 of the plugin
- Create a new directory and
cd
into it - Execute
sfdx force:project:create
- Install v47 of the plugin
- Create another new directory and
cd
into it - Execute
sfdx force:project:create
Expected result
Project files should be written to the directory
Actual result
v46 project files are written:
target dir = /private/tmp/spim
create sfdx-project.json
create README.md
create .forceignore
create .gitignore
create config/project-scratch-def.json
create .vscode/settings.json
create .vscode/launch.json
create .vscode/extensions.json
create .prettierrc
create .prettierignore
create force-app/main/default/lwc/.eslintrc.json
V47 error:
ERROR running force:project:create: Name must contain only alphanumeric characters.
Additional information
Feel free to attach a screenshot.
SFDX CLI Version
sfdx-cli/7.30.13-9e204762d5 darwin-x64 node-v10.15.3
SFDX plugin Version
salesforcedx 47.3.7
├─ salesforcedx-templates 47.3.2
└─ salesforce-alm 47.6.0
sfdx-cli 7.30.13 (core)
OS and version:
MacOS 10.15 (catalina)
Thanks @keirbowden. I've reported this internally. Work number is W-6857085. I've noticed also that in latest CLI version that force:project:create
fails if the project name includes hyphens, too.
The fix was released as part of version 7.32.0
of the Salesforce CLI