[Documentation] Add script to verify OpenTofu installation (#1706)

Signed-off-by: Nil <nilgallego@pm.me>
This commit is contained in:
Nil Gàllego 2024-06-06 12:35:49 +02:00 committed by GitHub
parent 64fb36dc54
commit a460475c81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1 @@
tofu -version

View File

@ -7,9 +7,14 @@ description: |-
import CodeBlock from '@theme/CodeBlock';
import BrewScript from '!!raw-loader!./examples/brew-install.sh'
import ValidateInstall from '!!raw-loader!./examples/verify-installation.sh'
# Installing OpenTofu via Homebrew
You can use OpenTofu as a [standalone binary](standalone.mdx) or you can install it using [Homebrew](https://formulae.brew.sh/formula/opentofu). OpenTofu is available in the Homebrew Core repository, so you can install it by running:
<CodeBlock language={"bash"}>{BrewScript}</CodeBlock>
Validate the installation by running:
<CodeBlock language={"bash"}>{ValidateInstall}</CodeBlock>