Installing PowerShell on macOS

PowerShell Core 6 supports macOS 10.2 and beyond.

There exist different ways to bring PowerShell to your system, the easiest setup is most likely to install it via homebrew, as most macOS users are using it as their favorite package manager.

Once brew is installed, open a terminal window and run:

brew cask install powershell

This command will install the latest version of PowerShell on your Mac.
You can run (now and in future) the following command to keep your installation up to date:

brew update brew cask upgrade powershell

That’s it! Run the following command in your terminal window to run PowerShell:

This will open the PowerShell environment on your macOS machine:

I’m not using the built-in terminal but “ iTerm2”, which is a useful terminal replacement.

In your opened PowerShell terminal instance you can type in:

$PSVersionTable
Image for post
Image for post

Read more posts by this author

Originally published at https://jeannot-muller.com on December 25, 2019.

Written by

Managing director at teccompanion.com, physician, founder, developer and blogger.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store