1.4.2 • Published 2 years ago
hetzner-cloud-js v1.4.2
hetzner-cloud-js
A Node.js module for the Hetzner Cloud API
Example
Create a client instance
const HetznerCloud = require('hetzner-cloud-js')
let client = new HetznerCloud.Client('API_TOKEN')Build and create a server
const { server } = await client.servers.build('my-awesome-server')
.serverType('cx11')
.location('nbg1')
.image('debian-9')
.sshKey('work')
.create()Documentation
Development
Quick setup
- Clone this repo with
git clone https://github.com/boxexchanger/hetzner-cloud-js.git cd hetzner-cloud-js- Run
npm installto install dependencies - Copy
.env.distto.envfile and setup your access token. You can use this guide by Hetzner.
License
1.4.2
2 years ago