Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
10 votes
Accepted

How to switch between Salesforce DX orgs/projects when using Visual Studio Code

When you run sfdx force:config:set the value is set at the project level unless you use the -g flag. So running sfdx force:config:set defaultusername=alias in a project folder will make that the ...
John Towers's user avatar
  • 3,873
9 votes

SalesforceDX: Log in to sandbox by username/password from command line without browser involved

sfdx force:auth only provides the JWT and web OAuth login methods: sfdx force:auth commands: (get help with sfdx help force:auth:COMMAND) force:auth:jwt:grant authorize an org using the JWT ...
David Reed's user avatar
  • 93.1k
5 votes
Accepted

SalesforceDX: Log in to sandbox by username/password from command line without browser involved

You could use the auth command from the sfpowerkit plugin: sfpowerkit auth:login https://github.com/Accenture/sfpowerkit It supports login with username-password combination (probably will need ...
jonathanwiesel's user avatar
4 votes
Accepted

Salesforce DX authentication URL Expiration date

In the Salesforce CLI command reference, it describes the way to create valid sfdx auth urls as either of these two formats: force://<refreshToken>@<instanceUrl> force://<clientId>:&...
pchittum's user avatar
  • 19.7k
3 votes
Accepted

"fatal signup error" when creating scratch org

Are there any other details in the error message? There are a lot of discussions around scratch org signups on the official Salesforce DX group page today: https://success.salesforce.com/_ui/core/...
Robert Watson's user avatar
2 votes

Unable to authorize the org in vscode

I checked system variables found the cause of the problem: missing C:\Windows\System32\ variable. I added it and that solved my problem Hope, it help you too.
Sahil Malhotra's user avatar
1 vote

VisualStudioCode. SFDX: Authorize an Org. Time out error

There can be multiple reasons for timeout: network traffic between the environment you execute this command in and salesforce is not whitelisted programs in the environment you are in blocks it (like ...
Maciej Ptak's user avatar
1 vote
Accepted

Sfdx Auth Url is getting expired after certain time

The Sfdx Auth Url should never expire unless someone is revoking it manually or you have your own connected app and set the policies to say "immediately expire refresh token " or "Expire refresh token ...
Mohith Shrivastava's user avatar
1 vote

I haven't access to the [ScratchOrgInfo] object

you have to enable Dev Hub in your ORG. (Setup --> DevHub) This successfully fixed the problem for me and was able access to the [ScratchOrgInfo] object and create my Scratch Org. See the following ...
Z33dawg's user avatar
  • 1,411
1 vote
Accepted

Programatically add org authentication to SalesforceDX

You can use JWT grant command, as explained here : https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_jwt_flow.htm ( follow all the steps, and if you need to easily ...
Nicolas Vuillamy's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible