官术网_书友最值得收藏!

Installing Terraform by script on Windows

If we use Windows, we can use Chocolatey, which is a free public package manager, such as NuGet or npm, but dedicated to software; it is widely used for the automation of software on Windows servers or even local machines.


The Chocolatey official website is here:  https://chocolatey.org/, and its installation documentation is at  https://chocolatey.org/install.

Once Chocolatey is installed, we just need to run the following command in PowerShell or in the CMD tool:

choco install terraform -y

The following is a screenshot of the Terraform installation for Windows with Chocolatey:

Executing the choco install terraform command installs the latest version of Terraform from Chocolatey.

Once installed, we can check the Terraform version by running the following command:

terraform version

This command displays the installed Terraform version.

We can also check out the different commands that Terraform offers by running the following command:

terraform --help

The following screenshot lists the different commands and their functions:


Let's now look at the installation of Terraform on macOS.

主站蜘蛛池模板: 龙陵县| 长宁县| 上饶县| 潮州市| 博白县| 长葛市| 郴州市| 确山县| 平度市| 鹤岗市| 陆良县| 宁远县| 嘉兴市| 本溪市| 稷山县| 咸阳市| 清新县| 淳安县| 周至县| 平度市| 中超| 荥经县| 武陟县| 辛集市| 胶州市| 西青区| 安义县| 威海市| 宜川县| 论坛| 洮南市| 横峰县| 灵璧县| 合山市| 阿拉尔市| 南漳县| 岑溪市| 无棣县| 三门县| 徐州市| 潼南县|