The thothctl check environment command validates the development environment and required tools installation. This command ensures that all necessary tools are installed, accessible, and meet version requirements for infrastructure development workflows.
Usage: thothctl check environment [OPTIONS]
Check development environment and tool installations
Options:
--help Show this message and exit.
thothctl check environment
This validates the current development environment and provides a comprehensive report of tool availability and versions.
The command provides professional Rich-formatted output showing:
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 🔧 Development Environment Check │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
🛠️ Tool Availability
╭───────────────────────────┬──────────────────┬──────────────────┬────────────────────────────────╮
│ Tool │ Status │ Version │ Recommended │
├───────────────────────────┼──────────────────┼──────────────────┼────────────────────────────────┤
│ terraform │ ✅ Available │ 1.6.0 │ 1.6.0 │
│ terragrunt │ ✅ Available │ 0.53.0 │ 0.53.0 │
│ opentofu │ ✅ Available │ 1.6.0 │ 1.6.0 │
│ git │ ✅ Available │ 2.34.1 │ 2.30.0+ │
│ python │ ✅ Available │ 3.11.5 │ 3.8.0+ │
╰───────────────────────────┴──────────────────┴──────────────────┴────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────── Summary ─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✅ Development environment is properly configured │
│ 🛠️ All required tools are available and up to date │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
The command checks for the following tools:
Before starting infrastructure development:
thothctl check environment
Ensures all required tools are properly installed and configured.
In continuous integration environments:
# Validate build environment
thothctl check environment
Confirms the CI environment has all necessary tools for infrastructure operations.
For new team members setting up their development environment:
thothctl check environment
Provides a checklist of required tools and their installation status.
Tool version requirements are defined in version_tools.py as the single source of truth:
TOOL_VERSIONS = {
"terraform": {
"min_version": "1.5.0",
"recommended": "1.6.0",
"install_method": "https://terraform.io/downloads"
},
"terragrunt": {
"min_version": "0.50.0",
"recommended": "0.53.0",
"install_method": "https://terragrunt.gruntwork.io/docs/getting-started/install/"
}
}
Organizations can extend tool validation by:
version_tools.py with custom requirements❌ terraform: Not found in PATH
Solution: Install Terraform following the official installation guide.
⚠️ terraform: 1.4.0 (recommended: 1.6.0)
Solution: Upgrade to the recommended version for optimal compatibility.
❌ terraform: Permission denied
Solution: Ensure proper execution permissions and PATH configuration.
If tools are installed but not found:
# Check PATH configuration
echo $PATH
# Verify tool location
which terraform
If version detection fails:
# Manual version check
terraform version
terragrunt --version
For permission-related issues:
# Check file permissions
ls -la $(which terraform)
# Fix permissions if needed
chmod +x $(which terraform)