- Save
reboot.js
to your local machine - In the directory you have
reboot.js
run:
> npm install pkgcloud
- run the script:
> node reboot.js <your-rackspace-username> <your-rackspace-api-key> <region> <server-id> <reboot-type>
For example:
> node reboot.js my-account foo-bar-123456 ORD 1-2-3-4-5 hard