To install PowerShell, perform the following steps:
To install PowerShell on MacOS, perform the following steps:
Download the executable file:
Run the executable file.
sudo installer -pkg powershell-7.3.6-osx-x64.pkg -target /
For more information, see here.
To install PowerShell on Ubuntu, perform the following steps:
Download the Ubuntu executable package from here.
Run the following command to install the downloaded package.
sudo dpkg -i powershell-lts_7.2.13-1.deb_amd64.deb
Run the following command to resolve the missing dependencies if needed.
sudo apt-get install -f
Run the following command to verify the installation:
terraform -version
For more information, see here.
To install PowerShell on Windows, perform the following steps:
Download the PowerShell Windows executable file:
Run the PowerShell Windows executable file.
For more information, see here.