Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove auto-updating feature from sfdx #718

Closed
AndrewRayCode opened this issue Oct 30, 2020 · 2 comments
Closed

Remove auto-updating feature from sfdx #718

AndrewRayCode opened this issue Oct 30, 2020 · 2 comments

Comments

@AndrewRayCode
Copy link

Is your feature request related to a problem? Please describe.
There are occasional issues with sfdx that appear without warning, for example #684. These issues affect users locally as well as CI/CD systems that use sfdx.

What are you trying to do
Not have to worry about the sfdx version self upgrading and spontaneously breaking something.

Describe the solution you'd like
sfdx to no longer update and make it clear which version it's on. Right now it's confusing because there seem to be core specific libraries that have their own versions, not a clear overall sfdx version.

Describe alternatives you've considered
Trying to force lock in a version with reverse engineering the core packages and running specific install commands. Doesn't feel like it's worth it.

Additional context
Auto updating doesn't seem appropriate for a CLI tool. It introduces nondeterministic software behavior, and removes the user's ability to triage bugs by downgrading tool versions.

@github-actions
Copy link

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.

@amphro
Copy link
Contributor

amphro commented Oct 30, 2020

You can already turn off auto-updates.

  1. If using the installers, set the environment variable: SFDX_DISABLE_AUTOUPDATE=true (doc'ed here)
  2. If using npm, it doesn't auto-update by default. i.e. npm install sfdx-cli --global. You can also hardcode to a specific version: npm install sfdx-cli@49 --global

If you want CLI auto-updates but want to prevent certain commands from updating, you can lock to specific versions. sfdx plugins:install [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants