--exec
Executes a shell command as a background PTY process instead of running Claude.
Syntax
--execExample
Terminal
claude --bg --exec 'pytest -x'Progress will not be saved. This browser is blocking storage (often private browsing). You can still learn, but closing the tab loses your progress.
--execExecutes a shell command as a background PTY process instead of running Claude.
--execclaude --bg --exec 'pytest -x'