When to use
- User wants to create a new organization for a team or client
- Setting up a new workspace before creating projects and deploying use cases
- Automating org provisioning via scripts or agents
Prerequisites
codikaCLI installed and authenticated- Personal key (
ckp_) or admin key (cka_) withorganizations:createscope
Command
Options
| Option | Required | Description | Default |
|---|---|---|---|
--name <name> | Yes | Organization name (2-100 characters) | — |
--description <desc> | No | Organization description | — |
--size <size> | No | Organization size | — |
--logo <path> | No | Path to a logo image file (JPEG, PNG, or WebP, max 5MB). Uploaded to platform storage. | — |
--n8n-base-url <url> | No | Self-hosted n8n instance URL | Platform default |
--n8n-api-key <key> | No | Self-hosted n8n API key | Platform default |
--store-credential-copy | No | Store encrypted credential backup in Codika (only with self-hosted n8n) | false |
--api-url <url> | No | Override API URL | — |
--api-key <key> | No | Override API key | — |
--profile <name> | No | Use a specific profile instead of the active one | — |
--json | No | JSON output | — |
Size values
solo, 2-10, 11-50, 51-200, 201-1000, 1000+
Behavior
- If
--logois provided, reads the file, base64-encodes it, and sends it to the API for upload to platform storage - Calls the Codika platform API to create the organization
- The authenticated user becomes the organization owner
- Initializes free plan credits and n8n secrets
- If self-hosted n8n flags are provided, validates the credentials before creating
Examples
Output
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | API error (auth, network, server) |
2 | CLI validation error (e.g., missing --name) |