How to install PowerShell on Mac using Brew

The quickest way to install PowerShell on the Mac is by using the Terminal and the brew package manager.


Steps to install PowerShell on Mac

  1. Open Terminal App.
  2. Now run the brew cask command as below,
    % brew install --cask powershell
    
    ..
    ==> Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.3.
    
    ...
    installer: Package name is PowerShell - 7.3.6
    installer: Installing at base path /
    installer: The install was successful.
    🍺  powershell was successfully installed!
  3. Once the installation is complete, just type pwsh to enter the PowerShell prompt.
    Code2care@Mac % pwsh
    PowerShell 7.3.6
    
    PS /Users/c2ctech> 

Well, that's it! You have PowerShell now running on your Mac!

Installing and Running PowerShell on Mac using Brew Cask

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!