Questions tagged [salesforcedx-cli-auth]

For questions concerning SFDX authentication commands

Filter by
Sorted by
Tagged with
0
votes
0answers
153 views

Getting “This org appears to have a problem with its OAuth configuration. Reason: invalid_grant - expired access/refresh token ” error in VS Code SFDX

From today, Suddenly, I started getting the below error in VS code whenever I am running any SFDX command: ERROR running force:source:retrieve: This org appears to have a problem with its OAuth ...
0
votes
1answer
135 views

Authorize a Dev Hub Org

I need a help for authorize a Dev Hub Org using the Web-Based Flow. The output of the SFDX Cli is below. sfdx force:org:display -u myhuborg Acess Token : 00D000027..... Alias : myhuborg Client Id : ...
0
votes
0answers
58 views

Unable to authorize Scratch org from cli

I am trying to authorize an scratch org via CLI (sfdx force:auth:web:login) with my user which is created by another user and I am not able to authorize it. Getting below error: ERROR running force:...
1
vote
0answers
54 views

SFDX error for external objects

I have added external object in an unlocked package. This object is getting call from apex classes. I have added the datasources also. But getting errors like below: 1. Invalid type: Schema....
1
vote
1answer
143 views

Sfdx Auth Url is getting expired after certain time

For CI pipeline for authentication I am using "sfdx force:Org:Display --targetusername ProductionHub --verbose" command to get Sfdx Auth Url. Then by using "sfdx force:auth:Sfdxurl:Store -f ...
1
vote
3answers
259 views

Unable to authorize the org in vscode

When i tried to authorize the org via vscode this issue is showing.After killing process id 1717,another issue is showing.Here is the issue { Error: spawn cmd ENOENT at Process.ChildProcess....
0
votes
1answer
136 views

Error when Authenticate Orgs

I'm having a very frustrated problem where Visual Studio Code show error everytime I want to authenticate an org. I use CMD and it working fine but when I try to work on Visual Studio Code it show the ...
2
votes
1answer
328 views

Salesforce DX authentication URL Expiration date

I have been going through this link Sfdx authorization for org and find out to check org information via salesforce cli we have to use this command below sfdx force:org:display --targetusername <...
2
votes
1answer
2k views

ERROR running force:source:deploy: Deploy failed

I keep getting ERROR running force:source:deploy: Deploy failed. I just follow the instructions right here. This is my current org: ALIAS USERNAME ORG ID ...
0
votes
1answer
222 views

scratch org creation gives error on proxy

sfdx force:org:create -s -f ./config/project-scratch-def.json -a AppScratch using above command for scratch org creation gives error on proxy ERROR: location is not defined. i have ...
2
votes
1answer
1k views

“fatal signup error” when creating scratch org

I have a Dev Hub that is set up in my Developer Edition org. I have been using it for DX development for several weeks, but when I tried to create a scratch org today with the same configuration file (...
1
vote
2answers
551 views

I haven't access to the [ScratchOrgInfo] object

I have a problem with my trailhead "Quick Start: Salesforce DX". I'm trying to do this: sfdx force:org:create -s -f config/project-scratch-def.json -a "default scratch org" But become an Error: You ...
9
votes
1answer
4k views

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

BACKGROUND Imagine you're working on 2-3 Salesforce projects each with a different target Orgs (sandboxes for different companies). You're actively working on project 1 (coding, running tests, ...
0
votes
1answer
66 views

Programatically add org authentication to SalesforceDX

I’m coding a sfdx plugin using the new plugin generator found here: https://github.com/forcedotcom/sfdx-plugin-generate I was wondering if there’s a way to programatically add a new Salesforce org ...
11
votes
2answers
4k views

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

Is it possible to log in from sfdx CLI to already existent sandbox having username/password combination? Reading through documentation I see bunch of ways how to authorize - through browser, by ...