Skip to main content

addDeployment

plugin.projectStructure.addDeployment(packageId: string, config: Omit<DeploymentConfig, "id">, workspacePath?: string): Promise<ProjectStructureUpdateResponse>

Add a deployment config to a package

Parameters

ParameterTypeRequiredDescription
packageIdstringYes
configOmit<DeploymentConfig, "id">Yes
workspacePathstringNo

Returns

Promise<ProjectStructureUpdateResponse>

Example

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

const result = await plugin.projectStructure.addDeployment('packageId', /* Omit<DeploymentConfig, "id"> */);
console.log(result);