claude -p, --print
Print a response without interactive mode, then exit.
More flags
- -c, --continue: Load the most recent conversation in the current directory.
- -r, --resume: Resume a session by ID or name, or open the picker.
- --model: Set the model for the session by alias or full name.