Hướng dẫn Sử dụng txacli, txapm & txacreate (Dành cho Người dùng cuối)Using txacli, txapm and txacreate (end-user guide)
Trang này đọc trực tiếp từ thư mục docs của kho nên luôn khớp với bản trên GitHub.This page is read straight from the repository's docs folder, so it always matches what is on GitHub. Sửa trên GitHubEdit on GitHub
Tài liệu này hướng dẫn người dùng cuối cách tìm kiếm, cài đặt, quản lý phần mềm bằng txapm, nhập phần mềm tự động từ WinGet hoặc từ máy cá nhân bằng txacli, và tạo kho phần mềm riêng / đóng góp lên kho chính bằng txacreate.
Tổng quan 3 công cụ dòng lệnh
Khi cài đặt TXA, bạn có sẵn các lệnh toàn cục chạy được ở bất kỳ cửa sổ PowerShell hoặc Command Prompt nào:
| Công cụ | Dành cho việc gì? | Ví dụ nhanh |
|---|---|---|
txapm | Tìm kiếm, cài đặt im lặng, cập nhật, gỡ phần mềm, kiểm tra sức khỏe và dọn bộ nhớ đệm | txapm install chrometxapm upgrade --alltxapm doctor |
txacli | Tìm phần mềm trên WinGet, quét phần mềm đang cài trên máy để tạo gói TXA tự động, tạo kho riêng & gửi PR | txacli -s PowerToystxacli -i -ytxacli submit C:\my-txa-repo |
txacreate | Đóng góp phần mềm lên kho TXA qua Pull Request (từ link tải, tên phần mềm hoặc thư mục có sẵn) | txacreate new "GitHub CLI"txacreate submit C:\my-txa-repo |
1. Quản lý & Cài đặt phần mềm hàng ngày với txapm
Tìm kiếm và cài đặt phần mềm
Bạn có thể cài bằng ID đầy đủ (TXAVL.Chrome) hoặc tên ngắn / alias (chrome, vscode, 7zip, git...):
# Tìm kiếm phần mềm trong kho TXA
txapm search chrome
# Cài đặt im lặng (tự tải, kiểm tra SHA-256 và cài không cần bấm Next)
txapm install chrome
txapm install vscode
# Cài đặt nhưng hiển thị thanh tiến trình của bộ cài
txapm install obs --progress
Cài đặt phần mềm chưa có trên kho TXA (trực tiếp qua cầu nối WinGet)
Nếu một phần mềm chưa kịp có trên kho TXA, bạn vẫn có thể dùng txapm wg để lấy từ WinGet, tự động kiểm tra SHA-256 và cài qua txapm:
# Tìm kiếm trên WinGet ngay trong txapm
txapm wg search "PowerToys"
# Cài đặt trực tiếp gói từ WinGet thông qua txapm
txapm wg install Microsoft.PowerToys
Kiểm tra phần mềm trên máy & Cập nhật
# Xem các gói đã cài qua txapm
txapm list
# Xem TOÀN BỘ phần mềm đang cài trên Windows (đánh dấu gói nào đã có trong TXA)
txapm list --all
# Kiểm tra và nâng cấp tất cả phần mềm lên bản mới nhất
txapm upgrade --all
Các lệnh tiện ích mới trên txapm
| Lệnh | Viết tắt | Công dụng cho người dùng |
|---|---|---|
txapm doctor | txapm check, status | Kiểm tra toàn diện: phiên bản Windows, trạng thái kết nối các kho (source), WinGet CLI, tài khoản GitHub và dung lượng bộ nhớ đệm |
txapm clean | txapm cache, clear | Xoá các file bộ cài tải tạm trong %TEMP%\txa để giải phóng ổ cứng (txapm clean --all xoá cả log cũ) |
txapm log | txapm logs | Xem danh sách các file log cài đặt gần nhất; gõ txapm log <tên-app> để đọc nội dung log khi cần kiểm tra lỗi |
txapm which <app> | txapm where <app> | Xem chi tiết vị trí cài đặt trên máy, phiên bản, kiến trúc CPU, thư mục portable, biến PATH và đường dẫn file log |
2. Tự động lấy phần mềm từ máy hoặc WinGet với txacli
Không cần mở trình duyệt đi tìm link .exe/.msi hay tính mã SHA-256 thủ công — chỉ cần dùng txacli.
Bước 1: Tìm kiếm phần mềm trên WinGet
Bạn có thể tìm bằng từ khóa bất kỳ hoặc mã ID chính xác:
txacli -s "PowerToys"
txacli -s "Microsoft.PowerToys"
# Hoặc:
txacli search "Unity Hub"
Kết quả trả về bảng danh sách rõ ràng gồm Id, Version và Name:
Found 1 package(s):
Id Version Name
------------------------------------------------------------------------------
Microsoft.PowerToys 0.101.2362.0 PowerToys
To import a package, run:
txacli Microsoft.PowerToys
Bước 2: Tạo gói chuẩn TXA từ tên phần mềm bất kỳ
Chỉ cần truyền tên hiển thị (như trong txapm list --all) hoặc WinGet ID:
# Tạo 1 hoặc nhiều gói cùng lúc vào thư mục manifests/
txacli Microsoft.PowerToys
txacli "GitHub CLI" "GitHub Desktop" "Steam" "Unity Hub"
Bước 3: Quét toàn bộ phần mềm đang có sẵn trên máy của bạn (scan / -i)
Muốn biết trên máy tính của bạn đang cài những phần mềm nào chưa có trên kho TXA?
# Chỉ xem danh sách các phần mềm trên máy có thể thêm vào TXA
txacli scan
# Quét và chọn từng phần mềm theo số thứ tự (ví dụ: 1,3,5 hoặc all)
txacli -i
# Quét và tự động thêm TẤT CẢ không cần hỏi lại
txacli -i -y
3. Tự tạo Kho Phần Mềm Riêng (myrepo) & Đóng góp lên Kho Chính
Tạo kho riêng trên máy hoặc mạng nội bộ
Bạn có thể dùng txacli để gom các phần mềm mình thích vào một thư mục riêng (ví dụ C:\my-txa-repo), sinh REST API (C:\my-txa-api) và gắn vào txapm chỉ bằng 1 câu lệnh:
# Cách 1: Tự động tạo manifest + build API + gắn vào txapm source trong 1 lệnh duy nhất
txacli Postman.Postman -o C:\my-txa-repo --build-api --api-out C:\my-txa-api --add-source myrepo
Hoặc làm từng bước:
# 1. Import gói vào thư mục kho riêng
txacli Postman.Postman -o C:\my-txa-repo --build-api --api-out C:\my-txa-api
# 2. Thêm kho riêng vào txapm
txapm source add myrepo C:\my-txa-repo
# 3. Tìm kiếm hoặc cài đặt từ kho riêng
txapm search postman -s myrepo
txapm install postman -s myrepo
Lưu ý khi dùng cờ
-s <tên-kho>: Khi bạn gõtxapm search chrome -s myrepo,txapmsẽ chỉ tìm bên trongmyrepo. Nếumyrepochỉ mới có mỗiPostman, lệnh sẽ báo không thấy trongmyrepovà gợi ý cho bạn rằngTXAVL.Chromeđang nằm ở kho chínhtxa. Để tìm trên tất cả các kho cùng lúc, hãy bỏ-s myrepo:txapm search chrome
Gửi gói từ kho riêng lên kho chính TXA (submit)
Sau khi tạo gói ở C:\my-txa-repo (hoặc C:\my-txa-api), bạn có thể gửi Pull Request đóng góp lên kho chính bất kỳ lúc nào. Lệnh submit tự động tìm toàn bộ các gói nằm bên trong thư mục bạn truyền vào:
# Truyền thẳng thư mục gốc của kho hoặc thư mục API đều được!
txacli submit C:\my-txa-repo
# Hoặc:
txacreate submit C:\my-txa-repo
txacreate submit C:\my-txa-api
# Nếu chỉ muốn kiểm tra hợp lệ (không mở Pull Request trên GitHub):
txacreate submit C:\my-txa-repo --dry-run
4. Bảng tra cứu tham số txacli
| Lệnh / Tham số | Ý nghĩa | Ví dụ |
|---|---|---|
txacli <tên/ID ...> | Chuyển đổi 1 hoặc nhiều gói từ WinGet sang manifest TXA | txacli Postman.Postman "GitHub CLI" |
txacli -s <từ-khóa> | Tìm kiếm phần mềm trên kho WinGet | txacli -s PowerToys |
txacli scan | Liệt kê phần mềm đã cài trên máy chưa có trong TXA | txacli scan |
txacli -i [-y] | Quét phần mềm trên máy và import tự động vào kho | txacli -i -y |
-o <thư-mục> | Chọn thư mục chứa manifests/ đầu ra | txacli Git.Git -o C:\my-txa-repo |
--build-api | Tự động sinh REST API tĩnh txa.v1 sau khi import | txacli Git.Git --build-api |
--api-out <thư-mục> | Thư mục chứa REST API tĩnh (mặc định: dist/api) | --api-out C:\my-txa-api |
--add-source <tên> | Tự động đăng ký thư mục kho vào txapm source | --add-source myrepo |
--submit | Tự động mở Pull Request lên GitHub sau khi import | txacli Postman.Postman --submit |
--txacreate | Chạy luồng txacreate new đầy đủ (tải file thật & kiểm tra PE) | txacli "GitHub CLI" --txacreate |
--dry-run | Chạy thử nghiệm, kiểm tra hợp lệ nhưng không ghi file / không mở PR | txacli Postman.Postman --dry-run |
txacli submit <thư-mục> | Mở Pull Request cho thư mục release, thư mục repo hoặc thư mục API | txacli submit C:\my-txa-repo |
txacli validate <thư-mục> | Chạy 14 bước kiểm định cho thư mục bất kỳ | txacli validate C:\my-txa-repo --offline |
txacli build-api | Sinh bộ REST API txa.v1 từ thư mục repo | txacli build-api -r C:\my-txa-repo -o C:\my-txa-api |
This guide shows end users how to search, install and manage software with txapm, import software automatically from WinGet or from their own PC with txacli, and create their own software repository or contribute to the main one with txacreate.
The three command-line tools at a glance
Once TXA is installed you have these global commands in any PowerShell or Command Prompt window:
| Tool | What it is for | Quick examples |
|---|---|---|
txapm | Search, silent install, update, uninstall, health check and cache cleanup | txapm install chrometxapm upgrade --alltxapm doctor |
txacli | Search WinGet, scan the software installed on your PC to build TXA packages automatically, create a private repository and send PRs | txacli -s PowerToystxacli -i -ytxacli submit C:\my-txa-repo |
txacreate | Contribute software to the TXA repository through a Pull Request (from a download link, a software name or an existing folder) | txacreate new "GitHub CLI"txacreate submit C:\my-txa-repo |
1. Everyday software management with txapm
Search and install software
You can install by the full ID (TXAVL.Chrome) or by a short name / alias (chrome, vscode, 7zip, git...):
# Search the TXA repository
txapm search chrome
# Silent install (downloads, verifies SHA-256 and installs without clicking Next)
txapm install chrome
txapm install vscode
# Install but show the installer's progress bar
txapm install obs --progress
Install software that is not in the TXA repository yet (straight through the WinGet bridge)
If a program has not reached the TXA repository yet you can still use txapm wg to take it from WinGet, verify its SHA-256 automatically and install it through txapm:
# Search WinGet from inside txapm
txapm wg search "PowerToys"
# Install a WinGet package directly through txapm
txapm wg install Microsoft.PowerToys
Check what is on your PC and update it
# List the packages installed through txapm
txapm list
# List ALL software installed on Windows (marks which ones TXA already has)
txapm list --all
# Check and upgrade everything to the latest version
txapm upgrade --all
Utility commands in txapm
| Command | Alias | What it does for you |
|---|---|---|
txapm doctor | txapm check, status | A full check: Windows version, connection state of every source, the WinGet CLI, your GitHub account and the cache size |
txapm clean | txapm cache, clear | Deletes temporary installer downloads in %TEMP%\txa to free disk space (txapm clean --all also removes old logs) |
txapm log | txapm logs | Lists the most recent install logs; run txapm log <app-name> to read one when you need to track down an error |
txapm which <app> | txapm where <app> | Shows where it is installed, the version, CPU architecture, portable folder, the PATH entry and the log file path |
2. Take software from your PC or WinGet automatically with txacli
No need to open a browser to hunt for a .exe/.msi link or compute a SHA-256 by hand: just use txacli.
Step 1: Search WinGet
Search by any keyword or by the exact ID:
txacli -s "PowerToys"
txacli -s "Microsoft.PowerToys"
# Or:
txacli search "Unity Hub"
The result is a clear table with Id, Version and Name:
Found 1 package(s):
Id Version Name
------------------------------------------------------------------------------
Microsoft.PowerToys 0.101.2362.0 PowerToys
To import a package, run:
txacli Microsoft.PowerToys
Step 2: Create a standard TXA package from any software name
Pass the display name (as shown by txapm list --all) or a WinGet ID:
# Create one or several packages at once in the manifests/ folder
txacli Microsoft.PowerToys
txacli "GitHub CLI" "GitHub Desktop" "Steam" "Unity Hub"
Step 3: Scan everything installed on your PC (scan / -i)
Want to know which programs on your PC are not in the TXA repository yet?
# Just list the programs on your PC that can be added to TXA
txacli scan
# Scan and pick programs by number (for example: 1,3,5 or all)
txacli -i
# Scan and add EVERYTHING without asking again
txacli -i -y
3. Build your own software repository (myrepo) and contribute to the main one
Create a private repository on your PC or intranet
You can use txacli to gather the programs you like into your own folder (for example C:\my-txa-repo), generate the REST API (C:\my-txa-api) and attach it to txapm with a single command:
# Option 1: create the manifests + build the API + attach it to txapm source in one command
txacli Postman.Postman -o C:\my-txa-repo --build-api --api-out C:\my-txa-api --add-source myrepo
Or step by step:
# 1. Import the package into your own repository folder
txacli Postman.Postman -o C:\my-txa-repo --build-api --api-out C:\my-txa-api
# 2. Add the repository to txapm
txapm source add myrepo C:\my-txa-repo
# 3. Search or install from your own repository
txapm search postman -s myrepo
txapm install postman -s myrepo
A note on the
-s <source-name>flag: When you typetxapm search chrome -s myrepo,txapmsearches only insidemyrepo. Ifmyrepoonly holdsPostman, the command says it found nothing inmyrepoand hints thatTXAVL.Chromelives in the maintxasource. To search every source at once, drop-s myrepo:txapm search chrome
Send a package from your repository to the main TXA repository (submit)
After creating a package in C:\my-txa-repo (or C:\my-txa-api) you can open a Pull Request to the main repository at any time. The submit command finds every package inside the folder you pass:
# Pass the repository root or the API folder directly, both work!
txacli submit C:\my-txa-repo
# Or:
txacreate submit C:\my-txa-repo
txacreate submit C:\my-txa-api
# To only check validity (without opening a Pull Request on GitHub):
txacreate submit C:\my-txa-repo --dry-run
4. txacli reference
| Command / flag | Meaning | Example |
|---|---|---|
txacli <name/ID ...> | Convert one or more WinGet packages into TXA manifests | txacli Postman.Postman "GitHub CLI" |
txacli -s <keyword> | Search software in the WinGet repository | txacli -s PowerToys |
txacli scan | List software installed on your PC that TXA does not have | txacli scan |
txacli -i [-y] | Scan the PC and import software into the repository automatically | txacli -i -y |
-o <folder> | Choose the folder that receives the output manifests/ | txacli Git.Git -o C:\my-txa-repo |
--build-api | Generate the static txa.v1 REST API after the import | txacli Git.Git --build-api |
--api-out <folder> | Folder for the static REST API (default: dist/api) | --api-out C:\my-txa-api |
--add-source <name> | Register the repository folder in txapm source | --add-source myrepo |
--submit | Open a Pull Request on GitHub right after the import | txacli Postman.Postman --submit |
--txacreate | Run the full txacreate new flow (downloads the real file and checks the PE) | txacli "GitHub CLI" --txacreate |
--dry-run | A trial run: validates but writes no files and opens no PR | txacli Postman.Postman --dry-run |
txacli submit <folder> | Open a Pull Request for a release folder, a repository folder or an API folder | txacli submit C:\my-txa-repo |
txacli validate <folder> | Run the 14 vetting checks on any folder | txacli validate C:\my-txa-repo --offline |
txacli build-api | Generate the txa.v1 REST API from a repository folder | txacli build-api -r C:\my-txa-repo -o C:\my-txa-api |