opentofu

cli

Supported platforms: darwin, linux.

Install

skt install opentofu@<version> --json

Source

Type
cli
Checksum style
combined
Download URL
https://github.com/opentofu/opentofu/releases/download/v{version}/{download_file}
Checksum URL
https://github.com/opentofu/opentofu/releases/download/v{version}/{checksum_file}

Recipe TOML

name = "opentofu"
type = "cli"

# OpenTofu replaces Terraform; the binary inside the tar.gz is `tofu`.
# Asset version has no leading v; checksum file is tofu_<v>_SHA256SUMS.
[platform.linux]
download-file = "tofu_{version}_{os}_{arch}.tar.gz"
checksum-file = "tofu_{version}_SHA256SUMS"
exe-path = "tofu"

[platform.darwin]
download-file = "tofu_{version}_{os}_{arch}.tar.gz"
checksum-file = "tofu_{version}_SHA256SUMS"
exe-path = "tofu"

[install]
download-url = "https://github.com/opentofu/opentofu/releases/download/v{version}/{download_file}"
checksum-url = "https://github.com/opentofu/opentofu/releases/download/v{version}/{checksum_file}"
checksum-style = "combined"

[resolve]
git-url = "https://github.com/opentofu/opentofu"
version-pattern = "^v((?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+))$"