To use HPort, you need to have the following installed and configured:
-
Hetzner Cloud Account:
- You must have an active Hetzner Cloud account.
- Generate an API Token in the Hetzner Cloud Console under your project's "Security" > "API Tokens" tab.
- Ensure you have an SSH Key added to your project. You will need the ID of this key to provision servers that you can access via SSH (though HPort handles most management for you).
-
.NET 9.0 SDK:
- HPort is built on .NET 9.0. Download and install it from dotnet.microsoft.com.
-
Git (Optional):
- Required if you intend to clone the repository and build from source.
Currently, HPort is distributed as source code. Follow these steps to build the CLI tool:
-
Clone the Repository:
git clone https://github.com/ItsNameless/hport.git cd hport -
Build the Solution:
dotnet build -c Release
-
Run the CLI: You can run the CLI directly using
dotnet run:dotnet run --project src/ItsNameless.HPortCli -- [command]
Alternatively, you can publish it as a standalone executable:
dotnet publish src/ItsNameless.HPortCli -c Release -o ./publish ./publish/hport [command]