CumulusCI icon indicating copy to clipboard operation
CumulusCI copied to clipboard

Getting None__dev as SFDX Alias

Open Szandor72 opened this issue 2 years ago • 6 comments

Describe the bug

When creating a dev scratch Org, I get the alias None__dev.

I can only fix this by running

cci org scratch dev dev 

I don't really get why this fixes the issue. Can somebody help me to understand?

cci org scratch --help

does not offer any explanation.

@davidmreed suggested to open this as issue/bug

When creating feature or qa orgs, I get the expected alias.

Reproduction steps

  1. Unsure. Might be related to using a projectname with a '-` in it in cumulusci.yml

Your CumulusCI and Python versions

CumulusCI version: 3.73.0 Python version: 3.10.5

Operating System

Windows

Windows environment

PowerShell

CumulusCI installation method

pipx

Error Gist

No response

Additional information

No response

Szandor72 avatar Feb 20 '23 17:02 Szandor72

Yea, despite having a project:name all of my scratch orgs created via cci org info <org> are being created with an sfdx org alias of None__<org>

yippie avatar Apr 26 '23 19:04 yippie

After a little bit of testing, it seems to happen if my project name has - in it. mybestproject works just fine (makes org called myproject__dev). my-best-project however, makes an org called None__dev.

For sfdx, - is perfectly valid so my-best-project__dev should be allowed

yippie avatar Apr 27 '23 02:04 yippie

When you say project, do you refer to a) Folder Name b) CumulusCI Project name in cumulusci.yml c) sfdx-project.json

?

I tried using no - at all this time and still end up with None__dev

Szandor72 avatar Jul 04 '23 10:07 Szandor72

I am referring to the project name in the CumulusCI.yml file

yippie avatar Jul 04 '23 10:07 yippie

Thank you. I tried that and on my machine, I still end up with None__dev until I run cci org scratch dev dev.

Szandor72 avatar Jul 04 '23 11:07 Szandor72

It must be something else then because now my org name creation is working correctly (including the - in project names)

yippie avatar Jul 07 '23 14:07 yippie