Claude Code Cheat SheetClaude Code Cheat Sheet
Quick reference for commands, shortcuts, real workflows and interactive practice.Tra cứu nhanh lệnh, phím tắt, workflow thực tế và luyện tập tương tác.
No matches found.Không tìm thấy mục nào.
InstallCài Đặt 5
-
curl -fsSL https://claude.ai/install.sh | bashInstall on macOS / Linux (auto-updates)Cài trên macOS / Linux (tự cập nhật)
Recommended — no Node.js neededCách được khuyên dùng — không cần Node.js
-
brew install --cask claude-codeInstall via Homebrew (manual updates)Cài qua Homebrew (cập nhật thủ công)
-
irm https://claude.ai/install.ps1 | iexInstall on Windows PowerShellCài trên Windows PowerShell
-
claude --versionCheck the installed versionKiểm tra phiên bản đã cài
-
/doctorHealth check — install, network, configHealth check — kiểm tra cài đặt, mạng, cấu hình
Run inside a Claude Code sessionChạy trong Claude Code session
Essential CommandsLệnh Thiết Yếu 4
-
/compactCompress context when nearly fullNén context khi gần đầy
-
/clearClear context, start freshXoá context, bắt đầu phiên mới
-
/initCreate a CLAUDE.md for the projectTạo file CLAUDE.md cho project
-
/modelSwitch the active modelĐổi model đang dùng
PermissionsChế Độ Quyền 2
-
/permissionsView and edit session permissionsXem và chỉnh quyền cho phiên
-
--dangerously-skip-permissionsSkip all permission promptsBỏ qua mọi prompt quyền
Only in a safe sandbox environmentChỉ dùng trong môi trường sandbox an toàn
Golden rulesQuy tắc vàng
- Always review the diff before mergingLuôn kiểm tra diff trước khi merge
- Use /compact when context is nearly full instead of letting it overflowDùng /compact khi context gần đầy thay vì để tràn
- Write clear prompts: WHAT + WHERE + HOW + CHECKPrompt rõ ràng: GÌ + Ở ĐÂU + THẾ NÀO + KIỂM TRA
- Use Plan Mode for complex changes before letting it edit codeDùng Plan Mode cho thay đổi phức tạp trước khi cho sửa code
Tap a card to reveal the answer.Bấm vào thẻ để xem đáp án.
-
Command to compress context when nearly full?Lệnh nén context khi gần đầy?
/compact
-
Install Claude Code on macOS/Linux with which command?Cài Claude Code trên macOS/Linux bằng lệnh nào?
curl -fsSL https://claude.ai/install.sh | bash
-
Command to create a CLAUDE.md for the project?Lệnh tạo file CLAUDE.md cho project?
/init