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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap