Installation
nac is published on PyPI as nac-cli, the command it installs is nac. The recommended way to install it is with uv, which nac also uses to run nac-validate and nac-test:
uv tool install nac-cliA specific version can be installed with uv tool install nac-cli==0.1.0. To upgrade or uninstall nac:
uv tool upgrade nac-cliuv tool uninstall nac-cliPrerequisites
Section titled “Prerequisites”- uv:
nacuses it to runnac-validateandnac-test, which therefore don’t have to be installed separately. It is only optional if both are already installed locally in versions that satisfy their constraints (see Tool Versions). terraformortofuon thePATH: if neither is installed,nac setupcan download OpenTofu (see Tool Versions).- tenv: only required if a specific Terraform or OpenTofu version is pinned with
tools.terraform.versioninnac.yaml.
nac setup verifies these prerequisites, as well as the environment variables listed in nac.yaml:
nac setup