HomeTutorials › Sessions & Daemon
Sessions & Daemon

Named & Detached Sessions

#006 0:14 Part of the Rysh video series

Create a session attached, or spin one up headless as a background daemon.

Named & Detached Sessions — 0:14 walkthrough

What you'll see

  1. rysh create my-session -- create and attach the TUI.
  2. rysh create build-bot --detached (or -d) -- spawn a headless daemon; control returns to the prompt.
  3. rysh list-sessions -- confirm the headless session is running.
  4. rysh attach build-bot -- attach to it later.

Commands shown

rysh create my-session
d
rysh create build-bot --detached
rysh list-sessions
rysh attach build-bot

Keys used

EnterCtrl+o

Transcript

0:00Create a session attached, or spin one up headless as a background daemon.

0:05rysh create my-session builds a fresh session and attaches its TUI right away.

0:15Add --detached, or just -d, and the daemon spawns headlessly -- no TUI, control returns to your prompt.

0:27List your sessions and the headless one is right there, running in the background.

0:36Attach to it whenever you like with rysh attach. Detached now, fully interactive when you need it.

Key takeaway
rysh create makes a session attached, or --detached runs it headlessly as a daemon you attach to later.