hcloud-server-exists

Description

Create a server with the specified name/id exists in your Hetzner hcloud account, if it doesn't exist yet.

If a server exists, nothing is done, even if the 'image' and 'server_type' are different to the deployed server.

Variables

Name Type Default Description

api_token

string --

The hcloud API token. Required

server_id

n/a --

The ID of the Hetzner Cloud server to manage. Only required if no server name is given.

server_name

string --

The name of the cloud server to manage.

server_type

string cx11

The type of server to create.

Command-line

frecklecute --community hcloud-server-exists --help

Usage: frecklecute hcloud-server-exists [OPTIONS]

  Create a server with the specified name/id exists in your Hetzner hcloud
  account, if it doesn't exist yet.

  If a server exists, nothing is done, even if the 'image' and 'server_type'
  are different to the deployed server.

Options:
  --api-token API_TOKEN      The hcloud API token.  [required]
  --server-id SERVER_ID      The ID of the Hetzner Cloud server to manage.
                             Only required if no server name is given.
  --server-name SERVER_NAME  The name of the cloud server to manage.
  --server-type SERVER_TYPE  The type of server to create.  [default: cx11]
  --help                     Show this message and exit.