Command Reference
This reference summarizes the commands most operators need. Run bin/servestead --help and bin/servestead <command> --help for the complete flag list.
go build -o bin/servestead .Local Preflight
Section titled “Local Preflight”bin/servestead doctorGenerate SSH Key
Section titled “Generate SSH Key”bin/servestead keygenProvision
Section titled “Provision”bin/servestead provision \ --provider hetzner \ --name aegis-01 \ --ssh-key my-provider-keybin/servestead provision \ --provider digitalocean \ --name aegis-01 \ --ssh-key provider-key-id-or-fingerprintGuided Setup
Section titled “Guided Setup”bin/servestead setup --ip 203.0.113.10bin/servestead setupDirect Stages
Section titled “Direct Stages”bin/servestead bootstrap \ --host 203.0.113.10 \ --admin-public-key "$HOME/.ssh/id_ed25519.pub" \ --private-key "$HOME/.ssh/id_ed25519"bin/servestead harden \ --host 203.0.113.10 \ --private-key "$HOME/.ssh/id_ed25519"bin/servestead network \ --host 203.0.113.10 \ --private-key "$HOME/.ssh/id_ed25519"bin/servestead proxy \ --host 203.0.113.10 \ --private-key "$HOME/.ssh/id_ed25519" \ --domain example.com \ --email admin@example.com \ --server-secret 'replace-with-a-long-random-secret'Credentials
Section titled “Credentials”bin/servestead pangolin-credentials --profile <profile-id>bin/servestead pangolin-credentials --ip 203.0.113.10Stack Management
Section titled “Stack Management”bin/servestead stack add \ --profile <profile-id> \ --compose /path/to/docker-compose.yml \ --publish web:3000:appbin/servestead stack env set --profile <profile-id> --stack <name> --file /path/to/.envbin/servestead stack env remove --profile <profile-id> --stack <name>