Claude CLI
Start a Session
Section titled “Start a Session”claude # start in current directoryclaude --print "your prompt" # one-shot: print response and exitclaude --model claude-sonnet-4-6 # start with a specific modelSlash Commands (in-session)
Section titled “Slash Commands (in-session)”/help # list all slash commands/clear # clear conversation context/compact # summarise and compress context/status # show token usage and current model/config # open settings/quit # exit sessionContext Control
Section titled “Context Control”# Type @ in a prompt → file picker (add files to context)# Type # in a prompt → memory / docs picker--print # non-interactive output mode (pipe-friendly)--model <model-id> # override default model for this session--debug # verbose debug outputConfig
Section titled “Config”claude config # show current configclaude config set model claude-opus-4-7 # change default modelclaude config set theme dark # change theme