question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

force:auth:sfdxurl command stopped working in January 14 release

See original GitHub issue

Summary

Our CI system pulls the latest tarball of SFDX and installs it during each build. Starting today, the build is failing to authorize the DevHub org via the force:auth:sfdxurl command

I have read the Release Notes for today’s release and it explicitly says that the legacy commands should continue to work.

Additionally, I have read #787 but that specifically calls out issues using NPM installs of SFDX. This issue is present in the tarball install (https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz)

>sfdx force:auth:sfdxurl
 »   Warning: force:auth:sfdxurl is not a sfdx command.
Did you mean force:auth:logout? [y/n]: n
 »   Error: Run sfdx help force for a list of available commands.

Steps To Reproduce:

  • Install today’s release of SFDX (either via tarball or sfdx update)
  • Run sfdx force:auth:sfdx:url

Expected result

I should be able to store an auth URL for an existing org in my SFDX client

Actual result

 »   Warning: force:auth:sfdxurl is not a sfdx command.
Did you mean force:auth:logout? [y/n]: n

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):

>sfdx plugins --core
@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.1 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.5 (core)
@oclif/plugin-update 1.3.10 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.5 (core)
analytics 1.12.1 (core)
auth 1.4.6 (core)
config 1.2.3 (core)
etcopydata 0.6.3-Beta (beta)
generator 1.1.3 (core)
salesforcedx 50.13.3 (core)
├─ limits 1.0.2 (core)
├─ user 1.0.5 (core)
├─ schema 1.0.3 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
├─ salesforce-alm 50.13.1 (core)
├─ templates 50.4.0 (core)
├─ apex 0.1.4 (core)
└─ custom-metadata 1.0.11 (core)
sfdx-cli 7.84.2 (core)

Windows 10 Pro and Ubuntu 18

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
daveespocommented, Jan 15, 2021

It’s not that we don’t have a workaround, it’s that we have tooling and scripts and some are not as easily changed as others. This change was supposed to be phased in as the Release Notes indicate.

2reactions
ab-hacommented, Jan 15, 2021

@daveespo the most recent release of the CLI has moved force:auth commands to the auth namespace … i.e. drop the force: https://github.com/forcedotcom/cli/blob/main/releasenotes/README.md#50133-january-14-2021---cli-7842 This fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authentication using sfdxAuthUrl - Salesforce Stack Exchange
I've tried extracting the json into txt file, I've been getting the error that json is not valid for some reason even though...
Read more >
ERROR running force:auth:web:login - Salesforce Developers
Hello sfdx gurus, In Windows 7, I get the following error when I attampt to authorize the developer hub org. The login windows...
Read more >
SFDX & Github Action - Warning: force:auth:sfdxurl:store is not ...
You need to remove force: from your 'Authenticate' command line as it is advised in error message. You can look your current version...
Read more >
What is Salesforce CLI? Guide to Install Command Line ...
Salesforce CLI is a reliable command-line interface that simplifies the development ... force:auth:sfdxurl:store, Authorizes an org using an sfdx auth url.
Read more >
Develop Salesforce DX with Visual Studio Code Remote
Step 7: Remote machine: Install the Salesforce Command Line ... 'sfdx force:auth:sfdxurl:store -f login.txt -s -a vscodeOrg; Step 14: Client ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found