Bỏ qua để đến nội dung

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.

Hiển thị danh sách tất cả lệnh có sẵn.

Terminal window
> /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

Thoát khỏi Galaxy CLI.

Terminal window
> /exit
Goodbye!

Xóa toàn bộ lịch sử hội thoại và progress hiện tại.

Terminal window
> /clear
Cleared conversation and progress

Hiển thị đường dẫn thư mục làm việc hiện tại.

Terminal window
> /pwd
Working directory: /Users/username/projects/my-app

Hiển thị thông tin chi tiết về hệ thống.

Terminal window
> /information
📊 System Information:
Name: Galaxy CLI
Version: 2.0.0
Current Project: /Users/username/projects/my-app
Agent Mode: auto
Git Operations: OFF
Testing: ON
Review Code: OFF
Progress File: /Users/username/projects/my-app/.galaxy/progress.json

Hiển thị agent mode đang sử dụng.

Terminal window
> /mode
🤖 Agent Mode: auto
Using Orchestrator Agent with full tool access.

Hiển thị vị trí file progress (nếu có).

Terminal window
> /progress
📄 Progress file: /path/to/project/.galaxy/progress.json

Hoặc nếu chưa có progress:

Terminal window
> /progress
📄 No progress file yet. It will be created when you start a project.

Xem 10 input gần nhất.

Terminal window
> /history
Recent inputs:
1. Tạo app Next.js e-commerce
2. Thêm authentication với JWT
3. Phân tích dự án này
4. Giải thích về React Server Components
5. /information

Bật hoặc tắt Git operations.

Xem trạng thái hiện tại:

Terminal window
> /git
Git operations are currently OFF

Bật Git operations:

Terminal window
> /git true
Git operations enabled

Hoặc:

Terminal window
> /git on
Git operations enabled

Tắt Git operations:

Terminal window
> /git false
Git operations disabled

Galaxy có thể sử dụng các Git tools:

  • git_status
  • git_commit
  • git_push
  • git_pull
  • git_diff

Bật hoặc tắt test planning.

Xem trạng thái:

Terminal window
> /test
Testing is currently OFF

Bật test planning:

Terminal window
> /test true
Test planning enabled

Tắt test planning:

Terminal window
> /test false
Test planning disabled

Bật hoặc tắt code review planning.

Xem trạng thái:

Terminal window
> /review
Review is currently OFF

Bật review planning:

Terminal window
> /review true
Review planning enabled

Tắt review planning:

Terminal window
> /review false
Review planning disabled

Galaxy CLI hỗ trợ các keyboard shortcuts:

PhímChức năng
EnterGửi message
\ + EnterXuống dòng mới (multi-line input)
/ Duyệt lịch sử input
Tab / Shift+TabChọn command suggestion
EscĐóng command suggestions
Ctrl+CThoát Galaxy CLI

Khi bạn gõ /, Galaxy sẽ hiển thị suggestions:

Terminal window
> /h
┌─────────────────────────────────────┐
/help Hiển thị danh sách lệnh
/history Xem 10 input gần nhất
└─────────────────────────────────────┘
  • Dùng / hoặc Tab để chọn
  • Enter để chạy lệnh được chọn
  • Esc để đóng suggestions
  1. Khởi động và kiểm tra thông tin
Terminal window
> /information
> /pwd
  1. Cấu hình settings
Terminal window
> /test true
> /review true
> /git true
  1. Làm việc với dự án
Terminal window
> Tạo app Next.js...
> Thêm feature...
  1. Kiểm tra progress
Terminal window
> /progress
> /history
  1. Xóa và bắt đầu lại
Terminal window
> /clear
Terminal window
# 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
> /history

Một số settings có thể được set qua CLI flags hoặc internal commands:

CLI FlagInternal CommandKhác biệt
--test/test trueFlag: set khi khởi động
Command: toggle runtime
--review/review trueFlag: set khi khởi động
Command: toggle runtime
--help/helpFlag: show help và exit
Command: show help trong session