CLIProjects
Projects
16 `hanzo` commands for Projects, each calling one operation on api.hanzo.ai.
Package projects is where your sites live: create one, deploy a build, roll back to any release.
16 commands · API reference →
| Command | Calls | What it does |
|---|---|---|
hanzo projects deploy <slug> | POST /v1/projects/{slug}/deploy | Upload a built site as one archive and serve it |
hanzo projects deployments complete <slug> <id> | POST /v1/projects/{slug}/deployments/{id}/complete | CompleteDeployment is the CI completion hook that flips a queued git deployment to live (or error) once CI has synced… |
hanzo projects deployments get <slug> <id> | GET /v1/projects/{slug}/deployments/{id} | Returns one deployment of a project by id. |
hanzo projects deployments list <slug> | GET /v1/projects/{slug}/deployments | Returns a project's deploy history, newest version first. |
hanzo projects deployments create <slug> | POST /v1/projects/{slug}/deployments | Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage. |
hanzo projects domains verify <slug> <host> | POST /v1/projects/{slug}/domains/{host}/verify | Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at… |
hanzo projects domains rm <slug> <host> | DELETE /v1/projects/{slug}/domains/{host} | Gives a custom hostname back, so the name is free to reuse. |
hanzo projects domains list <slug> | GET /v1/projects/{slug}/domains | Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes. |
hanzo projects domains create <slug> | POST /v1/projects/{slug}/domains | Attaches one or more CUSTOM public hostnames to this org's site. |
hanzo projects purge <slug> | POST /v1/projects/{slug}/purge | Flushes the site's edge cache without redeploying anything. |
hanzo projects get <slug> | GET /v1/projects/{slug} | Returns one project of yours by slug — its settings, its live URL and the deployment currently serving it. |
hanzo projects update <slug> | PATCH /v1/projects/{slug} | Changes a project's settings, and only the settings you send. |
hanzo projects rm <slug> | DELETE /v1/projects/{slug} | Deletes a project and takes its site off the internet. |
hanzo projects fork | POST /v1/projects/fork | Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery… |
hanzo projects list | GET /v1/projects | Returns every project your org owns. |
hanzo projects create | POST /v1/projects | Creates a project — the handle a site is deployed and served under — and answers 201 with it in draft. |
How is this guide?