# Install tenv with Homebrew, apk, MacPorts, Nix, scoop, winget, apt

OpenTofu / Terraform / Terragrunt / Terramate / Atmos version manager. Version 4.14.8 via Homebrew; verified 2026-06-11.

## Install

```sh
sudo av install brew:tenv
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tenv
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tenv
```

  Evidence: MacPorts ports tree: sysutils/tenv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add tenv
```

  Evidence: Alpine Linux edge package indexes: tenv from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#tenv
```

  Evidence: nixpkgs package indexes: pkgs/by-name/te/tenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Ubuntu apt (92%):

```sh
sudo apt install tf
```

  Evidence: Ubuntu 24.04 LTS package indexes: tf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

### Windows

- Scoop (92%):

```sh
scoop install main/tenv
```

  Evidence: Scoop official bucket manifest trees: bucket/tenv.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Tofuutils.Tenv -e
```

  Evidence: Windows Package Manager source index: Tofuutils.Tenv from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:tenv
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tenv>
- **Version:** 4.14.8
- **Source summary:** OpenTofu / Terraform / Terragrunt / Terramate / Atmos version manager
- **Homepage:** <https://tofuutils.github.io/tenv/>
- **Repository:** <https://github.com/tofuutils/tenv>
- **Upstream docs:** <https://tofuutils.github.io/tenv>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/tofuutils/tenv/archive/refs/tags/v4.14.8.tar.gz>
- **Last updated:** 2026-06-11T00:46:32Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- tenv (cli)
- terramate (cli)
- tf (cli)
- tenv (alias)
- terramate (alias)
- tf (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.14.8
- Package-manager updated: 2026-06-11
- Local data: ok
- Upstream repository: https://github.com/tofuutils/tenv
- Upstream latest detected: v4.14.8 (current)
## Project history and usage

tenv is a Go version manager for OpenTofu, Terraform, Terragrunt, Terramate, and Atmos. Its README describes it as a successor to tofuenv and tfenv, with extra infrastructure-as-code awareness and cross-platform binary distribution.

### Project history

The GitHub repository was created in January 2024, shortly after OpenTofu became a prominent Terraform-compatible tool. The project consolidated separate environment-manager patterns for Terraform and OpenTofu into one executable that also manages adjacent tools used in IaC workflows.

### Adoption history

The official README documents broad package availability across Homebrew, MacPorts, Nix, Scoop, WinGet, Chocolatey, Snap, Alpine, Debian/Ubuntu, RedHat, Arch/AUR, Cloudsmith repositories, and Docker. The supplied package metadata also records Homebrew, apk, MacPorts, Nix, Scoop, Ubuntu, and WinGet entries.

### How it is used

Users run `tenv <tool> <command>` to install, use, detect, reset, uninstall, and list versions for OpenTofu, Terraform, Terragrunt, Terramate, and Atmos. The docs emphasize version files, HCL-based required-version detection, semver constraints, signature verification, and compatibility with tfenv and tofuenv command habits.

### Why package nerds care

tenv is significant for package nerds because it sits at the junction of packaging, IaC reproducibility, and the Terraform-to-OpenTofu transition. It offers one binary with package-manager-friendly releases, shell completions, version-file conventions, checksum and signature checks, and aliases that preserve older tfenv/tofuenv workflows.

### Timeline

- 2024-01-05: GitHub repository created.
- 2024-01-23: v1.0.4 release published.
- 2024-05-14: v1.11.0 release published.
- 2026-04-29: v4.12.0 release published.
- 2026-06-10: v4.14.8 release published.

### Related projects

- The README explicitly identifies tofuenv and tfenv as predecessors, compares tenv with asdf, and targets OpenTofu, Terraform, Terragrunt, Terramate, and Atmos.

### Sources

- <https://api.github.com/repos/tofuutils/tenv>
- <https://api.github.com/repos/tofuutils/tenv/releases>
- <https://github.com/tofuutils/tenv#readme>
- <https://tofuutils.github.io/tenv>
- source_facts.package-manager


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ${HOME}/.tenv/remote.yaml, ${HOME}/.tenv/OpenTofu/version, ${HOME}/.tenv/Terraform/version, ${HOME}/.tenv/Terragrunt/version, ${HOME}/.tenv/Terramate/version, ${HOME}/.tenv/Atmos/version, ./.opentofu-version, ./.terraform-version, ./.tfswitchrc, ./.terragrunt-version, ./.tgswitchrc, ./.terramate-version, ./.atmos-version, ./.tool-versions
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tenv
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** atmos, opentofu, terragrunt, terramate, tfenv, tgenv, tofuenv
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - tenv: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/tenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - tenv - 4.12.2-r0: normalized package name match | Alpine Linux edge package indexes: tenv from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | OpenTofu, Terraform, Terragrunt, and Atmos version manager | https://github.com/tofuutils/tenv
- apk - tenv-bash-completion - 4.12.2-r0: normalized package name match | Alpine Linux edge package indexes: tenv-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for tenv | https://github.com/tofuutils/tenv
- apk - tenv-fish-completion - 4.12.2-r0: normalized package name match | Alpine Linux edge package indexes: tenv-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for tenv | https://github.com/tofuutils/tenv
- apk - tenv-zsh-completion - 4.12.2-r0: normalized package name match | Alpine Linux edge package indexes: tenv-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for tenv | https://github.com/tofuutils/tenv
- MacPorts - tenv: normalized package name match | MacPorts ports tree: sysutils/tenv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/tenv: normalized package name match | Scoop official bucket manifest trees: bucket/tenv.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Tofuutils.Tenv: normalized package name match | Windows Package Manager source index: Tofuutils.Tenv from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - tf: installed executable or alias match | MacPorts ports tree: net/tf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - terramate: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/te/terramate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Nix - tf: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/tf/tf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tf - 1:4.0s1-21.1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: tf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tinyfugue MUD client for TinyMUDs, DikuMUDs, and LPMUDs
- Scoop - main/tf: installed executable or alias match | Scoop official bucket manifest trees: bucket/tf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Terramate.CLI: installed executable or alias match | Windows Package Manager source index: Terramate.CLI from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [tfenv](https://www.automicvault.com/pkg/brew/tfenv/) - Shares av.db curated category or tags: cli, developer-tools, terraform, version-management, version-manager.
- [tgenv](https://www.automicvault.com/pkg/brew/tgenv/) - Shares av.db curated category or tags: cli, developer-tools, terragrunt, version-management, version-manager.
- [fnm](https://www.automicvault.com/pkg/brew/fnm/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [proto](https://www.automicvault.com/pkg/brew/proto/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [rbenv](https://www.automicvault.com/pkg/brew/rbenv/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [swiftly](https://www.automicvault.com/pkg/brew/swiftly/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [uru](https://www.automicvault.com/pkg/brew/uru/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [vfox](https://www.automicvault.com/pkg/brew/vfox/) - Shares av.db curated category or tags: cli, developer-tools, version-management, version-manager.
- [tofuenv](https://www.automicvault.com/pkg/brew/tofuenv/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, manager, opentofu.

## Combined YAML source

View the package source record on GitHub. [combined/tenv.yml](https://github.com/automic-vault/db/blob/main/combined/tenv.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
