PowerShell is an amazing command line, scripting & programming tool that I have used a few times on Microsoft Windows. PowerShell Core is now available for Mac OS and so today I am going to look at installing it on my MacBook.
Note: I am installing PowerShell Core onto Mac OS Mojave (specifically Mac OS 10.14.5).
The recommended approach to install PowerShell Core on Mac OS is to use Homebrew (https://brew.sh/). Homebrew adds additional features to Mac OS that power users will probably find very helpful. For a list of the additional features see https://formulae.brew.sh/formula/
If you do not have Homebrew installed then it can be installed via the following 1 line command in the terminal:
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
I recommend visiting https://brew.sh/ before installing Homebrew.

With Homebrew installed we can ask it to install PowerShell Core using the command:
brew cask install powershell

If Homebrew successfully installs PowerShell it should show a message of a beer and a success message. PowerShell can then be started using the command:
pwsh

And then the PowerShell command prompt will show.






2 responses to “PowerShell Core on Mac OS (PowerShell)”
[…] Core is a version of PowerShell that can be installed on Windows, Mac OS X (I covered it here) and Linux, i.e. Raspbian. For this blog post I am going to using my Raspberry Pi 4 and Raspbian […]
LikeLike
[…] option also works in PowerShell Core for Mac OS X or […]
LikeLike