Developer documentation

ZipHost CLI

Deploy and manage ziphost sites from your terminal. Every command below is copy-ready and uses the ziphost 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 deploy, from start to finish

Replace my-site and <site-id>. Your project must have index.html or index.php at its root.

curl -fsSL https://ziphost.co/install.sh | bash
ziphost create --name=my-site --type=static
ziphost sites
cd /path/to/my-site
ziphost deploy --site=<site-id> --path=.
ziphost open --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://ziphost.co/install.sh | bash

Installs the brand-specific command and configuration.

First deploy

ziphost create --name=my-site --type=static
ziphost sites
cd /path/to/my-site
ziphost deploy --site=<site-id> --path=.
ziphost open --site=<site-id>

Use --type=php for PHP projects on brands that allow PHP. The site ID comes from the create response or sites list.

List and inspect

ziphost sites
ziphost status --site=<site-id>

Shows your sites, then status, URL, source, release, and uptime for one.

Environment variables

ziphost env --site=<site-id>
ziphost env --site=<site-id> --set APP_ENV=production

For eligible PHP sites. Never expose secret values in public logs or tickets.

Logs

ziphost logs --site=<site-id>
ziphost logs --site=<site-id> --error

Access logs first; server and PHP errors second.

Releases and rollback

ziphost releases --site=<site-id>
ziphost rollback --site=<site-id> --release=<release-id>

List releases, then restore a previous successful one.

Custom domain

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

Set a domain, create the returned DNS record, verify SSL, or remove it.

Database

ziphost db --site=<site-id> --create
ziphost db --site=<site-id>
ziphost db --site=<site-id> --delete

Create, view, or permanently delete a MySQL database for an eligible PHP site.

Delete a site

ziphost delete --site=<site-id>

Permanently deletes the selected site. Confirm the ID before running it.