Environment → Create
AI-generatedSummary
Creates a new CloudCLI environment with specified name, subdomain, and optional GitHub repository details
Inputs
- name (required) — Environment name (1-50 characters)
- subdomain (required) — Environment subdomain (3-30 characters, lowercase alphanumeric and hyphens)
- githubUrl — Optional GitHub repository URL to clone
- githubToken — GitHub personal access token for private repositories
Output shape
environment record (JSON object) returned on success
Success returns the created environment details; errors may include an error field with message and response details
Examples
Example 1: Create a new development environment with a linked GitHub repo
Name: My Backend API; Subdomain: mybackend-abc123; GitHub URL: https://github.com/username/repo; GitHub Token:
Example 2: Create a new environment without specifying GitHub URL or token
Name: TestEnv; Subdomain: testenv-001; GitHub URL: (empty); GitHub Token: (empty); Operation: create