浏览 1.0.0 文档
1.0.0 文档修订 2

ait external — 完整参考

查看、物化、固定、链接、解除链接并诊断外部仓库依赖。

适用人群: 开发者与依赖运维

作用边界#

用途: 查看、物化、固定、链接、解除链接并诊断外部仓库依赖。

影响类别: status 和 doctor 只做查看;update、link 和 unlink 会改变依赖或工作区的物化状态。

覆盖: ait external 下共 6 个公开 help surface。

下面的代码块原样保留 1.0.0 二进制的输出,包含它给出的每一个参数、选项、 默认值、可选值、冲突关系和必填要求。

完整命令树#

Code · text
ait external
ait external update
ait external status
ait external doctor
ait external link
ait external unlink

原样输出的 help#

ait external#

二进制描述: Inspect, diagnose, resolve, pin, materialize, and locally link external Repository dependencies declared by ait-external.toml. Resolution writes an exact ait-external.lock; generated content is materialized below each declaration's repository-relative destination.

Code · text
Inspect, diagnose, resolve, pin, materialize, and locally link external Repository dependencies declared by ait-external.toml. Resolution writes an exact ait-external.lock; generated content is materialized below each declaration's repository-relative destination.

Usage: ait external <COMMAND>

Commands:
  update  Resolve and materialize declared external Repositories.
  status  Inspect external pins, links, lock drift, and materialization state.
  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')

ait external update#

二进制描述: Resolve and materialize declared external Repositories. With no NAME, preserve the manifest's exact pins while reconciling the complete lock DAG. NAME requires exactly one of --to or --latest. --locked is a separate target-free mode that reads an existing drift-free lockfile without changing manifest or lock authority.

Code · text
Resolve and materialize declared external Repositories. With no NAME, preserve the manifest's exact pins while reconciling the complete lock DAG. NAME requires exactly one of --to or --latest. --locked is a separate target-free mode that reads an existing drift-free lockfile without changing manifest or lock authority.

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 materializing.

      --latest
          Resolve NAME's declared remote and line head, then persist that exact Snapshot pin.

      --locked
          Materialize the existing drift-free ait-external.lock without resolving or changing pins; active local links are rejected.

      --validate
          Stage the selected materialization and binding toolchain probes first; apply it only when validation has no errors.

      --no-recursive
          Materialize direct externals only; the resolved lockfile remains a complete recursive DAG.

      --json
          Emit the complete machine-readable update report.

  -h, --help
          Print help (see a summary with '-h')

ait external status#

二进制描述: Read manifest, lockfile, local-link, binding-path, and generated-materialization facts without repairing or changing them. States include materialized, missing, linked, dirty, and outdated; lock drift is reported separately.

Code · text
Read manifest, lockfile, local-link, binding-path, and generated-materialization facts without repairing or changing them. States include materialized, missing, linked, dirty, and 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')

ait external doctor#

二进制描述: Evaluate manifest, lockfile, materialization, local-link, binding, license, 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.

Code · text
Evaluate manifest, lockfile, materialization, local-link, binding, license, 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')

二进制描述: 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 this authoritative Repository; regular updates preserve the override, while locked and release-ready materialization reject active links.

Code · text
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 this authoritative Repository; regular updates preserve the override, while locked and release-ready materialization 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')

二进制描述: 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.

Code · text
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')

Version authority

Checked against the exact 1.0.0 source

This page is public documentation, not a second product contract. Use the exact source and distribution contract for release authority.

Owning component Snapshots
  • ait-coreSNP-B06A48DA0245
  • ait-serverSNP-E90456E6425E
  • ait-runnerSNP-6B0A1BB3AFAD
  • ait-pythonSNP-973E3BFAF3DE
  • ait-nodeSNP-F962CC66AA62