# 启动交互模式 claude # 特点 - 持续对话 - 上下文保持 - 会话管理
# 执行单个任务 claude "create a hello.js file" # 特点 - 快速执行 - 独立任务 - 无状态
# 规划模式 You: 实现用户认证功能 Claude: Let me enter Plan Mode to design the implementation. [Plan Mode] 1. Analyzing requirements... 2. Creating implementation plan... 3. Presenting plan for approval... Proceed with implementation? (yes/no)
{ "permissions": { "fileOperations": { "read": true, "write": "prompt", "delete": "deny" }, "commandExecution": { "bash": "prompt", "system": "deny" }, "networkAccess": { "http": true, "external": "prompt" } } }
权限级别:
true
allow
prompt
false
deny
# 暂停会话 Ctrl + Z # 恢复会话 fg # 中断操作 Ctrl + C # 退出 Ctrl + D exit /quit
在本章中,我们学习了: