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

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.

主站蜘蛛池模板: 揭阳市| 宜君县| 辛集市| 葫芦岛市| 漳浦县| 金塔县| 沾益县| 清流县| 定兴县| 饶阳县| 酉阳| 科技| 晋州市| 长宁县| 南京市| 雷山县| 珠海市| 凭祥市| 临汾市| 峨山| 筠连县| 高阳县| 正阳县| 马关县| 新沂市| 洛阳市| 绥德县| 额济纳旗| 宁夏| 方城县| 清原| 黔江区| 吴忠市| 青岛市| 莱芜市| 潢川县| 济南市| 静宁县| 辰溪县| 峨眉山市| 楚雄市|