How to install PowerShell core on MacOS
NOTE: Original instructions are here, I have just duplicated here for easy access.
How to install
Do the following from the macOS console:
Install Homebrew. If you dont already have it, run this:
Install Homebrew-Cask so future installations of software via brew is much nicer.
Now you can install PowerShell by running:
You can be sure it is working by running:
This should give you the powershell prompt and away you go!
How to upgrade
Run the following from the console:
That should do it.
How to re-install
If for whatever reason you want to reinstall PowerShell use:
How to remove
If you are nuts and want to remove PowerShell from macOS run:
Last updated