Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/code / DeployOptions

Interface: DeployOptions

Defined in: packages/b2c-tooling-sdk/src/operations/code/deploy.ts:37

Options for finding cartridges.

Extends

Properties

activate?

optional activate: boolean

Defined in: packages/b2c-tooling-sdk/src/operations/code/deploy.ts:39

Activate the code version after deploy


delete?

optional delete: boolean

Defined in: packages/b2c-tooling-sdk/src/operations/code/deploy.ts:43

Delete existing cartridges before uploading


exclude?

optional exclude: string[]

Defined in: packages/b2c-tooling-sdk/src/operations/code/cartridges.ts:28

Cartridge names to exclude

Inherited from

FindCartridgesOptions.exclude


firstMatchOnly?

optional firstMatchOnly: boolean

Defined in: packages/b2c-tooling-sdk/src/operations/code/cartridges.ts:46

When true, stop at the first matching cartridge and return only that one. Useful for existence checks (e.g. workspace-type detection) where the full list is not needed — it lets the underlying scan short-circuit instead of enumerating every .project file. Filters from include/exclude are applied while scanning, so the returned cartridge always satisfies them.

Inherited from

FindCartridgesOptions.firstMatchOnly


include?

optional include: string[]

Defined in: packages/b2c-tooling-sdk/src/operations/code/cartridges.ts:26

Cartridge names to include (if empty, all are included)

Inherited from

FindCartridgesOptions.include


maxDepth?

optional maxDepth: number

Defined in: packages/b2c-tooling-sdk/src/operations/code/cartridges.ts:38

Maximum directory depth to recurse when searching for .project files, counted in path segments relative to the search directory (so a cartridge at cartridges/<name>/.project is depth 3). When omitted the search is unbounded (default), preserving behavior for callers that expect a full recursive walk. Bound this for untrusted/broad roots (e.g. an MCP server that may be launched from a home directory) to avoid scanning the whole filesystem tree.

Inherited from

FindCartridgesOptions.maxDepth


onProgress()?

optional onProgress: (info) => void

Defined in: packages/b2c-tooling-sdk/src/operations/code/deploy.ts:45

Callback for progress updates during long-running operations

Parameters

info

UploadProgressInfo

Returns

void


reload?

optional reload: boolean

Defined in: packages/b2c-tooling-sdk/src/operations/code/deploy.ts:41

Reload (toggle activation to force reload) the code version after deploy

Released under the Apache-2.0 License.