sleep-pc
0.2.1
dotnet tool install --global sleep-pc --version 0.2.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local sleep-pc --version 0.2.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=sleep-pc&version=0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package sleep-pc --version 0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
💤 sleep-pc
A .NET tool for sending a Windows laptop to sleep.
Install with:
dotnet tool install -g sleep-pc
and run with
sleep-pc
Usage: [options...] [-h|--help] [--version]
Waits for the provided number of seconds before sending the computer to sleep
Options:
-s|--seconds|--sleep-delay-seconds <uint> The time in seconds before the computer is put to sleep. Defaults to 1 hour (Default: 3600)
--dry-run If true, prints a message instead of sleeping (Optional)
Alternatively, with the .NET 10 SDK, run using:
dnx sleep-pc
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.