Developer documentation

WPHost CLI

Install WordPress and manage recovery points from your terminal. Every command below is copy-ready and uses the wphost CLI for this brand.

Before you start: install PHP with curl and zip extensions, then create an API token on this brand. Tokens and sites are isolated per brand.

First WordPress site, from start to finish

Replace the site name. WPHost installs WordPress, MySQL, and HTTPS. You do not upload a zip.

curl -fsSL https://wphost.se/install.sh | bash
wphost create --name="My blog"
wphost wp --site=<site-id>

Every CLI command

Copy one example or copy the full Markdown guide for an AI chat or a .md file.

Install

curl -fsSL https://wphost.se/install.sh | bash

Installs the wphost command and saves this brand’s API address.

Install WordPress

wphost create --name="My blog"
wphost sites
wphost wp --site=<site-id>

Creates a managed WordPress site, database, and administrator. The temporary password is printed once and emailed.

WordPress operations

wphost wp --site=<site-id>
wphost wp backup --site=<site-id>
wphost wp backups --site=<site-id>
wphost wp restore --site=<site-id> --backup=<backup-id>
wphost wp admin-reset --site=<site-id>
wphost wp tls --site=<site-id>

Status, recovery points, password reset by email, and an HTTPS retry. Zip deploy is not used.

Custom domain

wphost domain --site=<site-id> --set=www.example.com
wphost domain --site=<site-id> --verify
wphost domain --site=<site-id> --remove

Set a domain, create the returned DNS record, verify SSL, or remove it. Then update the WordPress site URL if the public address changes.

Delete a site

wphost delete --site=<site-id>

Permanently deletes the WordPress site and its database. Confirm the ID before running it.