I am trying to follow commands to install SFDX CLI on Heroku instance.
When I execute commands
>heroku run bash >wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
I receive an error:
bash: wget: command not found
When I then try to run install command to install wget,
>sudo apt-get install wget
I receive an error
bash: sudo: command not found
When I execute just
>apt-get install wget
I receive errors
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
Ok, there should be a way to install sfdx without root access provided Node.js is installed. On heroku instance with Node.js it is installed
$ node --version
npm command to install sfdx, is not available
npm install sfdx-cli --global
bash: npm: command not found
Did anyone managed to resolve this issue?
Is this possible to install SFDX CLI on Heroku instance at all?