microsoft / microsoft/WSL

wslc all commands give E_INVALIDARG

Open
#40,944 7 comments 8 reactions 1 assignee Claimed by @OneBlue View on GitHub
fixinbound wslc
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [Version 10.0.26200.8655]

### WSL Version

2.9.3.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

6.18.35.2-1

### Distro Version

NA

### Other Software

_No response_

### Repro Steps

```
PS > wslc version
wslc 2.9.3.0
PS > wslc run --rm hello-world
The parameter is incorrect.
Error code: E_INVALIDARG
PS > wslc container list
The parameter is incorrect.
Error code: E_INVALIDARG
PS > wslc --help
Copyright (c) Microsoft Corporation. All rights reserved.
For privacy information about this product please visit https://aka.ms/privacy.

WSLC is the Windows Subsystem for Linux Container CLI tool. It enables management and interaction with WSL containers from the command line.

Usage: wslc [] []

The following commands are available:
container Manage containers.
image Manage images.
network Manage networks.
registry Manage registry credentials.
settings Open the settings file in the default editor.
system System-level commands
volume Manage volumes.
attach Attach to a container.
build Build an image from a Dockerfile.
create Create a container.
exec Execute a command in a running container.
export Export a container's filesystem as a tar archive.
images List images.
import Import an image from a tarball.
inspect Inspect objects.
kill Kill containers.
list List containers.
load Load images.
login Log in to a registry.
logout Log out from a registry.
logs View container logs.
pull Pull images.
push Upload an image to a registry.
remove Remove containers.
rmi Remove images.
run Run a container.
save Save images.
start Start a container.
stats Display container resource usage statistics.
stop Stop containers.
tag Tag an image.
version Show version information.

For more details on a specific command, pass it the help argument. [-?]

The following options are available:
-v,--version Show version information for this tool
-?,--help Shows help about the selected command
```

### Expected Behavior

Following along from https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-containers
wlsc commands should work, list images, containers, run them, etc.

Same result from within any distro, and from just powershell

### Actual Behavior

wlsc commands don't work, they all return E_INVALIDARG except for version and help

### Diagnostic Logs

[WslLogs-2026-06-29_15-26-56.tar.gz](https://github.com/user-attachments/files/29478891/WslLogs-2026-06-29_15-26-56.tar.gz)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.