Skip to content

Conversation

@ravipanguluri
Copy link
Collaborator

@ravipanguluri ravipanguluri commented Jan 29, 2026

What does this PR do?

This PR is part of a work item that exposes the Package2VersionCreateRequest.IsDevUsePkgZipRequested field through the CLI. In this PR, we add the parameter to the version create request object. This allows users to specify if they want to create a version of their native 2GP package with dev zips generated.

What issues does this PR fix or reference?

See @W-20839284@

@ravipanguluri ravipanguluri requested a review from a team as a code owner January 29, 2026 17:53
@ravipanguluri ravipanguluri changed the title Expose --generate-dev-zip parameter to sf package version create CLI command @W-20839284 Expose --generate-dev-zip parameter to sf package version create CLI command Jan 29, 2026
# downloadDeveloperPackageZipHasNoData

Can't retrieve package metadata. We're unable to retrieve metadata for the package version you specified. Retrieving package metadata is available to converted 2GP package versions only. If the package you specified is a converted 2GP package, try creating a new package version, and then retry retrieving the package metadata for the new package version. If your package is a 1GP, start by converting the package to 2GP, and then retry retrieving metadata from the converted 2GP package version.
Can't retrieve package metadata. Package metadata is only generated for converted 2GP package versions and versions created with the --dev-use-pkg-zip flag. To resolve, create a new package version and retry. For native 2GP packages, include the --dev-use-pkg-zip flag when creating the version. If your package is a 1GP, first convert it to 2GP.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this message needs to be adjusted a bit. Two questions:

  1. --dev-use-pkg-zip is not the name of the flag in the plugin-packaging PR. Did you mean --dev-use-pkg-zip?
  2. Since this is in the typescript library (not the plugin) should we mention the CLI flag? Should we mention the generatepkgzip option instead?

Copy link
Collaborator Author

@ravipanguluri ravipanguluri Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I originally named the flag --dev-use-pkg-zip, but I updated the flag to be --generate-pkg-zip instead. I just forgot to change the docs over here. I'll update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants