Closed Jojolam44 closed 1 year ago
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
This issue has been linked to a new work item: W-13639832
Hi @Jojolam44 - I just confirmed the fixed, this will be availble in the nightly
build tonight, latest-rc
on wed/thurs and latest
in 2 weeks
Closing this as it's fixed in latest releases
@shetzel Can you please state which version has been tested for a fix?
I am seeing this issue in the following env:
@salesforce/cli/2.13.9 linux-x64 node-v18.15.0
Given:
That I run in docker
docker run -it salesforce/cli:latest-rc-slim
That I use the following command to authenticate
sfdx force:auth:device:login --instance-url https://company--md04.sandbox.lightning.force.com -d -a devhub --json
@tecfu - you're using a lightning domain, which is different from the OP in this issue, and should not be used as the instance-url. As part of the error message (in your case in the JSON) it should state:
Error (1): Invalid instance URL. It should NOT be a lightning domain.
Try this:
If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
To specify a My Domain URL, use the format https://yourcompanyname.my.salesforce.com/.
To specify a sandbox, set --instance-url to https://mydomainname--sandboxname.sandbox.my.salesforce.com/.
Summary
When our company migrated from classic to lightning, we created a new instance with the "-lightning" keyword in it. We can't login with sfdx-cli because it trigger the "lightning domain" URL check error.
Steps To Reproduce
sfdx org:login:web --instance-url="https://mycompanyname-lightning.my.salesforce.com"
Expected result
Allow to login sfdx-cli to our instance
Actual result
$ sfdx org:login:web --instance-url="https://mycompany-lightning.my.salesforce.com" Error (1): Invalid instance URL. It should NOT be a lightning domain.
Try this:
If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
To specify a My Domain URL, use the format https://yourcompanyname.my.salesforce.com.
To specify a sandbox, set --instance-url to https://MyDomainName--SandboxName.sandbox.my.salesforce.com.
System Information
Shell used : bash for windows
Additional information