Organizations
Organizations are containers for your sites. Each site belongs to exactly one organization.
org list
List all organizations you own.
| Option | Description |
|---|---|
--json | Output as JSON for scripting |
bash
zerodeploy org list Example output:
text
Organizations:
my-company
personal org create
Create a new organization.
zerodeploy org create <slug>
| Argument | Description |
|---|---|
slug | The slug identifier for the organization (lowercase, hyphens allowed) |
| Option | Description |
|---|---|
--json | Output as JSON for scripting |
bash
zerodeploy org create my-company Example output:
text
Organization created: my-company
id: 019b1234-5678-... The slug is used to reference the organization in all CLI commands.
org delete
Delete an organization. The organization must have no sites before it can be deleted.
zerodeploy org delete [slug] [options]
| Argument | Description |
|---|---|
slug | Organization slug (defaults to config/env) |
| Option | Description |
|---|---|
--org <org> | Organization (defaults to config/env) |
--force | Skip confirmation prompt |
bash
# Delete with confirmation prompt
zerodeploy org delete my-company
# Delete using org from zerodeploy.json
zerodeploy org delete
# Delete without confirmation
zerodeploy org delete my-company --force Note: You must delete all sites in an organization before you can delete the organization.