# WPHost CLI

Install:

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

Create an API token at https://wphost.se/account/tokens. Tokens and sites are isolated to WPHost.

## Install WordPress

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

WPHost installs WordPress, an isolated MySQL database, and HTTPS. The administrator username is `owner`. The temporary password is printed once and emailed. Zip deploy is not available.

## Commands

```bash
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>
wphost domain --site=<site-id> --set=www.example.com
wphost domain --site=<site-id> --verify
wphost domain --site=<site-id> --remove
wphost delete --site=<site-id>
```
