tea

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 3 Imported by: 0

README

tea

CI Release MIT

Keep a Mac awake. Restore it when you're done.

The tea client

brew install soundadam/tap/tea
tea

That's the client. It stays open. Keep the Mac awake — including with the lid closed — then restore the exact sleep setting it owned.

Schedule a shutdown

Need a script instead?

tea on
tea shutdown after 2h
tea off

Why not caffeinate

caffeinate keeps a Mac awake only while its own process runs: close the terminal or lose the SSH session and the Mac can sleep, and closing a MacBook's lid still sleeps it. tea sets the system disablesleep value instead, so the Mac stays up with the lid closed, on battery or AC, with nothing left running. It records the previous value first, and tea off restores that value and nothing else. It can also schedule one delayed shutdown and cancel exactly that one.

The name: tea, as opposed to caffeinate's caffeine. It was called teaway up to 0.4.2. homebrew-core's tea is the unrelated Gitea CLI, so always install with the full name soundadam/tap/tea.

macOS 13+. Don't close a MacBook in a bag.

Product · Docs · Changelog · Contributing · Security

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app
tui
scripts
render-client command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL