Skip to content
Work in progresspre-register via email

Quick start

This page takes you from an empty Hetzner project to a hub, a first Podman host and a first twin.

  • 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.
  1. 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.

  2. Sign in.

    Terminal window
    pbx login

    The browser opens. Register or sign in, confirm your email address, and pick your alpha licence. pbx keeps a token for the portal in your system’s credential store, nothing else.

  3. Create the hub.

    Terminal window
    pbx up acme --location nbg1 --hcloud-context acme-prod --twins-hcloud-context acme-twins

    pbx up shows 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. --plan only prints the list.

    The tokens can also come from --token-file, HCLOUD_TOKEN or a prompt. They go to Hetzner and to your hub, never to PaaSbox, and are never written to disk on your computer.

  4. Open the portal.

    Terminal window
    pbx open

    The hub’s portal opens in your browser through a local proxy that pbx runs while it is open. The portal is not on the internet. While it runs, other pbx commands in another terminal use its tunnel to the hub (not on Windows); pbx status shows the link.

  5. Create a host.

    Terminal window
    pbx host create web-1 --type cpx22 --env production

    The hub creates the server; its agent enrols and keeps the release the hub holds for it.

  6. Make a twin.

    Terminal window
    pbx twin create --production web-1 --task task-42 --ttl 4

    The twin is a copy of web-1 in your twins project, deleted after 4 hours. pbx twin list, pbx twin reset task-42 and pbx twin delete task-42 do what they say.

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.