Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0574be5
feat: adding code coverage option to the convert command
smotwani11 Jun 11, 2025
07959d1
feat: adding code coverage option to the convert command with snapshot
smotwani11 Jun 11, 2025
a6cb4d4
feat: adding code coverage option to the convert command with snapsho…
smotwani11 Jun 12, 2025
3a8d824
Update test/commands/package/packageConvert.test.ts
shetzel Jun 12, 2025
542cc69
feat: adding code coverage option linking with packaging
smotwani11 Jun 13, 2025
ebd51da
feat: adding code coverage option description to the convert command
smotwani11 Jun 13, 2025
a7c59a2
Merge pull request #977 from salesforcecli/t/2gp-readiness/W-18760756…
shetzel Jun 13, 2025
2473c54
chore(release): 2.16.0 [skip ci]
svc-cli-bot Jun 13, 2025
58cd2f2
feat: added bundle create
dawson-david-salesforce Jun 10, 2025
4ec4a4c
feat: test for bundle create
dawson-david-salesforce Jun 11, 2025
caca9fa
feat: created bundle list command
dawson-david-salesforce Jun 11, 2025
1a2274a
refactor: cahnged folder name for proper command
dawson-david-salesforce Jun 13, 2025
7fd279d
docs: renamed bundles -> bundle
dawson-david-salesforce Jun 13, 2025
b40cadd
feat: created bundle version create
dawson-david-salesforce Jun 18, 2025
0011cc6
style: renamed bundle message file for consistency
dawson-david-salesforce Jun 19, 2025
e3edf84
style: added Bundle to list class
dawson-david-salesforce Jun 20, 2025
4f4a6a0
feat: added package version list
dawson-david-salesforce Jun 23, 2025
4c30299
fix: removed N/A injection from plugin
dawson-david-salesforce Jun 23, 2025
7f0a578
fix: removed force alias
dawson-david-salesforce Jun 23, 2025
693bba7
fix: generated new schemas
dawson-david-salesforce Jun 23, 2025
34da2e4
feat: non tested implementation of package bundle version report
dawson-david-salesforce Jun 24, 2025
55ac9ef
feat: created package bundle version report
dawson-david-salesforce Jun 25, 2025
2f731a0
style: use getcomponent Packges now, reverted changes made in non bun…
dawson-david-salesforce Jun 25, 2025
2b49dba
feat: created pakcage bundle install command
dawson-david-salesforce Jul 2, 2025
f06169a
feat: bare bones package bundle delete
dawson-david-salesforce Jun 27, 2025
b92cd39
feat: created package bundle delete
dawson-david-salesforce Jun 30, 2025
3d68902
fix: removed undelete
dawson-david-salesforce Jun 30, 2025
21c98fc
fix: deleted message from wrong file
dawson-david-salesforce Jun 30, 2025
11865ff
Update list.ts
dawson-david-salesforce Jul 7, 2025
0d6b5ab
Update report.ts
dawson-david-salesforce Jul 7, 2025
3c2a780
fix: hide comments and rebase
dawson-david-salesforce Jul 11, 2025
e0831f1
fix: actually hid commands this time
dawson-david-salesforce Jul 11, 2025
e437d05
Merge branch 'packagingDistribution/packageBundles' into t/packaging-…
dawson-david-salesforce Jul 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# [2.16.0](https://github.com/salesforcecli/plugin-packaging/compare/2.15.4...2.16.0) (2025-06-13)

### Features

