nicholasdille / PowerShell-HetznerCloud

Cmdlets for the Hetzner Cloud
Apache License 2.0
7 stars 2 forks source link
hetzner hetzner-cloud powershell powershell-module powershell-modules

Introduction

Cmdlets for Hetzner Cloud covering the API working for Windows PowerShell 3+ and PowerShell Core 6

Build status Download

Usage

Let me first help you help yourself:

Install-Module -Name HetznerCloud
Get-Command -Module HetznerCloud

Configuring your API token

You will need to call the following cmdlet to configure the module to use your API token.

Set-HetznerCloud -Token 'my_token_from_the_web_console'

Please remember to call Set-HetznerCloud everytime you want to execute cmdlets from this module in a new shell or after importing the module.

Taking a look at the infrastructure

Get-HetznerCloudLocation
Get-HetznerCloudDatacenter
Get-HetznerCloudServerType
Get-HetznerCloudImage
Get-HetznerCloudPricing

Uploading an SSH public key

Add-HetznerCloudSshKey -Name 'mykey' -PublicKey 'my_public_key'
Get-HetznerCloudSshKey

Creating a server

New-HetznerCloudServer -Name 'my_server' -Type cx11 -Image ubuntu-16.04 -SshKey 'mykey'
Get-HetznerCloudServer

Status

Please refer to the GitHub issues.