bitninjacli --reinstall-license-key=YourNewLicenseKeyHere
If you are using an older version of BitNinja, you must follow these steps to reinstall our agent and manually remove the old license keys to be able to activate a new license.
For uninstallation, please use one of the following commands depending on your server’s OS.
apt-get purge 'bitninja*'
Or yum remove 'bitninja*'
Use all of the below commands in the given order to delete the directories mentioned below, so BitNinja will use the new license.
rm -f /var/lib/bitninja/token*
rm -rf /var/lib/bitninja/
rm -rf /etc/bitninja/
Then reinstall BitNinja using the one-liner installation code and your new license key.curl https://get.bitninja.io/install.sh | sudo /bin/bash -s - --license_key=YourLicenseKeyHere --updateChannel=frequent