I have an obscure error when installing a 2GP beta package about a component I don't expect to be the in the package.

Is there a way to list the contents of a package given just a package version Id 04txxxxxxxxxxxx? I couldn't see anything in the Package Commands list.

  • 2
    Given the partner forum poll that Dileep Burki initiated on this subject, the answer is likely "no". The expectation is currently that you tag your git commit that was used to generate the 2GP so you know what is in it from the git perspective.
    – Phil W
    Commented Jun 27, 2022 at 8:34
  • Thanks @PhilW. Would be good to look into my current version rather than carefully re-create a version from Git source but so be it.
    – Keith C
    Commented Jun 27, 2022 at 8:44
  • I think the point with 2GP is that git is the source of truth. Yes, the problem is you have to remember to tag it when you create the package version (but you could easily write a script that always does the two together).
    – Phil W
    Commented Jun 27, 2022 at 8:47
  • 1
    Thanks @PhilW. I'm trying to diagnose an error where when I install the package I get a complaint about a component name that is not in Git so am trying ti figure out what is going on. Oh repeating the packaging made the problem go away. So Likely on first packaging a spurious file way present.
    – Keith C
    Commented Jun 27, 2022 at 9:22
  • 1
    And that's another problem with 2GP - it doesn't operate directly from the version control system, but rather indirectly via a file system.
    – Phil W
    Commented Jun 27, 2022 at 9:36

2 Answers 2


While I don't think there is a way to see it from the command line, right before installing the package in the browser (from yoursalesforcedomain.my.salesforce.com/packaging/installPackage.apexp?p0=04t.......) there is a View Components link that will show the list of metadata in the package.

enter image description hereenter image description here

  • That would have helped me the other day... thanks.
    – Keith C
    Commented Jun 29, 2022 at 9:36

Install the package then go to Setup -> Installed Packages and click on the package name then click the View Components button to see the list of components.

(This doesn't solve the problem for the case I had where the install failed but worth remembering.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .