Output examples are illustrative; your versions, paths, sizes and messages can differ. Check your installed version and each command result.
Six steps from a working binary to a checked package.
Having the binary, capturing a tool and checking the result are separate steps, and success at one does not prove the next. Check each result before moving on. Everything here runs without credentials.
- Step 1 of 6
Find AIDC Pack
The MAIT image includes
aidc-pack, and that is the supported way to obtain it: move to a newer image to update it. Standalone executables exist for Linux on x86_64 (amd64) and arm64 for environments without the image. Obtain one only from The MAIT Team, through the support page in the portal, or from your environment owner, together with its expected SHA-256 checksum, and compare it withsha256sum ./aidc-packbefore placing the executable on your path. Do not install a file whose origin or checksum you cannot confirm.What you getAn
aidc-packexecutable from a source you can name. - $ aidc-pack version$ aidc-pack help# example output$ aidc-pack versionaidc-pack 4.1.2$ aidc-pack helpPackage builder for AIDC package distribution systemUsage: aidc-pack [OPTIONS] <COMMAND>Commands:version Print version informationlegal Show copyright and the third-party components in this binaryhelp Print help informationbuild Build a package for a tool versionpublish Publish a package to the hubverify Verify package integrityinspect Inspect package contentsOptions:-v, --verbose Enable verbose output--debug Enable debug output (internal diagnostics)Step 2 of 6
Check that it runs
There is no top-level
--helpor--version; use thehelpandversioncommands, andaidc-pack help buildfor one command. A version answer shows that the program runs. It does not show that a build will work.What you getThe release you are running and the list of commands.
- $ export AIDC_PACK_MODE=directStep 3 of 6
Choose where the build runs
Match the build environment to the platform and architecture of the package you intend to make. Standard capture uses an accessible Docker Engine and the capture image supplied with your release, which must contain AIDC; the local
aidccommand is also needed for the preflight installation. Direct mode removes the Docker requirement but installs and captures in the current environment, so choose an environment where that is expected.Keep enough free space for the installed tool, the extracted staging tree and the compressed archive. A build needs network access to install the tool, and for Docker to pull the capture image the first time.
What you getA build environment that matches the target and a capture mode you chose.
- $ aidc-pack build nodejs 22.23.3# example output · direct mode$ aidc-pack build nodejs 22.23.3Building package for nodejs 22.23.3Target: linux-amd64Verifying nodejs 22.23.3 before packing...[warn] No verification marker found for nodejs 22.23.3. This may indicate the tool was installed before source verification was implemented.[warn] For maximum security, reinstall nodejs 22.23.3 to ensure vendor verification.[ok] Source verification successful for nodejs 22.23.3Capturing nodejs 22.23.3 package...[ok] Captured 4753 files (196362450 bytes)[ok] Package created: ./packages/nodejs/22.23.3/nodejs-22.23.3-linux-amd64.tar.zst[ok] Manifest created: ./packages/nodejs/22.23.3/nodejs-22.23.3-linux-amd64.manifest.jsonCompressed size: 34590210 bytesBLAKE3: ae96157e338191445468e93894a06d19a37d61ef0cdf3192991fae31bd144c4dNote: Package signature will be added by hub when published[ok] Package verified (6 commands, 0 env keys)Step 4 of 6
Build a first package
Use the current environment's native target and a plain tool name. The tool must be installable by
aidc; here it is Node.js 22.23.3.In this illustration, an existing installation has no verification marker and the build accepts it with a warning. Decide whether that installation suits distribution. The archive and manifest are written before the final check, so a failure at the end still leaves files: do not publish a pair whose
buildexited1.What you getA
.tar.zstarchive and a.manifest.jsonunderpackages/nodejs/22.23.3/. - $ aidc-pack inspect nodejs 22.23.3$ aidc-pack inspect nodejs 22.23.3 --files# example output · abridged$ aidc-pack inspect nodejs 22.23.3 --filesInspecting: ./packages/nodejs/22.23.3/nodejs-22.23.3-linux-amd64.tar.zstCompressed size: 34590210 bytesBLAKE3: ae96157e338191445468e93894a06d19a37d61ef0cdf3192991fae31bd144c4dTotal files: 4753Uncompressed size: 196362450 bytesCompression ratio: 82.4%Files:... individual archive entries omitted; review your own file listing ...Step 5 of 6
Inspect the contents
inspectreads only the archive, not the manifest, and it does not run anything. The platform in the filename is a label, not a check of the binary architecture.What you getThe size, checksum and file listing of the archive you would distribute.
- $ aidc-pack -v verify nodejs 22.23.3# example output · abridged$ aidc-pack -v verify nodejs 22.23.3aidc-pack version 4.1.2Verifying package: ./packages/nodejs/22.23.3/nodejs-22.23.3-linux-amd64.tar.zst...No credentials path — skipping hub baseline compare[ok] expected executable node → bin/node[ok] manifest shim node → bin/node[ok] Package verification: OKBLAKE3: ae96157e338191445468e93894a06d19a37d61ef0cdf3192991fae31bd144c4dFiles: 5866Commands: bin/node, bin/npm, bin/npx, node (bin/node), npm (bin/npm), npx (bin/npx)Step 6 of 6
Verify the pair
verifydoes not run Node.js, check a Hub signature or test library loading. Without credentials the comparison with the published package is skipped and the local checks still run. Check the packaged tool in its destination environment before you distribute it.What you getA pair that passed the local gate, ready for review and, when you have credentials, for publication.
Where to go next.
- Workflows, for reviewing, catching a bad pair and publishing