Tham chiếu lệnh hồ sơ
Trang này bao gồm tất cả các lệnh liên quan đến Cấu hình Hermes. Để biết các lệnh CLI chung, hãy xem Tham khảo lệnh CLI.
hermes profile
hermes profile <subcommand>
Lệnh cấp cao nhất để quản lý hồ sơ. Chạy hermes profile mà không có lệnh phụ sẽ hiển thị trợ giúp.
| Tiểu ban | Mô tả |
|----------||-------------|
| list | Liệt kê tất cả hồ sơ. |
| use | Đặt cấu hình hoạt động (mặc định). |
| create | Tạo một hồ sơ mới. |
| delete | Xóa một hồ sơ. |
| show | Hiển thị chi tiết về một hồ sơ. |
| alias | Tạo lại bí danh shell cho một hồ sơ. |
| rename | Đổi tên một hồ sơ. |
| export | Xuất cấu hình sang kho lưu trữ tar.gz. |
| import | Nhập hồ sơ từ kho lưu trữ tar.gz. |
hermes profile list
hermes profile list
Liệt kê tất cả hồ sơ. Hồ sơ hiện đang hoạt động được đánh dấu bằng * .
Ví dụ:
$ hermes profile list
default
* work
dev
personal
Không có lựa chọn.
hermes profile use
hermes profile use <name>
Đặt <name> làm hồ sơ hoạt động. Tất cả các lệnh hermes tiếp theo (không có -p ) sẽ sử dụng cấu hình này.
| Lập luận | Mô tả |
|---|---|
<name> | Tên hồ sơ để kích hoạt. Sử dụng default để quay lại cấu hình cơ sở. |
Ví dụ:
hermes profile use work
hermes profile use default
hermes profile create
hermes profile create <name> [options]
Tạo một hồ sơ mới.
| Đối số / Lựa chọn | Mô tả |
|---|---|
<name> | Tên cho hồ sơ mới. Phải là tên thư mục hợp lệ (chữ và số, dấu gạch ngang, dấu gạch dưới). |
--clone | Sao chép config.yaml , .env và SOUL.md từ hồ sơ hiện tại. |
--clone-all | Sao chép mọi thứ (cấu hình, ký ức, kỹ năng, phiên, trạng thái) từ hồ sơ hiện tại. |
--clone-from <profile> | Sao chép từ một hồ sơ cụ thể thay vì hồ sơ hiện tại. Được sử dụng với --clone hoặc --clone-all . |
Ví dụ:
# Blank profile — needs full setup
hermes profile create mybot
# Clone config only from current profile
hermes profile create work --clone
# Clone everything from current profile
hermes profile create backup --clone-all
# Clone config from a specific profile
hermes profile create work2 --clone --clone-from work
hermes profile delete
hermes profile delete <name> [options]
Xóa một cấu hình và loại bỏ bí danh shell của nó.
| Đối số / Lựa chọn | Mô tả |
|---|---|
<name> | Hồ sơ cần xóa. |
--yes , -y | Bỏ qua lời nhắc xác nhận. |
Ví dụ:
hermes profile delete mybot
hermes profile delete mybot --yes
Thao tác này sẽ xóa vĩnh viễn toàn bộ thư mục của hồ sơ bao gồm tất cả cấu hình, ký ức, phiên và kỹ năng. Không thể xóa hồ sơ hiện đang hoạt động.
hermes profile show
hermes profile show <name>
Hiển thị thông tin chi tiết về một hồ sơ bao gồm thư mục chính, mô hình được định cấu hình, trạng thái cổng, số lượng kỹ năng và trạng thái tệp cấu hình.
| Lập luận | Mô tả |
|---|---|
<name> | Hồ sơ để kiểm tra. |
Ví dụ:
$ hermes profile show work
Profile: work
Path: ~/.hermes/profiles/work
Model: anthropic/claude-sonnet-4 (anthropic)
Gateway: stopped
Skills: 12
.env: exists
SOUL.md: exists
Alias: ~/.local/bin/work
hermes profile alias
hermes profile alias <name> [options]
Tạo lại tập lệnh bí danh shell tại ~/.local/bin/<name> . Hữu ích nếu bí danh vô tình bị xóa hoặc nếu bạn cần cập nhật nó sau khi di chuyển cài đặt Hermes của mình.| Đối số / Lựa chọn | Mô tả |
|-------------------|-------------|
| <name> | Hồ sơ để tạo/cập nhật bí danh cho. |
| --remove | Hãy xóa tập lệnh bao bọc thay vì tạo tập lệnh đó. |
| --name <alias> | Tên bí danh tùy chỉnh (mặc định: tên hồ sơ). |
Ví dụ:
hermes profile alias work
# Creates/updates ~/.local/bin/work
hermes profile alias work --name mywork
# Creates ~/.local/bin/mywork
hermes profile alias work --remove
# Removes the wrapper script
hermes profile rename
hermes profile rename <old-name> <new-name>
Đổi tên một hồ sơ. Cập nhật bí danh thư mục và shell.
| Lập luận | Mô tả |
|---|---|
<old-name> | Tên hồ sơ hiện tại. |
<new-name> | Tên hồ sơ mới. |
Ví dụ:
hermes profile rename mybot assistant
# ~/.hermes/profiles/mybot → ~/.hermes/profiles/assistant
# ~/.local/bin/mybot → ~/.local/bin/assistant
hermes profile export
hermes profile export <name> [options]
Xuất cấu hình dưới dạng kho lưu trữ tar.gz nén.
| Đối số / Lựa chọn | Mô tả |
|---|---|
<name> | Hồ sơ để xuất. |
-o , --output <path> | Đường dẫn tệp đầu ra (mặc định: <name>.tar.gz ). |
Ví dụ:
hermes profile export work
# Creates work.tar.gz in the current directory
hermes profile export work -o ./work-2026-03-29.tar.gz
hermes profile import
hermes profile import <archive> [options]
Nhập cấu hình từ kho lưu trữ tar.gz.
| Đối số / Lựa chọn | Mô tả |
|---|---|
<archive> | Đường dẫn đến kho lưu trữ tar.gz để nhập. |
--name <name> | Tên của hồ sơ đã nhập (mặc định: được suy ra từ kho lưu trữ). |
Ví dụ:
hermes profile import ./work-2026-03-29.tar.gz
# Infers profile name from the archive
hermes profile import ./work-2026-03-29.tar.gz --name work-restored
hermes -p / hermes --profile
hermes -p <name> <command> [options]
hermes --profile <name> <command> [options]
Cờ toàn cầu để chạy bất kỳ lệnh Hermes nào trong một cấu hình cụ thể mà không thay đổi mặc định cố định. Điều này sẽ ghi đè hồ sơ hoạt động trong suốt thời gian của lệnh.
| Tùy chọn | Mô tả |
|---|---|
-p <name> , --profile <name> | Hồ sơ để sử dụng cho lệnh này. |
Ví dụ:
hermes -p work chat -q "Check the server status"
hermes --profile dev gateway start
hermes -p personal skills list
hermes -p work config edit
hermes completion
hermes completion <shell>
Tạo tập lệnh hoàn thành shell. Bao gồm các phần hoàn thành cho tên hồ sơ và các lệnh phụ hồ sơ.
| Lập luận | Mô tả |
|---|---|
<shell> | Shell để tạo các lần hoàn thành cho: bash hoặc zsh . |
Ví dụ:
# Install completions
hermes completion bash >> ~/.bashrc
hermes completion zsh >> ~/.zshrc
# Reload shell
source ~/.bashrc
Sau khi cài đặt, tính năng hoàn tất tab có tác dụng đối với:
hermes profile <TAB>— các lệnh phụ (liệt kê, sử dụng, tạo, v.v.)hermes profile use <TAB>— tên hồ sơhermes -p <TAB>— tên hồ sơ