terraform
Terraform CLI
Subcommands
Name | Description |
---|---|
init | Prepare your working directory for other commands |
validate | Check whether the configuration is valid |
plan | Show changes required by the current configuration |
apply | Create or update infrastructure |
destroy | Destroy previously-created infrastructure |
console | Try Terraform expressions at an interactive command prompt |
fmt | Reformat your configuration in the standard style |
force-unlock | Release a stuck lock on the current workspace |
get | Install or upgrade remote Terraform modules |
graph | Generate a Graphviz graph of the steps in an operation |
import | Associate existing infrastructure with a Terraform resource |
login | Obtain and save credentials for a remote hos |
logout | Remove locally-stored credentials for a remote host |
output | Show output values from your root module |
providers | Show the providers required for this configuration |
refresh | Update the state to match remote systems |
show | Show the current state or a saved plan |
state | Advanced state management |
taint | Mark a resource instance as not fully functional |
untaint | Remove the 'tainted' state from a resource instance |
workspace | Workspace management |
-install-autocomplete | Install bash/zsh tab completion |
-uninstall-autocomplete | Uninstall bash/zsh tab completion |
Options
Name | Description |
---|---|
-help | Show this help output, or the help for a specified subcommand |
-chdir <arg> | Switch to a different working directory before executing the given subcommand |
-version | Show the current Terraform version |