The document command in ThothCTL provides tools to automatically generate documentation for your projects. It helps maintain up-to-date documentation that accurately reflects your codebase, saving time and ensuring consistency.
The document command helps developers and teams to:
Currently, ThothCTL supports the following document subcommands:
iac - Generate documentation for Infrastructure as Code resources (Terraform, Terragrunt)# Generate documentation for Terraform code
thothctl document iac -f terraform
# Generate documentation for Terragrunt code
thothctl document iac -f terragrunt
# Generate documentation recursively
thothctl document iac -f terraform --recursive
| Option | Description |
|---|---|
-f, --framework |
Specify the IaC framework to document (terraform, terragrunt, terraform-terragrunt) |
--recursive |
Generate documentation recursively for all modules/components |
--config-file |
Path to a custom configuration file for the documentation generator |
For more detailed information about documenting Infrastructure as Code, see the IaC Documentation page.