tpkg [--root <path>] <command> [options]| Option | Meaning |
|---|---|
--root <path> |
Workspace root containing tpkg.lua |
--help |
Show help |
Check the local Toolkit Package Manager runtime.
tpkg doctor
tpkg doctor --sdk--sdk prints detailed SDK and toolchain diagnostics.
Load and validate tpkg.lua.
tpkg loadUse this before restore when checking DSL syntax and model validation.
Print the loaded dependency model as JSON.
tpkg dump-modelPrint dependencies declared in the manifest.
tpkg depsGenerate CMake dependency integration files.
tpkg generate [options]| Option | Meaning |
|---|---|
--toolchain <id> |
Preferred local toolchain profile ID |
| `--config <debug | release>` |
--output <dir> |
Output directory; default .tpkg/generated/cmake |
--override <name=path> |
Override dependency source |
Prepare package cache, build/export dependency artifacts, and update lock state.
tpkg restore [package] [options]| Option | Meaning |
|---|---|
package |
Optional dependency name to restore only one dependency |
--toolchain <id> |
Preferred local toolchain profile ID |
| `--config <debug | release>` |
--override <name=path> |
Override dependency source |
--locked |
Use lockfile entries without updating the lockfile |
--build-only |
Build package workspace without exporting artifacts |
--export-only |
Export artifacts from an existing package build workspace |
--rebuild |
Remove the package build workspace before building |
Update package lock entries.
tpkg update [package] [options]| Option | Meaning |
|---|---|
package |
Optional package to update |
--toolchain <id> |
Preferred local toolchain profile ID |
| `--config <debug | release>` |
--override <name=path> |
Override dependency source |
--all |
Update all non-overridden packages |
Print restored package cache and artifact status.
tpkg packages
tpkg packages --verbose| Option | Meaning |
|---|---|
--override <name=path> |
Override dependency source |
--verbose |
Print build hash and validation details |
Garbage collect unreferenced package caches.
tpkg packages gc [options]| Option | Meaning |
|---|---|
--apply |
Delete unreferenced artifacts instead of dry run |
--package <name> |
Only consider artifacts for one package |
--builds |
Also delete stale package build caches |
--sources |
Also delete stale package source caches |
--toolchain <id> |
Toolchain profile ID for build cache retention |
| `--config <debug | release>` |
Display dependency tree.
tpkg treeClean dependency cache and generated integration files.
tpkg clean [package] [options]| Option | Meaning |
|---|---|
package |
Optional dependency to clean |
--all |
Remove the whole .tpkg directory |
--artifacts |
Remove .tpkg/artifacts |
--sources |
Remove .tpkg/packages source cache |
--lock |
Remove tpkg.lock.toml |
Manage local dependency overrides.
tpkg override list
tpkg override set <name> <path>
tpkg override remove <name>
tpkg override clearDetect and inspect local SDK/toolchains.
tpkg sdk detectDetect SDK/toolchains and write .tpkg/toolchains/host.toml.
tpkg sdk list [--refresh] [--source auto|project-user|workspace|global-user]tpkg sdk show <id>tpkg sdk add <id> [options]Common options:
--source project-user|global-user
--force
--platform <name>
--compiler-kind <name>
--sdk-kind <name>
--host-arch <arch>
--target-arch <arch>
--target-triple <triple>
--cc <path>
--cxx <path>
--linker <path>
--archiver <path>
--rc <path>
--mt <path>
--strip <path>
--ranlib <path>
--ninja <path>
--git <path>
--include <path>
--lib <path>
--bin <path>
--sysroot <path>
--android-sdk <path>
--android-ndk <path>
--android-api <level>
--android-abi <abi>
--jdk <path>
--adb <path>
--java <path>
--javac <path>
--gradle <path>
--env KEY=VALUE
tpkg sdk remove <id> [--source project-user|global-user]tpkg sdk doctor
tpkg sdk dump
tpkg sdk select <id>
tpkg sdk clear