Package Details: sfdx-cli 7.81.0_7b953c80d1-1

Git Clone URL: https://aur.archlinux.org/sfdx-cli.git (read-only, click to copy)
Package Base: sfdx-cli
Description: a tool for creating and managing Salesforce DX projects from the command line
Upstream URL: https://developer.salesforce.com/tools/sfdxcli
Keywords: salesforce sfdx
Licenses: unknown
Provides: sfdx-cli
Submitter: dangmai
Maintainer: dangmai
Last Packager: dangmai
Votes: 2
Popularity: 0.021661
First Submitted: 2017-11-22 22:35
Last Updated: 2020-11-20 15:47

Pinned Comments

dangmai commented on 2019-04-01 03:19

Salesforce is no longer distributing the i686 version of this package, so I'm taking that version off of AUR. The only supported version now is x86_64 for this package. They also distribute an ARM version but I'm not sure if anyone would use it; if it's beneficial for you please put a comment here and I'll support that version as well.

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

dangmai commented on 2019-02-28 16:29

@fandancer that's very weird. I looked into the source code distributed by Salesforce and nothing looks out of place. Also I do know this package works for multiple people on Arch/Manjaro/Antergos so I'm a bit stumped why it doesn't work for you.

Here are a couple of things that I can think of: - Did you install gnome-keyring? - Do you have node installed by pacman in your system? If yes, which version? (sfdx-cli brings its own embedded Node 8.9.4 but maybe there's something going on with your PATH)

fandancer commented on 2019-02-28 13:33

I'm getting a lot of errors relating to the /opt/sfdx-cli files but these are deleted on reinstall.

{"name":"sfdx","hostname":"test","pid":26637,"level":50,"msg":"[ false,\n  '{\"message\":\"Invalid key length\",\"status\":1,\"stack\":\"Error: Invalid key length\\\\n    at new Cipheriv (crypto.js:219:16)\\\\n    at Object.createCipheriv (crypto.js:619:10)\\\\n    at Crypto.encrypt (/opt/sfdx-cli/node_modules/salesforce-alm/dist/lib/crypto.js:162:31)\\\\n    at Object.keys.forEach (/opt/sfdx-cli/node_modules/salesforce-alm/dist/lib/configValidator.js:68:36)\\\\n    at Array.forEach (<anonymous>)\\\\n    at crypto.init.then (/opt/sfdx-cli/node_modules/salesforce-alm/dist/lib/configValidator.js:59:37)\\\\n    at tryCatcher (/opt/sfdx-cli/node_modules/bluebird/js/release/util.js:16:23)\\\\n    at Promise._settlePromiseFromHandler (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:510:31)\\\\n    at Promise._settlePromise (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:567:18)\\\\n    at Promise._settlePromise0 (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:612:10)\\\\n    at Promise._settlePromises (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:691:18)\\\\n    at Async._drainQueue (/opt/sfdx-cli/node_modules/bluebird/js/release/async.js:138:16)\\\\n    at Async._drainQueues (/opt/sfdx-cli/node_modules/bluebird/js/release/async.js:148:10)\\\\n    at Immediate.Async.drainQueues (/opt/sfdx-cli/node_modules/bluebird/js/release/async.js:17:14)\\\\n    at runCallback (timers.js:789:20)\\\\n    at tryOnImmediate (timers.js:751:5)\",\"name\":\"Error\",\"warnings\":[]}' ]","time":"2019-02-28T13:27:36.725Z","v":0}

dangmai commented on 2019-02-27 17:21

Apparently there is, here's the documentation: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_cli_log_messages.htm

fandancer commented on 2019-02-26 09:12

@dangmai

I run the commands:

pacman -R sfdx-cli

rm -rf ~/.local/share/sfdx

yay sfdx-cli

sfdx update

sfdx force:auth:web:login

And I'm still hitting the same error, is there a log to view to check the error?

Edit: Thought I could get around this by making an ubuntu VM and logging in there, then copying the json files for that user into my Arch install. Ubuntu works fine, but when I try the command sfdx force:org:open -u test@test.com I get the same invalid key length error

dangmai commented on 2019-02-25 15:39

@fandancer

pacman -R sfdx-cli should delete everything related to this package. However, I do know that sfdx also puts some stuff in your $HOME/.local/share/sfdx directory (especially when you do sfdx update instead of using pacman to update).

fandancer commented on 2019-02-25 08:10

@dangmai

4.20.10-arch1-1-ARCH

Gnome 3.30.2

sfdx-cli/6.53.0-67a9cbb60c (linux-x64) node-v8.9.4

X11

Which files to I need to delete to ensure a complete reinstall of sfdx-cli?

dangmai commented on 2019-02-22 15:47

@fandancer, I just logged in using sfdx force:auth:web:login on a new Antergos installation, so I think there's something going on with your installation. Which DE are you running (is it on X11 or Wayland)? Can you do sfdx --version and post the output?

fandancer commented on 2019-02-22 10:27

I'm still getting errors during login. Attempting web:login causes the error "Invalid Key Length". Where as all attempts using JWT flow causes the error "invalid_grant - invalid assertion"

dangmai commented on 2019-02-05 05:27

That's great to hear, thanks zerkz!

zerkz commented on 2019-02-04 20:07

With the latest packages in my arch/gnome setup installed, SFDX CLI now seems to properly work out of the box for the "web oauth flow".

4.20.6-arch1-1-ARCH

GNOME 3.30.2

sfdx-cli 6.50.0_9817aece8a-1