Skip to content

Instantly share code, notes, and snippets.

@54chi
Created January 13, 2022 23:21
Show Gist options
  • Save 54chi/3d896b32abdd3f558e5e582e51ad88ea to your computer and use it in GitHub Desktop.
Save 54chi/3d896b32abdd3f558e5e582e51ad88ea to your computer and use it in GitHub Desktop.
SFDX stuff

How to Update SFDX in Windows Bash (WSL) if getting a "403: Invalid Channel Stable" error.

NOTE: This is only valid if you already have successfully installed SFDX at least once in WSL, and want to update it.

It looks like I'm the only one that continues to regularly get this Error: HTTP 403: Invalid channel stable everytime I run sfdx update. I don't want to reinstall every single time, so the compromise that seems to work is to download the zip again and untar it:

1. wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz , or
1. wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable-rc/sfdx-linux-x64.tar.xz , if you want the RELEASE CANDIDATE

2. tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1 , this may take a while.

And that should do it. To confirm, run sfdx --version

If you want even more, and want to use the weekly updates, the releases can be seen here. Yes, there are quite a few versions ahead of the "stable" and "stable-rc" ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment