{"id":13442093,"url":"https://github.com/int128/wslexec","last_synced_at":"2025-12-15T20:04:03.497Z","repository":{"id":138194042,"uuid":"113961094","full_name":"int128/wslexec","owner":"int128","description":"A wrapper to run Linux command inside WSL (Windows Subsystem for Linux) from native apps","archived":true,"fork":false,"pushed_at":"2020-07-04T12:44:56.000Z","size":39,"stargazers_count":43,"open_issues_count":2,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-01T03:38:56.203Z","etag":null,"topics":["bash-on-windows","windows-subsystem-linux"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/int128.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-12-12T08:01:24.000Z","updated_at":"2024-01-27T00:14:53.000Z","dependencies_parsed_at":"2023-06-09T05:30:20.261Z","dependency_job_id":null,"html_url":"https://github.com/int128/wslexec","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fwslexec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fwslexec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fwslexec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fwslexec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/int128","download_url":"https://codeload.github.com/int128/wslexec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221768453,"owners_count":16877642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-on-windows","windows-subsystem-linux"],"created_at":"2024-07-31T03:01:41.606Z","updated_at":"2025-12-15T20:03:58.155Z","avatar_url":"https://github.com/int128.png","language":"Go","funding_links":[],"categories":["HarmonyOS","WSL Tools","Go"],"sub_categories":["Windows Manager","10. GUI Apps"],"readme":"# wslexec [![CircleCI](https://circleci.com/gh/int128/wslexec.svg?style=shield)](https://circleci.com/gh/int128/wslexec)\n\nA wrapper to run a Linux command inside WSL (Windows Subsystem for Linux) from Windows native applications.\n\nIf you are looking for Git on WSL solution, [andy-5/wslgit](https://github.com/andy-5/wslgit) is the best.\n\n\n## Getting Started\n\n### Visual Studio Code and PHP\n\nYou can use PHP on WSL from Windows native Visual Studio Code.\n\nDownload [the latest release](https://github.com/int128/wslexec/releases) and save as `wslphp.exe`.\n\nOpen Visual Studio Code and configure path as follows:\n\n```json\n{\n  \"php.validate.executablePath\": \"C:\\\\Users\\\\USER\\\\Documents\\\\wslphp.exe\"\n}\n```\n\n### Visual Studio and Node.js\n\nWIP\n\n\n## How it works\n\nRename the binary to command name with prefix `wsl`.\nFor example, rename the binary to `wslgit` to run the `git` command inside WSL.\n\n### Windows path translation\n\nWindows paths (e.g. `C:\\`) in command line are translated to WSL paths (e.g. `/mnt/c`).\n\nFor example,\n\n```sh\nwslgit.exe -C C:\\Users\\foo\\example log\n```\n\nis translated to the following command:\n\n```sh\ngit -C /mnt/c/Users/foo/example log\n```\n\n### WSL path translation\n\nWSL paths (e.g. `/mnt/c`) in standard input are translated to Windows paths (e.g. `C:/`).\n\nFor example,\n\n```sh\n/mnt/c/Users/foo/example\n```\n\nis translated to the following command:\n\n```sh\nc:/Users/foo/example\n```\n\n\n## Contributions\n\nFeel free to open issues and pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fwslexec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fint128%2Fwslexec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fwslexec/lists"}