ait external — 完整參考
檢視、物化、固定、連結、解除連結並診斷外部儲存庫依賴。
適用對象: 開發者與依賴維運
作用邊界#
用途: 檢視、物化、固定、連結、解除連結並診斷外部儲存庫依賴。
影響類別: status 和 doctor 只做檢視;update、link 和 unlink 會改變依賴或工作區的物化狀態。
覆蓋: ait external 下共 6 個公開 help surface。
下面的程式碼區塊原樣保留 1.1.1 二進位的輸出,包含它給出的每一個引數、選項、 預設值、可選值、衝突關係和必填要求。
完整命令樹#
ait external
ait external update
ait external status
ait external doctor
ait external link
ait external unlink原樣輸出的 help#
ait external#
二進位描述: Inspect, diagnose, resolve, pin, restore, and locally link external Repository dependencies declared by ait-external.toml. Resolution writes an exact ait-external.lock; generated content is placed at each repository-relative destination declared in the manifest.
Inspect, diagnose, resolve, pin, restore, and locally link external Repository dependencies declared by ait-external.toml. Resolution writes an exact ait-external.lock; generated content is placed at each repository-relative destination declared in the manifest.
Usage: ait external <COMMAND>
Commands:
update Resolve and restore declared external Repositories.
status Inspect external pins, links, lock drift, and restored content.
doctor Evaluate external dependency release readiness without repairing it.
link Use another local checkout for one declared direct external.
unlink Remove one local external override and restore locked content.
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')說明
檢視、診斷、解析、pin、恢復並在本地連結 ait-external.toml 宣告的外部 Repository 依賴。解析會寫入確切的 ait-external.lock;生成內容放在 manifest 宣告的每個儲存庫相對目標位置。
| 引數 / 選項 | 說明 |
|---|---|
update | 解析並恢復已宣告的外部 Repository。 |
status | 檢視外部依賴 pin、連結、lock 漂移和已恢復內容。 |
doctor | 評估外部依賴的發布就緒狀態,不做修復。 |
link | 為一條已宣告的直接外部依賴改用另一個本地檢出。 |
unlink | 刪除一個本地外部覆蓋並恢復鎖定內容。 |
help | 列印本訊息或給定子命令的幫助 |
ait external update#
二進位描述: Resolve and restore declared external Repositories. With no NAME, preserve the manifest's exact pins while updating the complete dependency lock. NAME requires exactly one of --to or --latest. --locked is a separate target-free mode that reads an existing drift-free lockfile without changing the manifest or lockfile.
Resolve and restore declared external Repositories. With no NAME, preserve the manifest's exact pins while updating the complete dependency lock. NAME requires exactly one of --to or --latest. --locked is a separate target-free mode that reads an existing drift-free lockfile without changing the manifest or lockfile.
Usage: ait external update [--validate] [--no-recursive] [--json]
ait external update <NAME> (--to <SNAPSHOT> | --latest) [--validate] [--no-recursive] [--json]
ait external update --locked [--validate] [--no-recursive] [--json]
Arguments:
[NAME]
Unique direct external name; requires --to or --latest.
Options:
--to <SNAPSHOT>
Pin NAME to this exact immutable Snapshot before resolving and restoring its files.
--latest
Resolve NAME's declared remote and line head, then persist that exact Snapshot pin.
--locked
Restore external files from the existing drift-free ait-external.lock without resolving or changing pins; active local links are rejected.
--validate
Prepare the selected files and run destination toolchain checks first; install them only when validation has no errors.
--no-recursive
Restore direct external dependencies only; the resolved lockfile still records the complete dependency graph.
--json
Emit the complete machine-readable update report.
-h, --help
Print help (see a summary with '-h')說明
解析並恢復已宣告的外部 Repository。未給 NAME 時,保留 manifest 的確切 pin,同時更新完整依賴 lock。給出 NAME 時必須且只能使用 --to 或 --latest 之一。--locked 是獨立且不帶目標的模式,讀取現有無漂移 lockfile,不改動 manifest 或 lockfile。
ait external status#
二進位描述: Read the manifest, lockfile, local links, destination paths, and generated content without repairing or changing them. The report explains whether content is present, missing, linked, dirty, or outdated; lock drift is reported separately.
Read the manifest, lockfile, local links, destination paths, and generated content without repairing or changing them. The report explains whether content is present, missing, linked, dirty, or outdated; lock drift is reported separately.
Usage: ait external status [OPTIONS]
Options:
--json
Emit the complete machine-readable status report.
-h, --help
Print help (see a summary with '-h')說明
讀取 manifest、lockfile、本地連結、目標路徑和生成內容,不修復或改動它們。報告說明內容是存在、缺失、已連結、dirty 還是過期;lock 漂移單獨報告。
ait external doctor#
二進位描述: Check the manifest, lockfile, restored content, local links, destination bindings, licenses, and applicable current-source readiness. The report is always emitted. By default findings are diagnostic only; --fail-on-blocking returns exit code 2 when release_ready is false.
Check the manifest, lockfile, restored content, local links, destination bindings, licenses, and applicable current-source readiness. The report is always emitted. By default findings are diagnostic only; --fail-on-blocking returns exit code 2 when release_ready is false.
Usage: ait external doctor [OPTIONS]
Options:
--fail-on-blocking
Return exit code 2 after emitting the report when release-blocking findings exist.
--json
Emit the complete machine-readable readiness report.
-h, --help
Print help (see a summary with '-h')說明
檢查 manifest、lockfile、已恢復內容、本地連結、目標繫結、授權條款和適用的目前原始碼就緒狀態。始終輸出報告。預設情況下發現項僅供診斷;release_ready 為 false 時,--fail-on-blocking 傳回退出碼 2。
ait external link#
二進位描述: Record a local development override in ait-external.links.toml. NAME must match exactly one direct ait-external.toml declaration. PATH must be an existing directory outside the current Repository; regular updates preserve the override, while locked restores and release checks reject active links.
Record a local development override in ait-external.links.toml. NAME must match exactly one direct ait-external.toml declaration. PATH must be an existing directory outside the current Repository; regular updates preserve the override, while locked restores and release checks reject active links.
Usage: ait external link [OPTIONS] <NAME> <PATH>
Arguments:
<NAME>
Unique direct external name declared by ait-external.toml.
<PATH>
Existing local checkout directory; relative paths resolve from the Repository root.
Options:
--json
Emit the complete machine-readable link result.
-h, --help
Print help (see a summary with '-h')說明
在 ait-external.links.toml 中記錄本地開發 override。NAME 必須精確匹配一條直接 ait-external.toml 宣告。PATH 必須是目前 Repository 外已存在的目錄;普通更新保留 override,locked 恢復和 release 檢查拒絕活動連結。
ait external unlink#
二進位描述: Remove NAME from ait-external.links.toml. When ait-external.lock exists, restore the matching direct external and its recursive subtree before committing removal of the override. A failed restore leaves the logical link active.
Remove NAME from ait-external.links.toml. When ait-external.lock exists, restore the matching direct external and its recursive subtree before committing removal of the override. A failed restore leaves the logical link active.
Usage: ait external unlink [OPTIONS] <NAME>
Arguments:
<NAME>
Local external override name to remove.
Options:
--json
Emit the complete machine-readable unlink and restoration result.
-h, --help
Print help (see a summary with '-h')說明
從 ait-external.links.toml 中刪除 NAME。當 ait-external.lock 存在時,會先恢復匹配的直接外部依賴及其遞迴子樹,再提交刪除該覆蓋。恢復失敗時邏輯連結保持活動。