Basecamp guide / Fleet
Provisioning a server
fli server:create buys one box at DigitalOcean or Hetzner with your SSH key on it, prints its address and can add an ssh Host for it. It installs nothing: what goes on the box is a later command's.
fli server:create hetzner 8gb box1
fli server # the boxes fli made, with the id the next two take
fli server:stop <id> # power off
fli server:destroy <id> # refused until the box is off
At a terminal the answers are shown together and one last key buys the box or leaves it. The run ends on the three commands that put something there: fli deploy:setup, fli outpost:install and fli basecamp:install.
What else it can do
- The token comes from
DIGITALOCEAN_TOKENorHETZNER_TOKEN, stored withfli eset <NAME> <token> --global --yesanswers every question and still needs--name, and--cloudunless exactly one token is stored--sizetakes a memory (4gb,8gb) or the cloud's own slug, and--region,--imageand--keyoverride the defaults- A reserved IP is held by default so a replacement box keeps the address, and
--no-reserved-ipskips it - A reserved IP bills at the cloud's rate until released, and
fli server:destroy --release-ipreleases it fli server:destroyrefuses a boxserver:createdid not make and any fleet machine, which is destroyed in Basecampfli basecamp:createisserver:createandbasecamp:installin one run- Basecamp's own Servers screen can provision a machine too, at
/servers/provision - Basecamp's spend guard refuses a POST or DELETE to a cloud unless the address is loopback,
NODE_ENV=productionorALLOW_CLOUD_SPEND=1 fli server:create --jsonprints the answer as JSON
In depth: server:create, server module, Provisioning plan