Troubleshoot Salesforce DX

Here are some tips to help you troubleshoot issues.

  • Resolve Common Authorization Errors

    Errors sometimes occur when you run either org login web or org login jwt to log into and authorize an org. Here are some of the more common errors, what they mean, and what you can do to try to fix them.

  • Error: No default dev hub found

    You see this error when you try to create a scratch org due to an authorization issue.

  • Unable to Work After Failed Org Authorization

    Sometimes you try to authorize a Dev Hub org or a scratch org using the Salesforce CLI or an IDE, but you don’t successfully log in to the org. The port remains open for the stray authorization process, and you can’t use the CLI or IDE. To proceed, end the process manually.

  • Error: The consumer key is already taken

    Let’s say you run project retrieve start on an org in which you’ve created a connected app. When you try to deploy the retrieved source to a different org, the deploy fails with the error The consumer key is already taken. What happened?

  • CLI Version Information

    Use these commands to view version information about Salesforce CLI.

See Also