A PowerShell module that provides partial Terraform aliases from Oh My Zsh's terraform plugin.
ℹ️ This module will replace some built-in PowerShell aliases with our Terraform aliases to prevent conflicts.
✔ Installed terraform-cli
Install from PowerShell Gallery using the following powershell command:
Install-Module terraform-aliases -Scope CurrentUser -AllowClobber
Add below command into your PowerShell profile
file:
Import-Module terraform-aliases -DisableNameChecking
Restart your powershell and now you can use terraform aliases. 🚀
If you haven't allowed script execution policy, set your script execution policy to RemoteSigned
or Unrestricted
.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
If you don't have PowerShell profile yet, create it with below command!
New-Item -ItemType File $profile
The following aliases are currently implemented:
Alias | Command |
---|---|
tf |
terraform |
tfa |
terraform apply |
tfc |
terraform console |
tfd |
terraform destroy |
tff |
terraform fmt |
tfg |
terraform graph |
tfim |
terraform import |
tfi |
terraform init |
tfo |
terraform output |
tfp |
terraform plan |
tfpr |
terraform providers |
tfr |
terraform refresh |
tfsh |
terraform show |
tft |
terraform taint |
tfut |
terraform untaint |
tfv |
terraform validate |
tfw |
terraform workspace |
tfs |
terraform state |
tffu |
terraform force-unlock |
tfwst |
terraform workspace select |
tfwsw |
terraform workspace show |
tfssw |
terraform state show |
tfwde |
terraform workspace delete |
tfwls |
terraform workspace list |
tfsls |
terraform state list |
tfwnw |
terraform workspace new |
tfsmv |
terraform state mv |
tfspl |
terraform state pull |
tfsph |
terraform state push |
tfsrm |
terraform state rm |
tfay |
terraform apply -auto-approve |
tfdy |
terraform destroy -auto-approve |
tfinu |
terraform init -upgrade |
tfpde |
terraform plan --destroy |
Contributions, issues and feature requests are welcome!
Give a ⭐️ if this project helped you!
Copyright © 2023 pgebert.
This project is licensed under MIT.