An organization is the top-level tenant in Compartment. Every project, deployment, and user belongs to exactly one organization. A single Compartment installation can host multiple organizations, which lets you isolate teams, business units, or customers from one another without running separate installations.Documentation Index
Fetch the complete documentation index at: https://docs.compartment.dev/llms.txt
Use this file to discover all available pages before exploring further.
Organization slugs
Each organization has a human-readable slug used in CLI commands and API requests. Slugs must:- contain only lowercase letters (
a–z) and digits (0–9) - separate words with single hyphens (
-) - not start or end with a hyphen
acme, acme-corp, acme-corp-2.
Create an organization
The
--name flag accepts any display name. The derived slug is normalized to lowercase with hyphens. If the automatic slug conflicts with an existing one, use --slug to set it manually.List organizations
To see every organization your account belongs to:Switch between organizations
All CLI commands operate against your currently active organization. To switch to a different one, pass its slug tocompartment org use:
my-company.
Making API requests
When calling the Compartment API directly, include thex-compartment-organization header to identify which organization the request targets:
Multiple organizations on one installation
A single Compartment installation supports many organizations. This is useful for:- Separate teams — keep engineering, data, and platform teams isolated from each other
- Multi-tenant hosting — provision a dedicated organization for each customer
- Environment isolation — use separate organizations for development and production workloads