Skip to content

add instructions to install preview for macOS #2589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PowerShell Core supports macOS 10.12 and higher.
All packages are available on our GitHub [releases][] page.
Once the package is installed, run `pwsh` from a terminal.

### Installation via Homebrew on macOS 10.12
### Installation of latest stable release via Homebrew on macOS 10.12 or higher

[Homebrew][brew] is the preferred package manager for macOS.
If the `brew` command is not found, you need to install Homebrew following [their instructions][brew].
Expand Down Expand Up @@ -44,6 +44,48 @@ brew cask upgrade powershell
[brew]: http://brew.sh/
[cask]: https://caskroom.github.io/

### Installation of latest preview release via Homebrew on macOS 10.12 or higher

[Homebrew][brew] is the preferred package manager for macOS.
If the `brew` command is not found, you need to install Homebrew following [their instructions][brew].

Once you've installed Homebrew, installing PowerShell is easy.
First, install [Homebrew-Cask][cask], so you can install more packages and install [Cask-Versions][cask-version] which lets you install alternative versions of packages:

```sh
brew tap caskroom/cask
brew tap caskroom/versions
```

Now, you can install PowerShell:

```sh
brew cask install powershell-preview
```

Finally, verify that your install is working properly:

```sh
pwsh-preview
```

When new versions of PowerShell are released,
simply update Homebrew's formulae and upgrade PowerShell:

```sh
brew update
brew cask upgrade powershell-preview
```

> [!NOTE]
> The commands above can be called from within a PowerShell (pwsh) host,
> but then the PowerShell shell must be exited and restarted to complete the upgrade.
> and refresh the values shown in $PSVersionTable.

[brew]: http://brew.sh/
[cask]: https://caskroom.github.io/
[cask-versions]: https://github.com/Homebrew/homebrew-cask-versions

### Installation via Direct Download

Download the PKG package
Expand Down