Terraform profiles a CLI to help developer run setup cloud infrastructure from terminal. Some of basic cli you need to remember and also the steps to setup a infra:
terraform init: initialize working directories and download necessary modules, packages.terraform plan: create an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure.terraform apply: executes the actions proposed in a Terraform plan.terraform destroy: destroy all remote objects managed by a particular Terraform configuration.Install CLI: HashiCorp distributes Terraform as a binary package. You can also install Terraform using popular package managers
Manual Installation:
Retrieve the terraform binary by downloading a pre-compiled binary or compiling it from source.
Move the Terraform binary to bin folder so you can execute command without specifying a path.
$ mv ~/Downloads/terraform /usr/local/bin/
$ terraform -help
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.