install commandInstalls the service.
winsw install [<path-to-config>] [--no-elevate] [--user|--username <username>] [--pass|--password <password>]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
--no-elevateDoesn't automatically trigger a UAC prompt.
--user|--username <username>Specifies the user name of the service account.
--pass|--password <password>Specifies the password of the service account.
uninstall commandUninstalls the service.
winsw uninstall [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
--no-elevateDoesn't automatically trigger a UAC prompt.
start commandStarts the service.
winsw start [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
--no-elevateDoesn't automatically trigger a UAC prompt.
stop commandStops the service.
winsw stop [<path-to-config>] [--no-elevate] [--no-wait]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
--no-elevateDoesn't automatically trigger a UAC prompt.
--no-waitDoesn't wait for the service to actually stop.
--forceStops the service even if it has started dependent services.
restart commandStops and then starts the service.
winsw restart [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
--no-elevateDoesn't automatically trigger a UAC prompt.
--forceRestarts the service even if it has started dependent services.
status commandChecks the status of the service.
winsw status [<path-to-config>]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
test commandChecks if the service can be started and then stopped without installation.
winsw test [<path-to-config>] [--no-elevate] [--timeout <timeout>] [--no-break]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
--no-elevateDoesn't automatically trigger a UAC prompt.
--timeout <timeout>Specifies the number of seconds to wait before the service is stopped. If not specified or -1 is specified, WinSW waits for a keystroke indefinitely.
--no-breakIgnores keystrokes. If specified, WinSW waits for Ctrl+C.
refresh commandRefreshes the service properties without reinstallation.
winsw refresh [<path-to-config>] [--no-elevate]
path-to-config
The path to the configuration file. If a file isn't specified, WinSW searches the executable directory for a .xml file with the same file name without the extension.
--no-elevateDoesn't automatically trigger a UAC prompt.
customize commandCustomizes the wrapper executable.
winsw customize -o|--output <output> --manufacturer <manufacturer>
-o|--output <output>Required. Specifies the path to the output file.
--manufacturer <manufacturer>Specifies the manufacturer name of the customized executable.
dev ps commandDraws the process tree associated with the service.
winsw dev ps [<path-to-config>]
dev kill commandTerminates the service if it has stopped responding.
winsw dev kill [<path-to-config>] [--no-elevate]
dev list commandLists services managed by the current executable.
winsw dev list