Interface: ICliCommandDefinition
Static definition of a CLI command including its name, parameters, and execution action.
Properties
command
command:
string
The command name.
description
description:
string
The command description.
example
example:
string
An example invocation string shown in help output.
params
params:
ICliCommandDefinitionParam[]
The params available for the command.
aliases?
optionalaliases?:string[]
Deprecated names that resolve to this command with a warning.
action
action: (
engineCore,envVars,params) =>Promise<unknown>
The method to execute for the command.
Parameters
engineCore
IEngineCore
envVars
params
Returns
Promise<unknown>
requiresEngineStarted?
optionalrequiresEngineStarted?:boolean
Indicates whether the engine needs to be started before executing the command.
Default
true
requiresNodeIdentity?
optionalrequiresNodeIdentity?:boolean
Indicates whether the engine needs the node identity to be set if configured to use.
Default
true
requiresOrgIdentity?
optionalrequiresOrgIdentity?:boolean
Indicates whether the engine needs the organization identity to be set.
Default
true
singleTenantOnly?
optionalsingleTenantOnly?:boolean
Indicates whether this command is only available in single-tenant mode.