Skip to main content

CLI application for managing servers on the Hetzner platform

Project description

hetzner-control

hetzner-control its CLI tool, which lets you easily manage servers on the Hetzner platform

Sample usage gif

Table of contents

Motivation

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.

Usage

$ 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, prices
  • server: Operations with servers
  • version: Show app version

For a more detailed description of the command, see wiki page

Installation guide

  1. First, install environment variable, i.e. in .bashrc
$ export HETZNER_API_TOKEN="YOUR_HETZNER_TOKEN_HERE"
  1. 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
      

Want to contribute?

  1. Clone repo and create a new branch:
$ git checkout https://github.com/Hanabiraa/hetzner-control -b name_for_new_branch
  1. Make changes and test
  2. Submit Pull Request with comprehensive description of changes

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hetzner-control-1.0.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hetzner_control-1.0.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file hetzner-control-1.0.0.tar.gz.

File metadata

  • Download URL: hetzner-control-1.0.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.3.0

File hashes

Hashes for hetzner-control-1.0.0.tar.gz
Algorithm Hash digest
SHA256 34b2e3cceb176ac4462488b6732a6befca8dab4d998cfd91fb929e319e6fcc96
MD5 a38dc12f8a048d6dbbca1d25dd3b606c
BLAKE2b-256 2c658266076889f23ca890d5196a823685e966a661176047d9c66146ae7ec316

See more details on using hashes here.

File details

Details for the file hetzner_control-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hetzner_control-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.3.0

File hashes

Hashes for hetzner_control-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0d4591540af4cb8cef353f0489268338527313b4cad28e8475255979151ea51
MD5 fdb6e99bcf23551c5163e67fb9edbd4d
BLAKE2b-256 c7a399cfff6b87125433fb84206bd254cc92353294451c267aea3d662605c4eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page