PowerShell for Mac is PowerShell 7, and the quickest supported way to get it is to download the signed .pkg installer from the PowerShell releases page and open it. When it finishes, open Terminal and run pwsh to start it.
This guide is based on Microsoft's install documentation as it stood in November 2026, when the current long-term support release was PowerShell 7.6. Version numbers move quickly, so check the releases page for the newest build before you download.
Which macOS versions can run PowerShell 7
Microsoft supports PowerShell on a macOS version only while Apple supports that macOS. The documentation lists three:
| macOS version | Processors supported |
|---|---|
| macOS 27 (Golden Gate) | Arm64 (Apple silicon) |
| macOS 26 (Tahoe) | x64 (Intel) and Arm64 |
| macOS 15 (Sequoia) | x64 (Intel) and Arm64 |
Microsoft's page notes that macOS 27 only runs on Apple silicon. To pick the right file, open the Apple menu and choose About This Mac. A chip name starting with "Apple M" means you want the Arm64 package. An Intel processor means x64.
Install PowerShell on Mac with the PKG installer
This is the method Microsoft calls preferred for most users. Beginning with the May 2026 releases, Microsoft notarizes and signs the macOS PKG.
- Go to the PowerShell releases page (
https://aka.ms/powershell-release?tag=stable). - Under the release you want, download the file ending in
osx-arm64.pkgfor Apple silicon orosx-x64.pkgfor Intel. For PowerShell 7.6.6 the Arm64 file ispowershell-7.6.6-osx-arm64.pkg. - Open Finder, find the downloaded file, and double-click it.
- Follow the installer prompts until it reports that the installation finished.
Microsoft's docs list four package lines: 7.4 (LTS), 7.5, 7.6 (LTS) and a 7.7 preview. If you have no reason to pick another, take the latest LTS release.
Start PowerShell on Mac
Open Terminal and run:
pwsh
The prompt changes to start with PS followed by your current folder. Example output (your version and path will differ):
PowerShell 7.6.6
PS /Users/alex>
To confirm which version is running, type $PSVersionTable.PSVersion. Type exit to return to your normal shell.
The command is pwsh because PowerShell 7 renamed the executable from powershell.exe to pwsh. Microsoft made the change so that PowerShell 7 can sit alongside Windows PowerShell. If you installed a preview package, the command is pwsh-preview instead.
Where PowerShell puts its files on macOS
You will want these paths when you customize your setup. They come straight from Microsoft's documentation for the stable and LTS package:
- Install location (
$PSHOME):/usr/local/microsoft/powershell/7/. Preview packages use/usr/local/microsoft/powershell/7-preview/. - Symbolic link:
/usr/local/bin/pwshpoints topwshin the$PSHOMEfolder. - Your profile script:
~/.config/powershell/profile.ps1 - Your modules:
~/.local/share/powershell/Modules - Command history:
~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
PowerShell follows the XDG Base Directory Specification on macOS, which is why these live under ~/.config and ~/.local instead of ~/Library.
Install PowerShell on Mac with Homebrew
If you already use Homebrew, one command installs it:
brew install powershell
There are two caveats from Microsoft's documentation. First, the Homebrew formula is maintained and supported by the Homebrew community, not by Microsoft, and it builds PowerShell from source code instead of installing a package Microsoft built. Second, if you installed PowerShell earlier through the Homebrew cask, you must remove the cask first or the formula install will not succeed:
brew uninstall --cask powershell
brew uninstall --cask powershell-preview
If brew prints Warning: PowerShell is already installed, it's just not linked., run brew link powershell. To update later:
brew update
brew upgrade powershell
Other ways to install it
.NET global tool. If the .NET SDK is already on your Mac, this works:
dotnet tool install --global PowerShell
The installer adds ~/.dotnet/tools to your PATH, but the shell you ran it in does not pick that up. Open a new Terminal window and type pwsh.
Binary archive. This is meant for advanced deployments, and you must install any dependencies yourself. It is also the route Microsoft points to if you need to run PowerShell 7 side by side with an older 7.x release, because newer stable versions replace older ones when installed by package. Microsoft's example for 7.6.6 on Apple silicon:
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.6.6/powershell-7.6.6-osx-arm64.tar.gz
sudo mkdir -p /usr/local/microsoft/powershell/7
sudo tar zxf /tmp/powershell.tar.gz -C /usr/local/microsoft/powershell/7
sudo chmod +x /usr/local/microsoft/powershell/7/pwsh
sudo ln -s /usr/local/microsoft/powershell/7/pwsh /usr/local/bin/pwsh
Change the URL to match your processor and the version you want.
Update and uninstall
With the PKG, Microsoft's instruction for updating is to download the new package and install it. A newer PowerShell 7 package replaces the previous one. Preview releases install side by side with stable releases.
To remove a PKG or archive install, delete the symbolic link and the application folder:
sudo rm -rf /usr/local/bin/pwsh /usr/local/microsoft/powershell
Check that path carefully before you press Enter, because rm -rf does not ask for confirmation. Use sudo rm on any leftover files and folders. For a Homebrew install, use brew uninstall powershell instead.
What works differently on a Mac
PowerShell 7 on macOS is the same language as on Windows, but the operating system underneath is different. The practical effects:
- Windows-only cmdlets are gone. Microsoft's differences page lists cmdlets removed from PowerShell 7, including
Get-WmiObject,Get-EventLogandNew-EventLog. Scripts that rely on them will not run, so look for a CIM-based or cross-platform replacement. - Paths use forward slashes and start at
/.C:\Users\alexbecomes/Users/alex, and~is your home folder. - Your existing macOS commands still work. PowerShell runs native programs such as
ls,gitandcurlas usual. You can mix them with cmdlets such asGet-ChildItemandSelect-Object.
For a starting set of commands that work on every platform, see PowerShell basic commands. If you are moving scripts over from a Windows machine, how to run a .ps1 PowerShell script covers the launch options, and the execution policy article explains the script-blocking setting you may know from Windows.
If it still fails
zsh: command not found: pwsh usually means the install did not finish, or /usr/local/bin is not on your PATH. Check with ls -l /usr/local/bin/pwsh. If the link exists, open a new Terminal window and try again. If it does not, rerun the installer.
If macOS refuses to open the downloaded package, confirm that you downloaded it from the official PowerShell releases page and that the download finished. Installs from Homebrew that fail after an earlier cask install need the cask removed first, as described above.
Frequently asked questions
- Is PowerShell available for Mac?
- Yes. PowerShell 7 is cross-platform and runs on macOS. Microsoft's documentation lists macOS 15 (Sequoia) and macOS 26 (Tahoe) on both Intel (x64) and Apple silicon (Arm64), and macOS 27 on Arm64 only. Windows PowerShell 5.1, the version built into Windows, does not run on a Mac.
- What command starts PowerShell on a Mac?
- Open Terminal and run pwsh. The executable is named pwsh, not powershell. If you installed a preview package, the command is pwsh-preview.
- Should I use the PKG installer or Homebrew?
- Microsoft calls the downloaded package its preferred method for most users, and it is the one Microsoft supports. The Homebrew formula is maintained by the Homebrew community and builds PowerShell from source, so it is a convenience choice if you already manage tools with brew.
- Can I run my Windows PowerShell scripts on a Mac?
- Only if they stick to cross-platform features. Scripts that call Windows-only cmdlets such as Get-WmiObject or Get-EventLog, or that use Windows paths and the registry, will fail on macOS.
- How do I uninstall PowerShell from a Mac?
- If you used the PKG or a binary archive, run sudo rm -rf /usr/local/bin/pwsh /usr/local/microsoft/powershell. If you used Homebrew, run brew uninstall powershell.