Init Space Command¶
Overview¶
The init space command creates and configures workspaces (spaces) for organizing multiple ThothCTL projects.
Usage¶
# Create new space
thothctl init space --name "production" --description "Production environment"
# List existing spaces
thothctl list spaces
# Initialize project in space
thothctl init project --space production --name web-app
Features¶
- Space Management: Create isolated workspaces
- Project Organization: Group related projects
- Environment Separation: Separate dev, staging, production
- Access Control: Manage space permissions
- Configuration Isolation: Independent space settings
Space Structure¶
~/.thothcf/
├── spaces.toml # Space configurations
├── .thothcf.toml # Global projects
└── spaces/
├── production/ # Production space
├── staging/ # Staging space
└── development/ # Development space
Examples¶
Create Production Space¶
thothctl init space --name "production" \
--description "Production infrastructure projects" \
--vcs-provider "github"
Create Development Space¶
List All Spaces¶
Related Commands¶
init project- Initialize projectslist spaces- List available spacesremove space- Remove spaces