wadewegner / deploy-to-sfdx

An open-source and community-driven tool for one-click Salesforce DX deployments from public repositories to Scratch Orgs
https://deploy-to-sfdx.com
Apache License 2.0
98 stars 22 forks source link

Don't have password of scratch org created using "SFDC Deploy" #40

Open ankushsomani09 opened 6 years ago

ankushsomani09 commented 6 years ago

I clicked on "Deploy to SFDX" at "Salesforce einstein apex wrapper" git repo., this created the scratch org and given the link to login to scratch org. Now after one day i am trying to login to scratch org with given link, but can't. Trying to reset the password , then it ask "What is your pet's name?"

How to retrieve/login to those scratch org which are created using Deploy TO SFDX functionality using this repo. In Dev hub org, scratch org are still active.

I tried to do it via CLI, but in CLI scratch org created using this git repo are not listing.

Please help!

FabienTaillon commented 6 years ago

Not sure you can do it now. Why not just recreate a new Scratch Org from the repo and reset your password once in it ? Remember Scratch Orgs are ephemeral, so it shouldn't be a problem to use one or another.

ankushsomani09 commented 6 years ago

Resetting password, ask question, which we don't know answer. As Org is created using sfdx.

FabienTaillon commented 6 years ago

Now you're logged out maybe it's too late, but if you create a new one you can go to Setup/Users, then on the list of users check the checkbox next to your username and click on the "Reset Password(s)" button at the top of the list. This way you won't have to answer a security question.

FabienTaillon commented 6 years ago

Another option for next time is to create a Connected App in your Dev Hub and then authenticate to your Scratch Orgs using the OAuth 2.0 JWT Bearer Flow, as explained here.