opentofu/website/docs/intro/install.mdx
Kuba Martin fb81566cdd
Add installation instructions. ()
Signed-off-by: Jakub Martin <kubam@spacelift.io>
2023-10-16 14:48:29 +02:00

46 lines
1.2 KiB
Plaintext

---
sidebar_position: 1
description: |-
Learn how to install OpenTofu.
---
# Installing OpenTofu
## Installing via direct download
The most direct method to install OpenTofu is to download it from GitHub releases. Each GitHub release has an Assets section, where you can find the `zip` archive for your platform and download it.
Once you download a zip archive from there, you can unzip it and move the `tofu` binary into your $PATH, e.g. into `/usr/local/bin` on many Unix operating systems.
You could, for example, run these commands:
```bash
wget https://github.com/opentofu/opentofu/releases/download/v1.6.0-alpha2/tofu_1.6.0-alpha2_darwin_arm64.zip
unzip tofu_1.6.0-alpha2_darwin_arm64.zip
mv tofu /usr/local/bin/tofu
```
to install OpenTofu on an arm64 MacOS system.
You can find the latest GitHub release of OpenTofu [here](https://github.com/opentofu/opentofu/releases/latest).
## Installing on MacOS
### Homebrew
OpenTofu is available in the Homebrew Core repository, so you can install it by running:
```bash
brew install opentofu
```
## Installing on Linux
### Installing on Ubuntu (Snapcraft)
If you're on Ubuntu and using Snapcraft you can install OpenTofu by running:
```bash
snap install opentofu
```