Getting started
Winenv supports Windows 11. A fresh installation needs only regular PowerShell, a network connection, and WinGet, which Windows 11 normally provides through App Installer.
Install in one line
Section titled “Install in one line”Open a regular PowerShell window and run:
irm https://raw.githubusercontent.com/YangYuS8/winenv/main/install.ps1 | iexThe installer will:
- resolve the latest stable GitHub Release;
- download the versioned ZIP and
SHA256SUMS, then verify SHA-256; - install that version under
%LOCALAPPDATA%\Winenv\versions; - create the global
wincommand; - probe the real paths and versions of PowerShell 7, fzf, and mise, reusing compatible installations;
- install only the runtime capabilities that are still missing.
Open a new PowerShell window when it finishes:
win checkwinLanguage selection
Section titled “Language selection”English is the canonical interface language. On first run, Winenv follows the current Windows UI culture and selects Simplified Chinese for a zh-* culture; all other cultures use English.
win lang # show the effective language and its sourcewin lang en # persist Englishwin lang zh # persist Simplified Chinesewin lang auto # return to system detectionUse -Lang en, -Lang zh, or -Lang auto for one invocation. The WINENV_LANG environment variable can set a session or automation default; an explicit -Lang takes precedence.
To select a language during installation:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/YangYuS8/winenv/main/install.ps1))) -Lang zhWhen WinGet is unavailable
Section titled “When WinGet is unavailable”WinGet is the foundational installation route on Windows. If winget.exe cannot be found, the installer first tries to re-register the App Installer already present on Windows 11. If that fails, it stops with directions for Microsoft Store or official repair paths.
Winenv does not silently elevate privileges or install PowerShell Gallery modules to obtain WinGet.
Import a profile during installation
Section titled “Import a profile during installation”Import a local file or an HTTPS URL:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/YangYuS8/winenv/main/install.ps1))) -UserProfile C:\Users\me\my-winenv.json
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/YangYuS8/winenv/main/install.ps1))) -UserProfile https://example.com/my-winenv.jsonThe profile becomes an independent layer. It does not overwrite the runtime layer or another user profile. See Composing profiles.
Install Winenv without applying profiles
Section titled “Install Winenv without applying profiles”To create the win command without immediately installing profile software:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/YangYuS8/winenv/main/install.ps1))) -ToolOnlyRun win add later to apply the active profiles.
Install a specific version
Section titled “Install a specific version”& ([scriptblock]::Create((irm https://raw.githubusercontent.com/YangYuS8/winenv/main/install.ps1))) -Version 0.13.0Without -Version, the installer always uses the latest stable release. The regular win up command updates Winenv before updating managed software.
Where to go next
Section titled “Where to go next”- New PC: find and manage software.
- Existing PC: scan and adopt the current installation.
- Personal software baseline: create or import a user profile.
