更新时间:2023-05-23 GMT+08:00
分享

命令行说明

Terraform 支持丰富的命令行操作,本文档仅介绍一些常用的命令, 您可以通过 "terraform" 命令查看完整的命令列表。对于特定的子命令,可以通过 -h / --help 选项获取完整的用法。

$ terraform
Usage: terraform [-version] [-help] <command> [args]

The available commands for execution are listed below.
The most common, useful commands are shown first, followed by
less common or more advanced commands. If you're just getting
started with Terraform, stick with the common commands. For the
other commands, please read the help and docs before usage.
...

$ 
terraform init -h
Usage: terraform init [options] [DIR]

  Initialize a new or existing Terraform working directory by creating
  initial files, loading any remote state, downloading modules, etc.

  This is the first command that should be run for any new or existing
  Terraform configuration per machine. This sets up all the local data
  necessary to run Terraform that is typically not committed to version
  control.
...
分享:

    相关文档

    相关产品