Retrieve package information #2358
Replies: 6 comments
-
|
Please assume that I have a "sfdx-project.json" file and it has a valid ID I would like to execute the following command and receive back details about it. Command: Expected return: |
Beta Was this translation helpful? Give feedback.
-
|
@sfdc-db-gmail please take a look |
Beta Was this translation helpful? Give feedback.
-
|
@jefersonchaves - Can |
Beta Was this translation helpful? Give feedback.
-
|
Hi @sfdc-db-gmail: it would work if I could retrieve information about Classic Managed Packages. My use case is: I want to retrieve information from Classic Managed Packages to use in a build, for instance. Makes sense? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @sfdc-db-gmail or @clairebianchi: is there anything else that I can assist? |
Beta Was this translation helpful? Give feedback.
-
|
Marking as wont-fix because (correct me if wrong) this gap only applies to 1GP. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Today there is no simple way to retrieve package information through Salesforce CLI. There is a need to parse
sfdx-project.jsonand then use two Tooling API calls to retrieve package and package version information for a given alias.What are you trying to do
A description of the outcome you are hoping to achieve
Retrieve package information to display in build log and to retrieve the installation key from a secret text in Jenkins. This is also useful for local development.
Describe the solution you'd like
Would like to have another command in
force:packagethat could retrieve package information. Could be something lkeforce:package:version:info.Describe alternatives you've considered
Currently, I have implemented this as a Groovy script for Jenkins but I'm also considering writing a plugin.
Beta Was this translation helpful? Give feedback.
All reactions