Skip to content
ContractSpec
Start here

reference

CLI command packs

Portable metadata and consumer discovery controls for ContractSpec CLI command packs.

field.key.label
docs.tech.contracts.cli-command-packs
field.version.label
field.type.label
field.title.label
CLI command packs
field.tags.label
cli,command-pack,configuration
field.owners.label
field.stability.label
public

CLI command packs

Published command packs expose contractspec.commandPack metadata containing a module entry and a CliCommandPackSpec. The CLI discovers only direct consumer dependencies with that metadata.

Consumers can constrain discovery with .contractsrc.json:

json
{
  "commandPacks": {
    "include": ["@lssm-tech/integration.cli-contractspec-ai"],
    "exclude": ["@lssm-tech/integration.cli-contractspec-examples"]
  }
}

Exclusion wins when a package appears in both lists. Runtime registration and conflict handling are owned by @lssm-tech/lib.cli-runtime.