Hanzo
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 →

CommandCallsWhat it does
hanzo projects deploy <slug>POST /v1/projects/{slug}/deployUpload a built site as one archive and serve it
hanzo projects deployments complete <slug> <id>POST /v1/projects/{slug}/deployments/{id}/completeCompleteDeployment 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}/deploymentsReturns a project's deploy history, newest version first.
hanzo projects deployments create <slug>POST /v1/projects/{slug}/deploymentsOpens 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}/verifyChecks 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}/domainsReturns 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}/domainsAttaches one or more CUSTOM public hostnames to this org's site.
hanzo projects purge <slug>POST /v1/projects/{slug}/purgeFlushes 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 forkPOST /v1/projects/forkCreates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery…
hanzo projects listGET /v1/projectsReturns every project your org owns.
hanzo projects createPOST /v1/projectsCreates a project — the handle a site is deployed and served under — and answers 201 with it in draft.

How is this guide?