Can't assign Connection to the project for Salesforce DX
I have just started to work with Salesforce DX into Illuminated Cloud 2. I faced with an issue when I can't select any connection where I create DX project. And as a result, I can't create a work version of the project.
Illuminated Cloud 2 ver. 2.0.5.6
IntelliJ IDEA 2018.3.5 (Community Edition) Build #IC-183.5912.21, built on February 26, 2019 JRE: 1.8.0_152-release-1343-b28 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.12.6
Comments (7)
-
repo owner -
repo owner - changed status to resolved
Resolving assuming that the provided link will help with creation of a scratch org for the SFDX project. If there are still issues, feel free to reopen with details about the nature of those issues.
-
reporter Yeah, I already tried to create scratch org. But I receive the error "No Dev Hub Found" (see image). In IDE I have a connection with my Developer Sandbox, where I enabled Dev Hub option. Could you please help with that? P.S.: Because I thought, that, first of all, I have to create DX project and then scratch org.
-
reporter - changed status to open
see comment
-
repo owner Ah, okay. Thanks for the update. In the current official build you have to auth into the dev hub via the CLI. Check out Log In to the Dev Hub here:
https://trailhead.salesforce.com/en/content/learn/modules/sfdx_app_dev/sfdx_app_dev_setup_dx
There is a pre-release/beta build posted here:
that allows you to do all of this from directly within IC. I will likely be including that in the official build within the next week or so.
Once you have auth'ed into the dev hub, you should be able to create a scratch org from that dev hub from within IC.
I'll leave this open until you're good to go.
-
reporter - changed status to resolved
Yes! It's resolved now. I have just received the expected result. The problem was into CLI. The default Dev Hub org was deleted somehow :)
Thanks a lot!
-
repo owner Glad to hear, and sorry for resolving it before you had a solid fix. Thanks for the update!
- Log in to comment
Hi, Mikalai. You need to create a scratch org for Salesforce DX development. You can see how this is done at ~3:35 in the following video:
https://www.youtube.com/watch?v=xbZzLbuLs0U
Please let me know if that doesn't get you going.