Skip to main content

updateCommand

plugin.projectStructure.updateCommand(packageId: string, commandId: string, updates: Partial<RunCommand>, workspacePath?: string): Promise<ProjectStructureUpdateResponse>

Update a run command

Parameters

ParameterTypeRequiredDescription
packageIdstringYes
commandIdstringYes
updatesPartial<RunCommand>Yes
workspacePathstringNo

Returns

Promise<ProjectStructureUpdateResponse>

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.projectStructure.updateCommand('packageId', 'commandId', /* Partial<RunCommand> */);
console.log(result);