rft
Commands

rft logs

Stream container logs for a worktree stack

Usage

rft logs <index> [service]

Streams Docker Compose logs for the specified worktree's stack.

Arguments

  • index (required) — the worktree index from rft list
  • service (optional) — a specific service name to filter logs

Flags

  • --no-follow — print logs and exit instead of streaming

Examples

# Stream all logs for worktree 1
rft logs 1

# Stream only the API service logs
rft logs 1 api

# Print last 100 lines and exit
rft logs 1 --no-follow

By default, logs are streamed in real-time (follow mode). Press Ctrl+C to stop.

On this page