Closed habl closed 1 year ago
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.
Interestingly I had to go back all the way to version 2.4.4 to get a fast version. Starting from 2.4.5 every command has a delay of at least 10 sec, sometimes a multiple of that. Hopefully that rings a bell for some dev? :)
Edit: Only the sf help
command became faster in 2.4.4, but soql queries are still slow. To make sf data query
faster I had to go back to 2.4.2.
I would suspect the node version first. Try with the latest LTS version (20.9.0) of node (for an npm install) or use the CLI tarballs, which include the LTS version of node.
You can run commands with debug output (append --dev-debug
) and that will include high precision timings of command load and run time. Look for oclif-perf
debug topics.
Also when entering a menu there is a timeout of 10000 ms, which almost assumes there is a wait for 10 sec on every command or something?
It means that interactive commands need a timeout value or they could run forever (or until ctrl+c). In the case of partial command matching there is a timeout of 10s defined.
Indeed, updating node solved it, thanks!
I just installed the latest version of sf cli and every command I run takes at least 10 seconds. For example:
Also when entering a menu there is a timeout of 10000 ms, which almost assumes there is a wait for 10 sec on every command or something?
Steps To Reproduce
Run any command.
Expected result
Getting my cli back immediately after command is finished.
Actual result
Getting my cli back after 10+ secs.
System Information
Additional information