Skip to content

Commit

Permalink
Merge pull request #19 from tofuutils/docs/tofuenv-auto-install
Browse files Browse the repository at this point in the history
docs: add TOFUENV_AUTO_INSTALL example usage
  • Loading branch information
anastasiiakozlova245 authored Jan 2, 2024
2 parents 97dacb4 + abeac3a commit 1b71572
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,17 @@ String (Default: true)

Should tofuenv automatically install tofu if the version specified by defaults or a .opentofu-version file is not currently installed.

Example: if auto installation is enabled, the version will be installed.
```console
TOFUENV_AUTO_INSTALL=true tofu use <version that is not yet installed>
```

Example: use 1.6.0-beta3 version that is not installed, and auto installation is disabled.
```console
$ TOFUENV_AUTO_INSTALL=false tofuenv use 1.6.0-beta3
No installed versions of opentofu matched '^1.6.0-beta3$'. TOFUENV_AUTO_INSTALL is set to false, so exiting.
```

##### `TOFUENV_CURL_OUTPUT`

Integer (Default: 2)
Expand Down

0 comments on commit 1b71572

Please sign in to comment.