What is missing from the application? Please describe.
There seems to be an issue when the SFDX CLI version on the client side drifts past a certain version. This causes an error of the script not being able to find the sandbox org and will proceed to fail. This can be difficult to troubleshoot because there seems to be two ways to grab a version number of SFDX
If the command sfdx plugins --core
is ran, it will give a list like this:
@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.1 (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.4.3 (core)
alias 1.1.2 (core)
analytics 1.12.1 (core)
auth 1.3.0 (core)
config 1.1.9 (core)
generator 1.1.3 (core)
salesforcedx 50.2.0 (core)
├─ templates 50.1.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
├─ custom-metadata 1.0.10 (core)
├─ apex 0.1.1 (core)
└─ salesforce-alm 50.2.0 (core)
sfdx-cli 7.77.0 (core)
At the bottom of this list, there's a version of salesforcedx
of 50.2.0 (which is what the README is assuming the user is checking to use); however, the sfdx-cli also gives a version number of 7.77.0
. Keep in mind, the documentation only says the "CLI" should be a certain version, and when I ran this for the first time, saw the error, I used the command sfdx -v
, it gave me the version of 7.77.0 -- instantly confusing me
Describe the solution you'd like
We should standardized on which versioning we should use. Is it the sfdx-cli versioning? Or the salesforcedx
one? If so, we just need to be a bit more clear on which line item needs to be the proper version instead of only saying "CLI >= insert version here
", it could be " salesforcedx >= 50.2.0 ; please run sfdx plugins --core to see the current version)
"