Alle Dokumente

CLI Commands Reference

2 Min.
Aktualisiert 18. Februar 2026

All the commands and keyboard shortcuts available in the Slack Green CLI.

1

Terminal commands

These are the commands you run directly in your terminal.

sg-cliLaunch the TUI. Also starts the daemon if it's not running.
sg-cli --versionPrint the installed version.
sg-cli uninstallStop the daemon, remove the venv and binaries. Config files in ~/.sg-cli/ are preserved — to fully remove everything, run rm -rf ~/.sg-cli after.

The daemon also has its own binary:

sg-daemonRun the daemon directly (normally you don't need this — sg-cli starts it automatically).
2

TUI keyboard shortcuts

Once inside the TUI, use these keys:

aAdd a new workspace
dDelete the selected workspace
pPause or resume the selected workspace
cEdit the schedule for the selected workspace
EnterStay online for X hours (temporary override)
rForce refresh status
/ kMove selection up
/ jMove selection down
qQuit the TUI (daemon keeps running in the background)
3

Schedule editor shortcuts

When the schedule editor is open (press c on a workspace):

wSelect weekdays only (Mon–Fri)
eSelect every day
EscClose the editor

Type times in any common format: 9am, 9:30, 14:00, etc.

4

Update & reinstall

To update to the latest version, just re-run the install script:

curl -fsSL https://slack.green/install.sh | bash

This detects the existing installation and updates it in place. Your config, workspaces, and license key are preserved.

5

File locations

Everything lives in ~/.sg-cli/:

config.encEncrypted config (license key, device ID, signing secret)
workspaces.encEncrypted workspace tokens
status.jsonDaemon status (presence, last check timestamps)
daemon.pidPID file for the background daemon
daemon.logDaemon log output
venv/Python virtual environment
bin/Symlinks to sg-cli and sg-daemon

sg-cli uninstall removes venv/ and bin/ but keeps your config and workspace files.

Always Active

Hör auf, die Maus zu Bewegen.

Hunderte Remote-Arbeiter sorgen sich nicht mehr um ihren Slack-Status. Einmal einrichten, für immer grün bleiben.

    Slack Green CLI Commands Reference