Skip to content

Cmdex 0.1.4

Choose a tag to compare

@thangkes thangkes released this 14 Oct 06:35
· 40 commits to main since this release

Correction (2026-10-14): an earlier version of these notes said that some commands were "copy-only" or "ask before running". That was wrong: in 0.1.5 and earlier the safety level of a command is stored but not enforced, and ▶ Run pastes the line and presses Enter at once for every command. Check a command before you run it. The next version changes ▶ Run to paste only (you press Enter yourself) and marks destructive commands as CRITICAL. See SECURITY.md.

Đính chính (14/10/2026): bản trước của ghi chú này nói một số lệnh "chỉ cho sao chép" hoặc "hỏi trước khi chạy". Điều đó sai: ở 0.1.5 trở về trước, mức an toàn của lệnh chỉ được lưu chứ không được áp dụng, và nút ▶ Chạy dán rồi nhấn Enter ngay với mọi lệnh. Hãy kiểm tra lệnh trước khi chạy. Bản kế tiếp đổi ▶ Chạy thành chỉ dán (bạn tự nhấn Enter) và gắn nhãn CRITICAL cho lệnh nguy hiểm.

Cmdex 0.1.4 — Cisco & pfSense, builder under the search box, automatic merge, log clearing

Network devices: Cisco and pfSense

  • 60 Cisco IOS/IOS-XE commands (status, ports and VLANs, configuration, SSH setup, save and reload) and 32 pfSense commands (pfctl, easyrule, pfSsh.php playback, logs, diagnostics), in English and Vietnamese.
  • Connections have a device type (Automatic, Linux, Windows, Cisco, pfSense): the device's commands come first in suggestions.
  • Cisco lines are explained keyword by keyword, abbreviations included: sh ip int br, conf t, no shut, switchport access vlan 10.
  • Safety levels are set on these commands (reload, write erase, pfctl -d and "allow all on WAN" marked copy-only; configuration changes marked ask-first), but are not enforced in this version: see the correction above.
  • Passwords typed in device commands (secret …, password …, snmp-server community …) are masked in collected commands.

Workspace

  • The builder stays right under the search box: the command you pick is built there, always in view.
  • Suggestions follow what you type and fill the space below, scrolling on their own. Picking one builds it without searching again; values you were typing are kept.
  • A more compact builder (tags are still in the library).

Collect settings (new "Merging & log" panel)

  • Merge similar commands automatically — off by default. A collected command that resembles one in your library at least as much as the level you choose (50, 75, 85 or 100%) is merged into it and its runs are counted there. New commands are never added on their own: they still wait for you. Merges made this way show as Merged automatically and can be undone.
  • The same level decides from when a merge is suggested (75% by default).
  • Runs of a command you merged keep counting on its library command.
  • Clear the collected log now, or automatically after 7, 30 or 90 days. The collected lines and the groups waiting for review are deleted; what you already added, merged or ignored stays decided, so those commands do not come back for review. Turn off Collect commands if you want no new ones.

Security and privacy fixes (also for what 0.1.3 changed)

  • The copy of your database made when upgrading to 0.1.3 (cmdex.db.bak-v1) is now readable by you only, gets the same password/token masking as your database, and is cleared together with the collected log. Nothing else in it changes.
  • Clearing the collected log really erases it: the database file is rewritten so deleted lines cannot be recovered from the disk.
  • An imported backup can no longer pass its commands off as starter commands or hide a starter command behind one of its own.
  • Your own rules and trimmed synonym lists are no longer changed at the next start when they resemble a default (a 0.1.3 bug).
  • Adding a collected cd … to the library no longer puts your real folder in it as a default, so shared packs do not carry your folder names.

Updating changes nothing in your library, connections, settings or collected decisions; a test checks this on a library as used with 0.1.3.

Downloads

File For
Cmdex-Windows-Setup-0.1.4.exe Windows 10/11 64-bit, per-user install
Cmdex-Linux-amd64-0.1.4.tar.gz Linux x86-64 (added by CI a few minutes after the release)

