API Reference
⚠️ The public API is still under development and subject to change.
IPC Interface
WSL Dashboard exposes a local IPC socket for integration with scripts and third-party tools.
Connection
Connect to the Unix domain socket at:
\\.\pipe\wsl-dashboardCommands
list_distributions
Returns a list of all installed WSL distributions.
Request:
json
{ "cmd": "list_distributions" }Response:
json
{
"distributions": [
{ "name": "Ubuntu-22.04", "state": "Running", "version": 2 },
{ "name": "Debian", "state": "Stopped", "version": 2 }
]
}start_distribution
Starts a stopped distribution.
Request:
json
{ "cmd": "start_distribution", "name": "Ubuntu-22.04" }Response:
json
{ "success": true }stop_distribution
Stops a running distribution.
Request:
json
{ "cmd": "stop_distribution", "name": "Ubuntu-22.04" }Response:
json
{ "success": true }