- adding code coverage option description to the convert command ([ebd51da](https://github.com/salesforcecli/plugin-packaging/commit/ebd51da9d6607d0bbbe10edcf37fec5924f7b7f8))
- adding code coverage option linking with packaging ([542cc69](https://github.com/salesforcecli/plugin-packaging/commit/542cc694738f62f89939d156654d5dcffe7b4937))
- adding code coverage option to the convert command ([0574be5](https://github.com/salesforcecli/plugin-packaging/commit/0574be591647c9fa8da31d44a734f41a3396fbaa))
- adding code coverage option to the convert command with snapshot ([07959d1](https://github.com/salesforcecli/plugin-packaging/commit/07959d18345974793d6dd4e6287c80511d337fb3))
- adding code coverage option to the convert command with snapshot and tests ([a6cb4d4](https://github.com/salesforcecli/plugin-packaging/commit/a6cb4d4370f64cfeb110c17f8b4fecc146b47298))

## [2.15.4](https://github.com/salesforcecli/plugin-packaging/compare/2.15.3...2.15.4) (2025-06-10)

### Bug Fixes
Expand Down
69 changes: 41 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ Convert a managed-released first-generation managed package into a second-genera
```
USAGE
$ sf package convert -v <value> -p <value> [--json] [--flags-dir <value>] [--api-version <value>] [-k <value>] [-f
<value>] [-x] [-w <value>] [-m <value>] [--verbose] [-a <value>]
<value>] [-x] [-w <value>] [-m <value>] [--verbose] [-a <value>] [-c]

FLAGS
-a, --patch-version=<value> Specific released patch version to be converted.
-c, --code-coverage Calculate and store the code coverage percentage by running the packaged Apex tests
included in this package version.
-f, --definition-file=<value> Path to a definition file that contains features and org preferences that the metadata
of the package version depends on.
-k, --installation-key=<value> Installation key for key-protected package.
Expand Down Expand Up @@ -99,6 +101,9 @@ DESCRIPTION
To protect the contents of your package and to prevent unauthorized installation of your package, specify the
--installation-key flag.

To promote a package version to released, you must use the --code-coverage parameter. The package must also meet the
code coverage requirements.

To list package version creation requests in the org, run "sf package version create list".

ALIASES
Expand All @@ -119,6 +124,14 @@ FLAG DESCRIPTIONS

Specify a released patch version as major.minor.patch to convert to a second-generation managed package version.

-c, --code-coverage

Calculate and store the code coverage percentage by running the packaged Apex tests included in this package
version.

Before you can promote and release a managed package version, the Apex code must meet a minimum 75% code coverage
requirement.

-f, --definition-file=<value>

Path to a definition file that contains features and org preferences that the metadata of the package version
Expand All @@ -140,7 +153,7 @@ FLAG DESCRIPTIONS
--installation-key-bypass flag is required.
```

_See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/convert.ts)_
_See code: [src/commands/package/convert.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/convert.ts)_

## `sf package create`

Expand Down Expand Up @@ -219,7 +232,7 @@ FLAG DESCRIPTIONS
Org-Dependent Unlocked Packages" in the Salesforce DX Developer Guide.
```

_See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/create.ts)_
_See code: [src/commands/package/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/create.ts)_

## `sf package delete`

Expand Down Expand Up @@ -261,7 +274,7 @@ EXAMPLES
$ sf package delete --package 0Ho... --target-dev-hub devhub@example.com
```

_See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/delete.ts)_
_See code: [src/commands/package/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/delete.ts)_

## `sf package install`

Expand Down Expand Up @@ -360,7 +373,7 @@ FLAG DESCRIPTIONS
- Delete: Delete all removed components that can be safely deleted, and deprecate the other components.
```

_See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/install.ts)_
_See code: [src/commands/package/install.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/install.ts)_

## `sf package install report`

Expand Down Expand Up @@ -393,7 +406,7 @@ EXAMPLES
$ sf package install report --request-id 0Hf... --target-org me@example.com
```

_See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/install/report.ts)_
_See code: [src/commands/package/install/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/install/report.ts)_

## `sf package installed list`

Expand Down Expand Up @@ -425,7 +438,7 @@ EXAMPLES
$ sf package installed list --target-org me@example.com
```

_See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/installed/list.ts)_
_See code: [src/commands/package/installed/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/installed/list.ts)_

## `sf package list`

Expand Down Expand Up @@ -463,7 +476,7 @@ EXAMPLES
$ sf package list --target-dev-hub devhub@example.com --verbose
```

_See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/list.ts)_
_See code: [src/commands/package/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/list.ts)_

## `sf package push-upgrade abort`

Expand Down Expand Up @@ -503,7 +516,7 @@ EXAMPLES
$ sf package push-upgrade abort --push-request-id 0DV... --target-dev-hub devhub@example.com
```

_See code: [src/commands/package/push-upgrade/abort.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/push-upgrade/abort.ts)_
_See code: [src/commands/package/push-upgrade/abort.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/push-upgrade/abort.ts)_

## `sf package push-upgrade list`

Expand Down Expand Up @@ -562,7 +575,7 @@ EXAMPLES
$ sf package push-upgrade list --package 033xyz –-status Failed
```

_See code: [src/commands/package/push-upgrade/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/push-upgrade/list.ts)_
_See code: [src/commands/package/push-upgrade/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/push-upgrade/list.ts)_

## `sf package push-upgrade report`

Expand Down Expand Up @@ -604,7 +617,7 @@ EXAMPLES
$ sf package push-upgrade report --push-request-id 0DV... --target-dev-hub devhub@example.com
```

_See code: [src/commands/package/push-upgrade/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/push-upgrade/report.ts)_
_See code: [src/commands/package/push-upgrade/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/push-upgrade/report.ts)_

## `sf package push-upgrade schedule`

Expand Down Expand Up @@ -686,7 +699,7 @@ FLAG DESCRIPTIONS
Overrides the value of the target-dev-hub configuration variable, if set.
```

_See code: [src/commands/package/push-upgrade/schedule.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/push-upgrade/schedule.ts)_
_See code: [src/commands/package/push-upgrade/schedule.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/push-upgrade/schedule.ts)_

## `sf package uninstall`

Expand Down Expand Up @@ -734,7 +747,7 @@ EXAMPLES
$ sf package uninstall --package "Undesirable Package Alias"
```

_See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/uninstall.ts)_
_See code: [src/commands/package/uninstall.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/uninstall.ts)_

## `sf package uninstall report`

Expand Down Expand Up @@ -767,7 +780,7 @@ EXAMPLES
$ sf package uninstall report --request-id 06y... --target-org me@example.com
```

_See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/uninstall/report.ts)_
_See code: [src/commands/package/uninstall/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/uninstall/report.ts)_

## `sf package update`

Expand Down Expand Up @@ -822,7 +835,7 @@ FLAG DESCRIPTIONS
associated with your package.
```

_See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/update.ts)_
_See code: [src/commands/package/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/update.ts)_

## `sf package version create`

Expand Down Expand Up @@ -997,7 +1010,7 @@ FLAG DESCRIPTIONS
periods of no output from commands.
```

_See code: [src/commands/package/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/create.ts)_
_See code: [src/commands/package/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/create.ts)_

## `sf package version create list`

Expand Down Expand Up @@ -1058,7 +1071,7 @@ EXAMPLES
$ sf package version create list --created-last-days 0 --status Success
```

_See code: [src/commands/package/version/create/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/create/list.ts)_
_See code: [src/commands/package/version/create/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/create/list.ts)_

## `sf package version create report`

Expand Down Expand Up @@ -1101,7 +1114,7 @@ EXAMPLES
$ sf package version create report --package-create-request-id 08c... --target-dev-hub devhub@example.com
```

_See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/create/report.ts)_
_See code: [src/commands/package/version/create/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/create/report.ts)_

## `sf package version delete`

Expand Down Expand Up @@ -1142,7 +1155,7 @@ EXAMPLES
$ sf package version delete --package 04t... --target-org devhub@example.com
```

_See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/delete.ts)_
_See code: [src/commands/package/version/delete.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/delete.ts)_

## `sf package version displayancestry`

Expand Down Expand Up @@ -1202,7 +1215,7 @@ FLAG DESCRIPTIONS
You can use the DOT code output in graph visualization software to create tree visualizations.
```

_See code: [src/commands/package/version/displayancestry.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/displayancestry.ts)_
_See code: [src/commands/package/version/displayancestry.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/displayancestry.ts)_

## `sf package version list`

Expand Down Expand Up @@ -1278,7 +1291,7 @@ EXAMPLES
$ sf package version list --packages exp-mgr,exp-mgr-util --released --modified-last-days 0
```

_See code: [src/commands/package/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/list.ts)_
_See code: [src/commands/package/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/list.ts)_

## `sf package version promote`

Expand Down Expand Up @@ -1322,7 +1335,7 @@ EXAMPLES
$ sf package version promote --package "Awesome Package Alias"
```

_See code: [src/commands/package/version/promote.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/promote.ts)_
_See code: [src/commands/package/version/promote.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/promote.ts)_

## `sf package version report`

Expand Down Expand Up @@ -1362,7 +1375,7 @@ EXAMPLES
$ sf package version report --package "Your Package Alias" --target-dev-hub devhub@example.com
```

_See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/report.ts)_
_See code: [src/commands/package/version/report.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/report.ts)_

## `sf package version update`

Expand Down Expand Up @@ -1415,7 +1428,7 @@ EXAMPLES
$ sf package version update --package 04t... --version-description "New Package Version Description"
```

_See code: [src/commands/package/version/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package/version/update.ts)_
_See code: [src/commands/package/version/update.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package/version/update.ts)_

## `sf package1 version create`

Expand Down Expand Up @@ -1482,7 +1495,7 @@ FLAG DESCRIPTIONS
subscribers.
```

_See code: [src/commands/package1/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package1/version/create.ts)_
_See code: [src/commands/package1/version/create.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package1/version/create.ts)_

## `sf package1 version create get`

Expand Down Expand Up @@ -1515,7 +1528,7 @@ EXAMPLES
$ sf package1 version create get --request-id 0HD... --target-org myorg@example.com
```

_See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package1/version/create/get.ts)_
_See code: [src/commands/package1/version/create/get.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package1/version/create/get.ts)_

## `sf package1 version display`

Expand Down Expand Up @@ -1549,7 +1562,7 @@ EXAMPLES
$ sf package1 version display --package-version-id 04t... --target-org myorg@example.com
```

_See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package1/version/display.ts)_
_See code: [src/commands/package1/version/display.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package1/version/display.ts)_

## `sf package1 version list`

Expand Down Expand Up @@ -1587,6 +1600,6 @@ FLAG DESCRIPTIONS
If not specified, shows all versions for all packages (managed and unmanaged) in the org.
```

_See code: [src/commands/package1/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.15.4/src/commands/package1/version/list.ts)_
_See code: [src/commands/package1/version/list.ts](https://github.com/salesforcecli/plugin-packaging/blob/2.16.0/src/commands/package1/version/list.ts)_

<!-- commandsstop -->
19 changes: 10 additions & 9 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@
"flags": ["api-version", "description", "flags-dir", "json", "loglevel", "name", "target-dev-hub"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": [],
"command": "package:bundle:delete",
"flagAliases": ["apiversion", "noprompt", "target-hub-org", "targetdevhubusername"],
"flagChars": ["b", "n", "v"],
"flags": ["api-version", "bundle", "flags-dir", "json", "loglevel", "no-prompt", "target-dev-hub"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": [],
"command": "package:bundle:install",
Expand Down Expand Up @@ -97,14 +105,6 @@
"flags": ["api-version", "flags-dir", "json", "loglevel", "package-install-request-id", "target-org", "verbose"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": [],
"command": "package:bundle:delete",
"flagAliases": ["apiversion", "noprompt", "target-hub-org", "targetdevhubusername"],
"flagChars": ["b", "n", "v"],
"flags": ["api-version", "bundle", "flags-dir", "json", "loglevel", "no-prompt", "target-dev-hub"],
"plugin": "@salesforce/plugin-packaging"
},
{
"alias": [],
"command": "package:bundle:list",
Expand Down Expand Up @@ -187,10 +187,11 @@
"target-hub-org",
"targetdevhubusername"
],
"flagChars": ["a", "f", "k", "m", "p", "s", "v", "w", "x"],
"flagChars": ["a", "c", "f", "k", "m", "p", "s", "v", "w", "x"],
"flags": [
"api-version",
"build-instance",
"code-coverage",
"definition-file",
"flags-dir",
"installation-key",
Expand Down
12 changes: 11 additions & 1 deletion messages/package_convert.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ To retrieve details about a package version create request, including status and

To protect the contents of your package and to prevent unauthorized installation of your package, specify the --installation-key flag.

To promote a package version to released, you must use the --code-coverage parameter. The package must also meet the code coverage requirements.

To list package version creation requests in the org, run "<%= config.bin %> package version create list".

# examples
Expand Down Expand Up @@ -66,7 +68,7 @@ Display verbose command output.

# in-progress

Request in progress. Will wait a total of %s more seconds before timing out. Current Status='%s'.
Request in progress. Will wait a total of %s more seconds before timing out. Current Status='%s'.

# flags.seed-metadata.summary

Expand All @@ -83,3 +85,11 @@ Specific released patch version to be converted.
# flags.patch-version.description

Specify a released patch version as major.minor.patch to convert to a second-generation managed package version.

# flags.code-coverage.summary

Calculate and store the code coverage percentage by running the packaged Apex tests included in this package version.

# flags.code-coverage.description

Before you can promote and release a managed package version, the Apex code must meet a minimum 75% code coverage requirement.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@salesforce/plugin-packaging",
"description": "SF plugin that support Salesforce Packaging Platform",
"version": "2.15.4",
"version": "2.16.0",
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
"@oclif/core": "^4",
"@salesforce/core": "^8.12.0",
"@salesforce/kit": "^3.2.3",
"@salesforce/packaging": "^4.6.0",
"@salesforce/packaging": "^4.7.0",
"@salesforce/sf-plugins-core": "^12.2.2",
"chalk": "^5.4.1"
},
Expand Down
2 changes: 2 additions & 0 deletions src/commands/package/bundle/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const messages = Messages.loadMessages('@salesforce/plugin-packaging', 'bundle_c
export type BundleCreate = { Id: string };

export class PackageBundlesCreate extends SfCommand<BundleCreate> {
public static readonly hidden = true;
public static state = 'beta';
public static readonly summary = messages.getMessage('summary');
public static readonly description = messages.getMessage('description');
public static readonly examples = messages.getMessages('examples');
Expand Down
Loading
Loading