Skip to content

Commit

Permalink
chore: Revert doc changes since flag is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
mutahhir committed Jul 14, 2023
1 parent d710f6f commit 23ebd5b
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions website/docs/cdktf/cli-reference/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down

0 comments on commit 23ebd5b

Please sign in to comment.