Maxime Van Hees 589095e2a8 added examples
2025-07-17 14:03:49 +02:00
2025-07-17 14:03:49 +02:00
2025-07-17 14:03:49 +02:00

Hetzner Cloud API - Rhai Wrapper

This project provides a Rhai wrapper for interacting with the Hetzner Cloud API, allowing you to manage your servers through simple scripts.

Setup

To use this wrapper, you need to set your Hetzner API Token as an environment variable. You can create your own API Token by following the steps from the Hetzner docs.

export HETZNER_API_TOKEN="YOUR_API_TOKEN_HERE"

Replace "YOUR_API_TOKEN_HERE" with your actual Hetzner API token.

Usage

You can execute any of the example scripts by passing the file path to cargo run.

cargo run -- examples/<script_name>.rhai

For example, to run the script that creates a server:

cargo run -- examples/01_create_server.rhai

Examples

The examples/ directory contains a collection of scripts demonstrating the available functionality. For detailed examples, please see the files in that directory:

Description
No description provided
Readme 85 KiB
Languages
Rust 100%