Windows CLI for installing and controlling the sing-box Windows service.
sing-box.exe and nssm.exe must be available in PATH. sing install --bin <path> can use a custom sing-box.exe path.
On Windows, install the runtime executables with Scoop:
scoop install sing-box nssmInstall sing-cli:
uv tool install sing-cliUpdate sing-cli:
uv tool upgrade sing-cliUninstall sing-cli:
uv tool uninstall sing-cli| Command | Description |
|---|---|
sing install [--bin <path>] |
Register the sing-box Windows service through NSSM and enable autostart. |
sing uninstall |
Delete the sing-box Windows service. |
sing start <name> |
Start the service with a saved profile. |
sing stop |
Stop the service. |
sing restart |
Stop, reconfigure, and start the service with the active profile. |
sing add <name> <url> |
Download a complete sing-box JSON profile and save it under a name. |
sing remove <name> |
Remove a saved non-active profile. |
sing update <name> |
Redownload a saved profile from its URL. |
sing list |
List saved profiles and mark the active profile. |
sing install uses sing-box.exe from PATH unless --bin is provided. The CLI does not download or upgrade sing-box.exe or nssm.exe.