Skip to content

Linux #637

Closed Answered by nileshgadgi
cchacons-tech asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @cchacons-tech,
You can install terraform-doc using this script,
Just copy the below code and paste in your terminal.

curl -Lo ./terraform-docs.tar.gz https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-$(uname)-amd64.tar.gz
tar -xzf terraform-docs.tar.gz
chmod +x terraform-docs
mv terraform-docs /usr/local/terraform-docs

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:

# go1.17+
go install github.com/terraform-docs/terraform-docs@v0.16.0
# go1.16
GO111MODULE="on" go get github.com/terraform-docs/terraform-docs@v0.16.0

NOTE: please use the lates…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by khos2ow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants