Skip to content

craft-hub / CommandCapability

Interface: CommandCapability ​

Defined in: packages/craft-hub/src/types.ts:510

Executable command capability.

Properties ​

availability? ​

optional availability?: CommandAvailability

Defined in: packages/craft-hub/src/types.ts:532


category? ​

optional category?: CommandCategory

Defined in: packages/craft-hub/src/types.ts:523

Built-in commands are categorized; third-party providers may omit this for compatibility.


description? ​

optional description?: string

Defined in: packages/craft-hub/src/types.ts:514


id ​

id: string

Defined in: packages/craft-hub/src/types.ts:511


inputArgSeparator? ​

optional inputArgSeparator?: "--"

Defined in: packages/craft-hub/src/types.ts:531

Separator inserted before resolved inputs for package-manager script invocations.


inputs? ​

optional inputs?: CommandInputDefinition[]

Defined in: packages/craft-hub/src/types.ts:529


invocation ​

invocation: CommandInvocation

Defined in: packages/craft-hub/src/types.ts:528


kind ​

kind: "command"

Defined in: packages/craft-hub/src/types.ts:512


name ​

name: string

Defined in: packages/craft-hub/src/types.ts:513


operation? ​

optional operation?: ReleaseOperation

Defined in: packages/craft-hub/src/types.ts:533


package? ​

optional package?: CommandPackage

Defined in: packages/craft-hub/src/types.ts:527

Built-in commands declare their package boundary; third-party providers may omit it.


script? ​

optional script?: string

Defined in: packages/craft-hub/src/types.ts:516

Shell script declared by a package-manager command, kept separate from its human-readable description.


source ​

source: string

Defined in: packages/craft-hub/src/types.ts:517


sourceLine? ​

optional sourceLine?: number

Defined in: packages/craft-hub/src/types.ts:521

One-based line where this command is declared, when known.


sourcePath? ​

optional sourcePath?: string

Defined in: packages/craft-hub/src/types.ts:519

Absolute path to the file that declared this command, when known.


toolGroupId? ​

optional toolGroupId?: string

Defined in: packages/craft-hub/src/types.ts:525

Qualified plugin tool group that owns this command surface.

Released under the MIT License.