Commands for installing nu without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Nushell.Nushell -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Nushell.Nushell -e --silentwinget uninstall --id Nushell.Nushell -e --silentBy installer
64-bit · MSI · en-US
Silent install
msiexec /i nu-0.117.0-x86_64-pc-windows-msvc.msi /qn /norestartWrite a log
msiexec /i nu-0.117.0-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\nu-install.log"Uninstall
msiexec /x {921F97C4-0A13-4045-8A0E-E38181BF6A6C} /qn /norestart- MSI product code
- {921F97C4-0A13-4045-8A0E-E38181BF6A6C}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{921F97C4-0A13-4045-8A0E-E38181BF6A6C}
- UpgradeCode
- {82D756D2-19FA-4F09-B10F-64942E89F364}
- Install folder
- nu
- DisplayVersion
- 0.117.0
ARM64 · MSI · en-US
Silent install
msiexec /i nu-0.117.0-aarch64-pc-windows-msvc.msi /qn /norestartWrite a log
msiexec /i nu-0.117.0-aarch64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\nu-install.log"Uninstall
msiexec /x {EE53A5DE-F435-4DFB-A94D-4B322FC300E2} /qn /norestart- MSI product code
- {EE53A5DE-F435-4DFB-A94D-4B322FC300E2}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EE53A5DE-F435-4DFB-A94D-4B322FC300E2}
- UpgradeCode
- {82D756D2-19FA-4F09-B10F-64942E89F364}
- Install folder
- nu
- DisplayVersion
- 0.117.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-nu.ps1
$url = 'https://github.com/nushell/nushell/releases/download/0.117.0/nu-0.117.0-x86_64-pc-windows-msvc.msi'
$sha256 = '2A015A43E8C3AAC5DE5D0428B2CBE435E931FCB8D8916BE89C6B9BC6C0B11483'
$file = Join-Path $env:TEMP 'nu-0.117.0-x86_64-pc-windows-msvc.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-nu.ps1
$url = 'https://github.com/nushell/nushell/releases/download/0.117.0/nu-0.117.0-aarch64-pc-windows-msvc.msi'
$sha256 = '2459FB10D2C04AABFC10E6D7CCB322F44E3A857886E4454F6EF71AA1FD4C4D61'
$file = Join-Path $env:TEMP 'nu-0.117.0-aarch64-pc-windows-msvc.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait