The Commvault provider resources are managed using a single primary command called Terraform. This primary command is used along with sub-commands.
The following table lists the sub-commands that are commonly used in the Commvault Terraform module.
terraform init command is used to initialize a working directory that contains the Terraform configuration file (.tf). This is the first command that is run after writing a new Commvault provider configuration. You can run this command more than once.
terraform init [options] [DIR]
terraform plan command is used to create an execution plan. This command performs a refresh, checks the state of the resources, and provides information about the actions that will be performed on the resources.
terraform plan [options] [dir]
terraform apply command is used to apply the changes (such as create and delete) to the resources in the configuration file.
terraform apply [options] [dir-or-plan]
To view a complete list of Terraform commands, in the Windows command prompt, run the following command:
To view help for a specific command, in the Windows command prompt, run the following command:
terraform <sub-command> -h
For detailed information about Terraform commands, go to the Terraform documentation website.