hetzner-control
its CLI tool, which lets you easily manage servers on the Hetzner platform
I wanted to create a console application that would interact with the REST API of the cloud service for convenient server management and the platform in general.
I also wanted to improve my skills in application design and API work while I'm studying software engineering in university.
$ htz [OPTIONS] COMMAND [ARGS]...
Options:
--install-completion
: Install completion for the current shell.--show-completion
: Show completion for the current shell, to copy it or customize the installation.--help
: Show documentation message for available commands/flags
Commands:
info
: Information about available data centers, servers, pricesserver
: Operations with serversversion
: Show app version
For a more detailed description of the command, see wiki page
- First, install environment variable, i.e. in .bashrc
$ export HETZNER_API_TOKEN="YOUR_HETZNER_TOKEN_HERE"
- Installation option
- You can install hetzner-control from pip
$ pip3 install hetzner-control
- Or you can clone the repository and build the wheel/sdist module with poetry (you can preinstall poetry):
$ git clone https://github.com/Hanabiraa/hetzner-control.git $ cd hetzner-control $ poetry install $ poetry build
- You can install hetzner-control from pip
- Clone repo and create a new branch:
$ git checkout https://github.com/Hanabiraa/hetzner-control -b name_for_new_branch
- Make changes and test
- Submit Pull Request with comprehensive description of changes
MIT License