Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pgebert/powershell-terraform-aliases
:octocat: Oh My Zsh's Terraform aliases for PowerShell.
https://github.com/pgebert/powershell-terraform-aliases
alias oh-my-posh oh-my-zsh powershell terminal terraform windows
Last synced: 1 day ago
JSON representation
:octocat: Oh My Zsh's Terraform aliases for PowerShell.
- Host: GitHub
- URL: https://github.com/pgebert/powershell-terraform-aliases
- Owner: pgebert
- License: mit
- Created: 2023-11-16T09:15:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-20T18:37:31.000Z (about 1 year ago)
- Last Synced: 2025-01-18T08:09:58.603Z (11 days ago)
- Topics: alias, oh-my-posh, oh-my-zsh, powershell, terminal, terraform, windows
- Language: PowerShell
- Homepage: https://www.powershellgallery.com/packages/terraform-aliases
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform aliases for PowerShell
[![license](https://img.shields.io/github/license/pgebert/powershell-terraform-aliases.svg?style=flat-square)](./LICENSE)
[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/terraform-aliases.svg?style=flat-square)](https://www.powershellgallery.com/packages/terraform-aliases/)
[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/terraform-aliases.svg?style=flat-square)](https://www.powershellgallery.com/packages/terraform-aliases/)A [PowerShell](https://microsoft.com/powershell) module that provides partial **[Terraform](https://www.terraform.io/)** aliases from [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh)'s [terraform plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/terraform).
> âšī¸ This module will replace some built-in PowerShell aliases with our Terraform aliases to **prevent** conflicts.
## đģ Prerequisite
â Installed [terraform-cli](https://developer.hashicorp.com/terraform/install)
## âī¸ Installation
Install from [PowerShell Gallery](https://www.powershellgallery.com/packages/terraform-aliases/) using the following powershell command:
```powershell
Install-Module terraform-aliases -Scope CurrentUser -AllowClobber
```Add below command into your `PowerShell profile` file:
```powershell
Import-Module terraform-aliases -DisableNameChecking
```Restart your powershell and now you can use terraform aliases. đ
## đ Additional notes
If you haven't allowed script execution policy, set your script execution policy to `RemoteSigned` or `Unrestricted`.
```powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
```If you don't have PowerShell profile yet, create it with below command!
```powershell
New-Item -ItemType File $profile
```## đ Supported Aliases
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` |# Miscellaneous
## đ¤ Contributing
Contributions, [issues](https://github.com/pgebert/powershell-terraform-aliases/issues) and feature requests are welcome!
## Show your support
Give a âī¸ if this project helped you!
## đ License
Copyright Š 2023 [pgebert](https://github.com/pgebert).
This project is licensed under [MIT](https://github.com/pgebert/powershell-terraform-aliases/blob/main/LICENSE).