| name | tfdc-guide-module-dev |
| description | Fetch the Terraform module development guide using tfdc. Use when you need guidance on building, structuring, publishing, or refactoring Terraform modules. Supports fetching specific sections like composition, structure, or providers. |
tfdc guide module-dev
Fetch the Terraform module development guide from HashiCorp docs.
Usage
tfdc guide module-dev [-section all] [-format text]
Flags
| Flag | Required | Default | Description |
|---|
-section | No | all | Section to fetch (see below) |
-format | No | text | Output format: text, json, markdown |
Sections
| Section | Description |
|---|
all | Fetch all sections concatenated |
index | Overview and introduction |
composition | Module composition patterns |
structure | Directory and file structure |
providers | Provider configuration in modules |
publish | Publishing modules to the registry |
refactoring | Refactoring and versioning modules |
Examples
tfdc guide module-dev
tfdc guide module-dev -section structure
tfdc guide module-dev -section composition -format json
JSON output
{
"id": "module-dev/structure",
"content": "# Module Structure\n\n...",
"content_type": "text/markdown"
}
When -section all is used, the id field is "module-dev".