Linux #637
-
How do I install terraform-docs on ubuntu ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @cchacons-tech, Refer to the Pre-compiled Binary section in the Installation section of docs. |
Beta Was this translation helpful? Give feedback.
-
Hello @cchacons-tech,
You can install it via GoLang too if you have Go installed on your machine. The latest version can be installed using go install or go get:
NOTE: please use the latest Go to do this, minimum go1.16 is required. This will put terraform-docs in $(go env GOPATH)/bin. If you encounter the error terraform-docs: command not found after installation then you may need to either add that directory to your $PATH as shown here or do a manual installation by cloning the repo and run make build from the repository which will put terraform-docs in:
You can refer this for more information. |
Beta Was this translation helpful? Give feedback.
Hello @cchacons-tech,
You can install terraform-doc using this script,
Just copy the below code and paste in your terminal.
You can install it via GoLang too if you have Go installed on your machine.
The latest version can be installed using go install or go get:
NOTE: please use the lates…