Listing Spaces¶
The thothctl list spaces command allows you to view all spaces that are managed by ThothCTL. This helps you understand how your projects are organized and which spaces are available for new projects.
Command Syntax¶
Options¶
| Option | Description |
|---|---|
--help |
Show help message and exit |
Basic Usage¶
Listing All Spaces¶
To list all spaces managed by ThothCTL:
Example output:
๐ Space List
โโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SpaceName โ Projects โ Description โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ ๐ dev โ 3 projects โ Development environment โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ staging โ 2 projects โ Staging environment โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ production โ 1 projects โ Production environment โ
โโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Understanding the Output¶
The space list output includes the following information:
- SpaceName: The name of the space
- Projects: The number of projects associated with the space
- Description: A description of the space's purpose
Spaces are marked with a globe icon (๐) to indicate they are spaces managed by ThothCTL.
Filtering Spaces¶
While ThothCTL doesn't provide built-in filtering options for the list command, you can combine it with standard command-line tools to filter the output:
# List spaces and filter by name using grep
thothctl list spaces | grep "dev"
# List spaces with specific project counts
thothctl list spaces | grep "0 projects"
Use Cases¶
Space Management¶
Use the list command to maintain an overview of all your spaces:
Space Organization¶
Identify which spaces have many or few projects:
Space Cleanup¶
Identify empty spaces that might need cleanup:
Team Collaboration¶
Share information about available spaces with team members:
Best Practices¶
- Regular Review: Periodically review your space list to identify unused or outdated spaces
- Meaningful Descriptions: Ensure each space has a clear and meaningful description
- Logical Organization: Group related projects within appropriate spaces
- Clean Up: Remove spaces that are no longer needed using the
remove spacecommand
Related Commands¶
thothctl init space- Create a new spacethothctl remove space- Remove an existing spacethothctl init project --space <space-name>- Create a project in a specific space