A Node.js module for the Hetzner Cloud API
constHetznerCloud=require('hcloud-js')letclient=newHetznerCloud.Client('API_TOKEN')const{ server }=awaitclient.servers.build('my-awesome-server').serverType('cx11').location('nbg1').image('debian-9').sshKey('work').create()- Clone this repo with
git clone https://github.com/dennisbruner/hcloud-js.git cd hcloud-js- Run
npm installto install dependencies - Copy
.env.distto.envfile and setup your access token. You can use this guide by Hetzner.