Skip to content

getPackageVersionReport

getPackageVersionReport(packageVersionId, devHubAliasOrUsername): Promise<PackageVersionReportResult>

Defined in: packages/simply-cicd-core/src/sfPackages.ts:227

The Dev Hub’s report for one package version: what sf package version report --json returns, including the computed Version (major.minor.patch.build), Tag, Description and CodeCoverage.

Unlike the CLI, CodeCoverage is null (not 'N/A') for a version that skipped validation or belongs to an org-dependent package.

string

A 04t subscriber package version ID (or 05i package version ID).

string

The Dev Hub that owns the package. Must already be authenticated.

Promise<PackageVersionReportResult>

If the Dev Hub can’t be resolved or the version doesn’t exist.