Lệnh CLI
Galaxy CLI hỗ trợ các lệnh internal bắt đầu bằng / để quản lý và cấu hình hệ thống.
Lệnh cơ bản
Phần tiêu đề “Lệnh cơ bản”/help
Phần tiêu đề “/help”Hiển thị danh sách tất cả lệnh có sẵn.
> /help
Danh sách lệnh:/help Hiển thị danh sách lệnh/exit Thoát khỏi Galaxy CLI/clear Xóa lịch sử hội thoại hiện tại/history Xem danh sách 10 input gần nhất/pwd Hiển thị thư mục làm việc hiện tại/information Hiển thị thông tin hệ thống/git Bật/tắt git operations/test Bật/tắt test planning/review Bật/tắt review planning/progress Hiển thị progress file location/mode Hiển thị agent mode hiện tại/exit
Phần tiêu đề “/exit”Thoát khỏi Galaxy CLI.
> /exit⚙ Goodbye!/clear
Phần tiêu đề “/clear”Xóa toàn bộ lịch sử hội thoại và progress hiện tại.
> /clear✅ Cleared conversation and progressLệnh thông tin
Phần tiêu đề “Lệnh thông tin”Hiển thị đường dẫn thư mục làm việc hiện tại.
> /pwd⚙ Working directory: /Users/username/projects/my-app/information
Phần tiêu đề “/information”Hiển thị thông tin chi tiết về hệ thống.
> /information
📊 System Information:Name: Galaxy CLIVersion: 2.0.0Current Project: /Users/username/projects/my-appAgent Mode: autoGit Operations: OFFTesting: ONReview Code: OFFProgress File: /Users/username/projects/my-app/.galaxy/progress.json/mode
Phần tiêu đề “/mode”Hiển thị agent mode đang sử dụng.
> /mode
🤖 Agent Mode: auto
Using Orchestrator Agent with full tool access./progress
Phần tiêu đề “/progress”Hiển thị vị trí file progress (nếu có).
> /progress📄 Progress file: /path/to/project/.galaxy/progress.jsonHoặc nếu chưa có progress:
> /progress📄 No progress file yet. It will be created when you start a project.Lệnh quản lý lịch sử
Phần tiêu đề “Lệnh quản lý lịch sử”/history
Phần tiêu đề “/history”Xem 10 input gần nhất.
> /history
Recent inputs:1. Tạo app Next.js e-commerce2. Thêm authentication với JWT3. Phân tích dự án này4. Giải thích về React Server Components5. /informationLệnh cấu hình
Phần tiêu đề “Lệnh cấu hình”Bật hoặc tắt Git operations.
Xem trạng thái hiện tại:
> /git⚙ Git operations are currently OFFBật Git operations:
> /git true✅ Git operations enabledHoặc:
> /git on✅ Git operations enabledTắt Git operations:
> /git false❌ Git operations disabledGalaxy có thể sử dụng các Git tools:
git_statusgit_commitgit_pushgit_pullgit_diff
Galaxy sẽ không thực hiện bất kỳ Git operation nào.
/test
Phần tiêu đề “/test”Bật hoặc tắt test planning.
Xem trạng thái:
> /test⚙ Testing is currently OFFBật test planning:
> /test true✅ Test planning enabledTắt test planning:
> /test false❌ Test planning disabled/review
Phần tiêu đề “/review”Bật hoặc tắt code review planning.
Xem trạng thái:
> /review⚙ Review is currently OFFBật review planning:
> /review true✅ Review planning enabledTắt review planning:
> /review false❌ Review planning disabledKeyboard Shortcuts
Phần tiêu đề “Keyboard Shortcuts”Galaxy CLI hỗ trợ các keyboard shortcuts:
| Phím | Chức năng |
|---|---|
Enter | Gửi message |
\ + Enter | Xuống dòng mới (multi-line input) |
↑ / ↓ | Duyệt lịch sử input |
Tab / Shift+Tab | Chọn command suggestion |
Esc | Đóng command suggestions |
Ctrl+C | Thoát Galaxy CLI |
Command Autocomplete
Phần tiêu đề “Command Autocomplete”Khi bạn gõ /, Galaxy sẽ hiển thị suggestions:
> /h┌─────────────────────────────────────┐│ /help Hiển thị danh sách lệnh ││ /history Xem 10 input gần nhất │└─────────────────────────────────────┘- Dùng
↑/↓hoặcTabđể chọn Enterđể chạy lệnh được chọnEscđể đóng suggestions
Ví dụ sử dụng
Phần tiêu đề “Ví dụ sử dụng”Workflow điển hình
Phần tiêu đề “Workflow điển hình”- Khởi động và kiểm tra thông tin
> /information> /pwd- Cấu hình settings
> /test true> /review true> /git true- Làm việc với dự án
> Tạo app Next.js...> Thêm feature...- Kiểm tra progress
> /progress> /history- Xóa và bắt đầu lại
> /clearDebugging workflow
Phần tiêu đề “Debugging workflow”# Kiểm tra mode hiện tại> /mode
# Xem thông tin chi tiết> /information
# Kiểm tra thư mục làm việc> /pwd
# Xem lịch sử để debug> /historySo sánh với CLI Flags
Phần tiêu đề “So sánh với CLI Flags”Một số settings có thể được set qua CLI flags hoặc internal commands:
| CLI Flag | Internal Command | Khác biệt |
|---|---|---|
--test | /test true | Flag: set khi khởi động Command: toggle runtime |
--review | /review true | Flag: set khi khởi động Command: toggle runtime |
--help | /help | Flag: show help và exit Command: show help trong session |
Các bước tiếp theo
Phần tiêu đề “Các bước tiếp theo”- CLI Flags - Tìm hiểu về command-line flags
- Configuration - Cấu hình nâng cao
- Examples - Xem ví dụ thực tế