

See a list of the Linux distributions available through the online store. List available Linux distributions wsl -list -online If you running WSL on Windows 10 or an older version, you may need to include the -d flag with the -install command to specify a distribution: wsl -install -d. -no-distribution: Do not install a distribution when installing WSL.

-enable-wsl1: Enables WSL 1 during the install of the Microsoft Store version of WSL by also enabling the "Windows Subsystem for Linux" optional component.(WSL updates will be received via Windows updates, rather than pushed out as-available via the store). -inbox: Installs WSL using the Windows component instead of using the Microsoft Store.When WSL is not installed options include: -web-download: Install from an online source rather than using the Microsoft Store.-no-launch: Install the Linux distribution but do not launch it automatically.You can find available distributions by running wsl -list -online. -distribution: Specify the Linux distribution to install.

For a valid list of distribution names, run wsl -list -online. You can also use this command to install additional Linux distributions by running wsl -install. Install WSL and the default Ubuntu distribution of Linux. For a full list of commands, run wsl -help. To run these commands from a Bash / Linux distribution command line, you must replace wsl with wsl.exe. The WSL commands below are listed in a format supported by PowerShell or Windows Command Prompt.
