diff --git a/website/docs/cdktf/cli-reference/commands.mdx b/website/docs/cdktf/cli-reference/commands.mdx index 6d53b48288..f5d2ef2b0b 100644 --- a/website/docs/cdktf/cli-reference/commands.mdx +++ b/website/docs/cdktf/cli-reference/commands.mdx @@ -91,25 +91,24 @@ cdktf convert Converts a single file of HCL configuration to CDK for Terraform. Takes the file to be converted on stdin. Options: - --version Show version number [boolean] - --disable-plugin-cache-env Dont set TF_PLUGIN_CACHE_DIR automatically. This is useful when the plugin cache is configured differently. Supported using the env - CDKTF_DISABLE_PLUGIN_CACHE_ENV. [boolean] [default: false] - --log-level Which log level should be written. Only supported via setting the env CDKTF_LOG_LEVEL [string] - --language [choices: "typescript", "python", "csharp", "java", "go"] [default: "typescript"] - --provider The conversion needs to know which providers are used in addition to the ones in your cdktf.json file. We search for a cdktf.json below your - current working directory. [array] [default: []] - --stack Wrap the generated code within a stack class [boolean] [default: false] - --without-project Convert creates a temporary project by default on non-Typescript languages. Use this flag to disable that behavior. Note: Disabling this will - cause conversion to be less correct [boolean] [default: false] - -h, --help Show help [boolean] + --version Show version number [boolean] + --disable-plugin-cache-env Dont set TF_PLUGIN_CACHE_DIR automatically. This is useful when the plugin cache is configured differently. Supported using the + env CDKTF_DISABLE_PLUGIN_CACHE_ENV. [boolean] [default: false] + --log-level Which log level should be written. Only supported via setting the env CDKTF_LOG_LEVEL [string] + --language [choices: "typescript", "python", "csharp", "java"] [default: "typescript"] + --provider The conversion needs to know which providers are used in addition to the ones in your cdktf.json file. We search for a + cdktf.json below your current working directory. [array] [default: []] + --stack Wrap the generated code within a stack class [boolean] [default: false] + -h, --help Show help [boolean] Examples: - cat main.tf | cdktf convert --provider integrations/github Takes the HCL content of main.tf and converts it to CDK for Terraform content and - prints it - cat main.tf | cdktf convert --provider hashicorp/aws > imported.ts Takes the HCL content of main.tf and converts it to CDK for Terraform content in - imported.ts - cat main.tf | cdktf convert --provider 'hashicorp/aws@ ~>3.62.0' 'integrations/github@ Takes the HCL content of main.tf and converts it to CDK for Terraform content in - ~>4.16.0' --language python > imported.py imported.py + cat main.tf | cdktf convert --provider integrations/github Takes the HCL content of main.tf and converts it to CDK for Terraform content + and prints it + cat main.tf | cdktf convert --provider hashicorp/aws > imported.ts Takes the HCL content of main.tf and converts it to CDK for Terraform content + in imported.ts + cat main.tf | cdktf convert --provider 'hashicorp/aws@ ~>3.62.0' Takes the HCL content of main.tf and converts it to CDK for Terraform content + 'integrations/github@ ~>4.16.0' --language python > imported.py in imported.py + ``` **Examples**