Quick start
This page takes you from an empty Hetzner project to a hub, a first Podman host and a first twin.
What you need
Section titled “What you need”- A Hetzner Cloud project for the hub and your hosts, and an API token with read and write permission for it.
- A second Hetzner Cloud project for twins, with its own token. Without it there are no twins until you add it.
- An S3 bucket for the hub’s backup, for example Hetzner Object Storage.
- A computer with macOS, Windows or Linux.
-
Install
pbx. The downloads are in development: an install script on releases.paasbox.com, a Homebrew tap, and winget (PaaSbox.pbx). The binaries are signed. -
Sign in.
Terminal window pbx loginThe browser opens. Register or sign in, confirm your email address, and pick your alpha licence.
pbxkeeps a token for the portal in your system’s credential store, nothing else. -
Create the hub.
Terminal window pbx up acme --location nbg1 --hcloud-context acme-prod --twins-hcloud-context acme-twinspbx upshows what it will create and asks before it starts. It creates a server, a private network, a firewall and a primary IPv4 address in your project; installs pbx-hub after checking the release’s signature; pairs this computer as the owner; shows an offline recovery key once; activates the licence; and hands the tokens to the hub. Interrupted, the same command continues where it stopped.--planonly prints the list.The tokens can also come from
--token-file,HCLOUD_TOKENor a prompt. They go to Hetzner and to your hub, never to PaaSbox, and are never written to disk on your computer. -
Open the portal.
Terminal window pbx openThe hub’s portal opens in your browser through a local proxy that
pbxruns while it is open. The portal is not on the internet. While it runs, otherpbxcommands in another terminal use its tunnel to the hub (not on Windows);pbx statusshows the link. -
Create a host.
Terminal window pbx host create web-1 --type cpx22 --env productionThe hub creates the server; its agent enrols and keeps the release the hub holds for it.
-
Make a twin.
Terminal window pbx twin create --production web-1 --task task-42 --ttl 4The twin is a copy of
web-1in your twins project, deleted after 4 hours.pbx twin list,pbx twin reset task-42andpbx twin delete task-42do what they say.
Remove it again
Section titled “Remove it again”pbx host delete web-1 deletes a host and its server. pbx down acme deletes the hub and everything pbx up created; it refuses while the hub still manages a server, and asks you to type the hub’s name.
- The hub: what
pbx upcreates and how the hub is reached. - Twins and recovery tests: where a twin’s data comes from.
- pbx commands: every command.