Command Cheatsheet
สรุปคำสั่งที่ใช้งานบ่อยของ Claude Code CLI
พร้อมคำอธิบายภาษาไทย เพื่อให้คุณทำงานร่วมกับ AI Agent ได้รวดเร็วยิ่งขึ้น!
WORKSPACE & FILES
/initสร้างไฟล์เริ่มต้น CLAUDE.md และวิเคราะห์โปรเจกต์
Explore the codebase and generate a starter CLAUDE.md
/add-dirให้สิทธิ์ Claude เข้าถึงโฟลเดอร์เพิ่มเติม
Grant Claude file access to an additional directory
/memoryดูหรือแก้ไขไฟล์ CLAUDE.md
View or edit the CLAUDE.md files in scope
/diffดูการเปลี่ยนแปลงที่ยังไม่ได้บันทึก (Diff)
Open an interactive viewer of uncommitted changes
@ + pathอ้างอิงไฟล์หรือโฟลเดอร์ใน Prompt
Reference a file or directory in your prompt
SESSION & CONTEXT
/clearล้างประวัติการสนทนาและเริ่มใหม่
Wipe conversation history and start fresh
/compactสรุปบทสนทนาเพื่อคืนพื้นที่ Context Window
Summarize the conversation to free up context
/contextดูการใช้งาน Context ปัจจุบัน
Visualize what is currently loaded into context
/rewindย้อนกลับบทสนทนาหรือโค้ด
Roll the conversation and/or your code back
/resumeเปิดเซสชันก่อนหน้าขึ้นมาทำต่อ
Reopen a previous session and continue
/exportบันทึกบทสนทนาปัจจุบัน
Save the current conversation
/btwถามคำถามแทรกโดยไม่รบกวน Context
Ask a quick side question without consuming context
SETTINGS & SYSTEM
/configเปิดหน้าการตั้งค่า (Settings)
Open configuration settings
/modelเลือกหรือเปลี่ยนโมเดลที่ใช้งาน
View or switch the active model
/permissionsดูหรือเปลี่ยนสิทธิ์การใช้เครื่องมือต่างๆ
View or change tool permissions
/costแสดงจำนวน Token และค่าใช้จ่ายของเซสชันนี้
Show token usage and spend for this session
/usageแสดงลิมิตการใช้งานโควต้าของคุณ
Show your plan's usage limits
/statusแสดงสถานะปัจจุบัน (บัญชี, โฟลเดอร์, โมเดล)
Show account, model, working directory
/doctorตรวจสอบปัญหาการติดตั้งและสภาพแวดล้อม
Diagnose install and environment issues
/loginเข้าสู่ระบบ จัดการบัญชี หรือออกจากระบบ
Authenticate, switch accounts, or sign out
TASKS & TOOLS
/planเข้าสู่โหมดวางแผน (Plan Mode)
Drop straight into Plan Mode
/agentsแสดงและจัดการ Subagents
List, create, or edit subagents
/mcpจัดการการเชื่อมต่อ MCP Server
Manage MCP server connections
/hooksดูการตั้งค่า Hooks สำหรับอีเวนต์ต่างๆ
View hook configuration for tool events
/skillsแสดง Skills ที่สามารถใช้งานได้
List the skills available in this session
/simplifyรีวิวและแก้ไขโค้ดที่เพิ่งแก้ไข (Bundled Skill)
Review recently changed files for reuse/quality
/helpดูคำสั่งทั้งหมดที่สามารถใช้ได้
List all available commands
/exitออกจากโปรแกรม CLI
Quit the CLI
SHORTCUTS & KEYS
Shift + Tabเปลี่ยนโหมด Permission Mode
Cycle permission mode (default → acceptEdits → plan)
Escหยุดการตอบกลับของ Claude
Interrupt Claude mid-response
Esc, Escเปิดเมนูย้อนกลับ (Rewind Menu)
Open the rewind/checkpoint menu
Ctrl + Cยกเลิกคำสั่งหรือออกจากโปรแกรม
Cancel the current input, or exit
Ctrl + Rค้นหาประวัติคำสั่ง (Reverse Search)
Reverse search through your prompt history
Ctrl + Oดูประวัติการสนทนาแบบเต็มรูปแบบ
Expand to the verbose, full transcript view
↑ / ↓เลื่อนดูประวัติคำสั่ง
Scroll through your prompt history
/เปิดเมนูคำสั่ง
Open the command menu
?แสดงปุ่มลัดสำหรับ Terminal
Show shortcuts for your current terminal
ทิปการใช้งาน
คุณสามารถพิมพ์ /help ใน Claude Code เมื่อไหร่ก็ได้เพื่อดูรายการคำสั่งทั้งหมด

