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 Request 
2NAME                            VALUE
3─────────────────────────────   ────────────────────
4Version Create Request Id       08cB00000004CBxIAM 
5Status                          InProgress 
6Package Id                      0HoB00000004C9hKAE 
7Package Version Id              05iB0000000CaaNIAS
8Subscriber Package Version Id   04tB0000000NOimIAG
9Tag                             git commit id 08dcfsdf
10Branch 
11CreatedDate                     2018-05-08 09:48
12Installation URL
13https://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:07 
508c... 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.

1Package Name      Namespace       Version  Sub Pkg Ver Id       Alias                     Installation Key  Released  
2───────────────  ───────────────  ───────  ───────────────────  ────────────────────────  ─────────────────  ───────
3Expenser Schema   db_exp_manager  0.1.0.1  04tB0000000719qIAA   Expenser Schema@0.1.0-1   false             true
4Expenser Schema   db_exp_manager  0.2.0.1  04tB000000071AjIAI   Expenser Schema@0.2.0-1   false             true
5Expenser Schema   db_exp_manager  0.3.0.1  04tB000000071AtIAI   Expenser Schema@0.3.0-1   false             false
6Expenser Schema   db_exp_manager  0.3.0.2  04tB000000071AyIAI   Expenser Schema@0.3.0-2   false             true
7Expenser Schema   db_exp_manager  0.3.1.1  04tB0000000KGU6IAO   Expenser Schema@0.3.1-1   false             false
8Expenser Schema   db_exp_manager  0.3.1.2  04tB0000000KGUBIA4   Expenser Schema@0.3.1-2   false             true
9Expenser Schema   db_exp_manager  0.3.2.1  04tB0000000KGUQIA4   Expenser Schema@0.3.2-1   false             true
10Expenser Logic    db_exp_manager  0.1.0.1  04tB0000000719vIAA   Expenser Logic@0.1.0-1    false             true
11Expenser App      db_exp_manager  0.1.0.1  04tB000000071A0IAI   Expenser App@0.1.0-1      false             true

To view details about a specific package, include --package parameter when you run sf package version list.

To show expanded details, use --verbose The verbose parameter displays these additional details.

  • Ancestor
  • Ancestor Version
  • Branch
  • Build Duration in Seconds
  • Code Coverage
  • Code Coverage Met
  • Created By
  • Created Date
  • Description
  • Installation URL
  • Language
  • Managed Metadata Removed
  • Metadata File Size
  • Number of Metadata Files
  • Package ID
  • Package Version ID
  • Release Version
  • Tag
  • Validation Skipped
  • WasTransferred