Skip to content

buildVersionService

buildVersionService(connection, project, filterIds?): Promise<PackageVersionService>

Defined in: simply-package-core/src/packageVersionService.ts:95

Load packages and package versions from the Dev Hub and build a PackageVersionService over them.

Connection

The Dev Hub connection to query.

SfProject

The SFDX project, used by Package.listVersions for alias resolution.

VersionServiceFilterIds

When provided, only loads packages/versions relevant to these IDs (plus the packages owning any given subscriberVersionIds) instead of every package in the Dev Hub.

Promise<PackageVersionService>

A version service backed by the loaded packages/versions.