powershell

Install command:
brew install powershell

Command-line shell and scripting language

https://github.com/PowerShell/PowerShell

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/powershell.json

Formula code: powershell.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
Linux ARM64
x86_64

Current versions:

stable 7.5.4

Depends on:

dotnet@9 9.0.115 .NET Core
CurrentUser configs are at:
    ~/.local/share/powershell/
CurrentUserAllHosts configs are at:
    ~/.config/powershell/

To use Homebrew in PowerShell, run:
    New-Item -Path (Split-Path -Parent -Path $PROFILE.CurrentUserAllHosts) -ItemType Directory -Force
    Add-Content -Path $PROFILE.CurrentUserAllHosts -Value '$($HOMEBREW_PREFIX/bin/brew shellenv) | Invoke-Expression'

To add Homebrew pwsh completions see: https://docs.brew.sh/Shell-Completion#configuring-completions-in-pwsh

Analytics:

Installs (30 days)
powershell 869
powershell --HEAD 1
Installs on Request (30 days)
powershell 865
powershell --HEAD 1
Build Errors (30 days)
powershell 17
Installs (90 days)
powershell 900
powershell --HEAD 1
Installs on Request (90 days)
powershell 900
powershell --HEAD 1
Installs (365 days)
powershell 903
powershell --HEAD 1
Installs on Request (365 days)
powershell 895
powershell --HEAD 1