claude -p "query"
Sends a prompt via SDK and terminates upon completion.
Syntax
claude -p "query"Example
Terminal
claude -p "explain this function"Progress will not be saved. This browser is blocking storage (often private browsing). You can still learn, but closing the tab loses your progress.
claude -p "query"Sends a prompt via SDK and terminates upon completion.
claude -p "query"claude -p "explain this function"