CLI commands and flags

claude attach <id|name>

Binds the active terminal to a background task by identifier or name.

Syntax

claude attach <id|name>

Example

Terminal
claude attach 7c5dcf5d

Type to search the reference, templates and lessons.