Tiếng Việt

Thiết bị mạng: Cisco và pfSense

  • 60 lệnh Cisco IOS/IOS-XE (trạng thái, cổng và VLAN, cấu hình, bật SSH, lưu và khởi động lại) và 32 lệnh pfSense (pfctl, easyrule, pfSsh.php playback, log, chẩn đoán), song ngữ.
  • Kết nối có loại thiết bị (Tự động, Linux, Windows, Cisco, pfSense): lệnh của thiết bị đó lên đầu danh sách gợi ý.
  • Lệnh Cisco được giải nghĩa từng từ khóa, kể cả viết tắt: sh ip int br, conf t, no shut, switchport access vlan 10.
  • Mức an toàn có được đặt cho các lệnh này (reload, write erase, pfctl -d và "cho phép mọi thứ trên WAN" là chỉ sao chép; lệnh đổi cấu hình là hỏi trước), nhưng chưa được áp dụng ở bản này: xem đính chính ở trên.
  • Mật khẩu gõ trong lệnh thiết bị (secret …, password …, snmp-server community …) được che trong lệnh thu thập.

Khu làm việc

  • Khung dựng lệnh nằm cố định ngay dưới ô tìm kiếm: lệnh bạn chọn được dựng ở đó, luôn trong tầm mắt.
  • Danh sách gợi ý chạy theo những gì bạn gõ, chiếm phần còn lại bên dưới và cuộn riêng. Bấm chọn một gợi ý là dựng ngay, giá trị đang nhập không bị mất.
  • Khung dựng gọn hơn (tag vẫn xem được trong thư viện).

Cài đặt thu thập (khung mới "Gộp lệnh & nhật ký")

  • Tự gộp lệnh giống nhau — mặc định tắt. Lệnh thu thập giống một lệnh trong thư viện từ mức bạn chọn (50, 75, 85 hoặc 100%) trở lên sẽ được gộp vào lệnh đó, số lần chạy cộng dồn vào lệnh. Lệnh mới không bao giờ tự vào thư viện, vẫn chờ bạn duyệt. Nhóm tự gộp được đánh dấu Đã tự gộp và có thể hoàn tác.
  • Cùng mức đó cũng là mức bắt đầu gợi ý gộp (mặc định 75%).
  • Lệnh đã gộp tiếp tục cộng số lần chạy vào lệnh trong thư viện.
  • Xoá nhật ký thu thập ngay, hoặc tự xoá sau 7, 30 hay 90 ngày. Các dòng lệnh đã ghi và nhóm đang chờ duyệt bị xoá; những lệnh bạn đã thêm, gộp hay bỏ qua vẫn giữ quyết định nên không hiện lại. Tắt Thu thập lệnh nếu không muốn nhận lệnh mới.

Sửa lỗi bảo mật và quyền riêng tư (cả những thay đổi của 0.1.3)

  • Bản sao database tạo khi nâng cấp lên 0.1.3 (cmdex.db.bak-v1) giờ chỉ bạn đọc được, được che mật khẩu/token giống database chính, và được xoá nhật ký cùng lúc. Những thứ khác trong đó giữ nguyên.
  • Xoá nhật ký thu thập là xoá hẳn: file database được ghi lại để dòng lệnh đã xoá không phục hồi được từ ổ đĩa.
  • File sao lưu lạ không thể giả làm lệnh mẫu hay che lệnh mẫu bằng lệnh của nó nữa.
  • Quy tắc và danh sách từ đồng nghĩa bạn tự chỉnh không còn bị đổi ở lần mở sau khi trông giống mặc định (lỗi của 0.1.3).
  • Thêm lệnh cd … thu thập được vào thư viện không còn lấy thư mục thật làm giá trị mặc định, nên gói lệnh chia sẻ không mang tên thư mục của bạn.

Cập nhật không thay đổi gì trong thư viện, kết nối, cài đặt hay quyết định thu thập của bạn; có test kiểm tra điều này trên một thư viện đang dùng 0.1.3.