View Details about a Second-Generation Managed Package Version
Retrieve details about second-generation managed package versions that are in progress, or have already been created.
View Status and Progress Details for a Managed 2GP Package Version
Depending on the package size and other variables, creating a package version can be a long-running process. You can easily view the status and monitor progress using this report command.
1sf package version create report --package-create-request-id 08cxx00000000YDAAY
The output shows details about the request.
1=== Package Version Create Request2NAME VALUE3───────────────────────────── ────────────────────4Version Create Request Id 08cB00000004CBxIAM5Status InProgress6Package Id 0HoB00000004C9hKAE7Package Version Id 05iB0000000CaaNIAS8Subscriber Package Version Id 04tB0000000NOimIAG9Tag git commit id 08dcfsdf10Branch11CreatedDate 2018-05-08 09:4812Installation URL13https://login.salesforce.com/packaging/installPackage.apexp?p0=04tB0000000NOimIAG
You can find the request ID (08c) in the initial output of sf package version create.
If you have more than one pending request to create package versions, you can view a list of all requests with this command.
1sf package version create list --created-last-days 0
Details for each request display as shown here (IDs and labels truncated).
1=== Package Version Create Requests [3]2ID STATUS PACKAGE2 ID PKG2 VERSION ID SUB PKG2 VER ID TAG BRANCH CREATED DATE ===308c... Error 0Ho...408c... Success 0Ho... 05i... 04t... 2022-06-22 12:07508c... Success 0Ho... 05i... 04t... 2022-06-23 14:55
Retrieve List of all Package Versions Associated with a Dev Hub Org
To display a list of all package versions in the Dev Hub org, use this command.
1sf package version list --target-dev-hub my-hub
You can view the namespace, version name, and other details in the output.