Organizations

Organizations are containers for your sites. Each site belongs to exactly one organization.

org list

List all organizations you own.

OptionDescription
--jsonOutput 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>

ArgumentDescription
slugThe slug identifier for the organization (lowercase, hyphens allowed)
OptionDescription
--jsonOutput 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]

ArgumentDescription
slugOrganization slug (defaults to config/env)
OptionDescription
--org <org>Organization (defaults to config/env)
--forceSkip 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.