Skip to content

Commit 68087d1

Browse files
committed
Update winget install guide
1 parent 4ee5c35 commit 68087d1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ $ nix profile install nixpkgs#nushell
4949
#### Windows:
5050

5151
```powershell
52+
# Install to user scope by default
5253
winget install nushell
54+
# Machine scope install(Run as admin or with sudo)
55+
winget install nushell --scope machine
5356
```
5457

5558
After installing, launch Nu by typing `nu`.

book/installation.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ next:
33
text: Default Shell
44
link: /book/default_shell.md
55
---
6+
67
# Installing Nu
78

89
There are lots of ways to get Nu up and running. You can download pre-built binaries from our [release page](https://github.com/nushell/nushell/releases), [use your favourite package manager](https://repology.org/project/nushell/versions), or build from source.
@@ -27,7 +28,13 @@ For macOS and Linux, [Homebrew](https://brew.sh/) is a popular choice (`brew ins
2728

2829
For Windows:
2930

30-
- [Winget](https://docs.microsoft.com/en-us/windows/package-manager/winget/) (`winget install nushell`)
31+
- [Winget](https://docs.microsoft.com/en-us/windows/package-manager/winget/)
32+
33+
- Machine scope install: `winget install nushell --scope machine`
34+
- Machine scope upgrade: `winget update nushell`
35+
- User scope install: `winget install nushell` or `winget install nushell --scope user`
36+
- User scope upgrade: Due to [winget-cli issue #3011](https://github.com/microsoft/winget-cli/issues/3011), `winget update nushell` will unexpectedly install the latest version to `C:\Program Files\nu`. The workaround is to run `winget install nushell` again to install the latest version for user scope.
37+
3138
- [Chocolatey](https://chocolatey.org/) (`choco install nushell`)
3239
- [Scoop](https://scoop.sh/) (`scoop install nu`)
3340

0 commit comments

Comments
 (0)