TXA. Kho gói phần mềmPackage index

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
txapmTì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ớ đệmtxapm install chrome
txapm upgrade --all
txapm doctor
txacliTì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 PRtxacli -s PowerToys
txacli -i -y
txacli 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ệnhViết tắtCông dụng cho người dùng
txapm doctortxapm check, statusKiể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 cleantxapm cache, clearXoá 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 logtxapm logsXem 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, txapm sẽ chỉ tìm bên trong myrepo. Nếu myrepo chỉ mới có mỗi Postman, lệnh sẽ báo không thấy trong myrepo và gợi ý cho bạn rằng TXAVL.Chrome đang nằm ở kho chính txa. Để 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ĩaVí dụ
txacli <tên/ID ...>Chuyển đổi 1 hoặc nhiều gói từ WinGet sang manifest TXAtxacli Postman.Postman "GitHub CLI"
txacli -s <từ-khóa>Tìm kiếm phần mềm trên kho WinGettxacli -s PowerToys
txacli scanLiệt kê phần mềm đã cài trên máy chưa có trong TXAtxacli scan
txacli -i [-y]Quét phần mềm trên máy và import tự động vào khotxacli -i -y
-o <thư-mục>Chọn thư mục chứa manifests/ đầu ratxacli Git.Git -o C:\my-txa-repo
--build-apiTự động sinh REST API tĩnh txa.v1 sau khi importtxacli 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
--submitTự động mở Pull Request lên GitHub sau khi importtxacli Postman.Postman --submit
--txacreateChạy luồng txacreate new đầy đủ (tải file thật & kiểm tra PE)txacli "GitHub CLI" --txacreate
--dry-runChạy thử nghiệm, kiểm tra hợp lệ nhưng không ghi file / không mở PRtxacli 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 APItxacli 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-apiSinh bộ REST API txa.v1 từ thư mục repotxacli 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:

ToolWhat it is forQuick examples
txapmSearch, silent install, update, uninstall, health check and cache cleanuptxapm install chrome
txapm upgrade --all
txapm doctor
txacliSearch WinGet, scan the software installed on your PC to build TXA packages automatically, create a private repository and send PRstxacli -s PowerToys
txacli -i -y
txacli submit C:\my-txa-repo
txacreateContribute 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

CommandAliasWhat it does for you
txapm doctortxapm check, statusA full check: Windows version, connection state of every source, the WinGet CLI, your GitHub account and the cache size
txapm cleantxapm cache, clearDeletes temporary installer downloads in %TEMP%\txa to free disk space (txapm clean --all also removes old logs)
txapm logtxapm logsLists 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 type txapm search chrome -s myrepo, txapm searches only inside myrepo. If myrepo only holds Postman, the command says it found nothing in myrepo and hints that TXAVL.Chrome lives in the main txa source. 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 / flagMeaningExample
txacli <name/ID ...>Convert one or more WinGet packages into TXA manifeststxacli Postman.Postman "GitHub CLI"
txacli -s <keyword>Search software in the WinGet repositorytxacli -s PowerToys
txacli scanList software installed on your PC that TXA does not havetxacli scan
txacli -i [-y]Scan the PC and import software into the repository automaticallytxacli -i -y
-o <folder>Choose the folder that receives the output manifests/txacli Git.Git -o C:\my-txa-repo
--build-apiGenerate the static txa.v1 REST API after the importtxacli 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
--submitOpen a Pull Request on GitHub right after the importtxacli Postman.Postman --submit
--txacreateRun the full txacreate new flow (downloads the real file and checks the PE)txacli "GitHub CLI" --txacreate
--dry-runA trial run: validates but writes no files and opens no PRtxacli Postman.Postman --dry-run
txacli submit <folder>Open a Pull Request for a release folder, a repository folder or an API foldertxacli submit C:\my-txa-repo
txacli validate <folder>Run the 14 vetting checks on any foldertxacli validate C:\my-txa-repo --offline
txacli build-apiGenerate the txa.v1 REST API from a repository foldertxacli build-api -r C:\my-txa-repo -o C:\my-txa-api