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
                    
if you are setting up this repo
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
                    
nuke :add-package sleep-pc --version 0.2.1
                    

💤 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 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.

Version Downloads Last Updated
0.2.1 115 9/23/2025
0.2.0 254 9/18/2025
0.1.0 256 9/18/2025