Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve package information #12

Closed
jefersonchaves opened this issue Jan 26, 2019 · 5 comments
Closed

Retrieve package information #12

jefersonchaves opened this issue Jan 26, 2019 · 5 comments
Labels
area:packaging feature Issue or pull request for a new feature

Comments

@jefersonchaves
Copy link

jefersonchaves commented Jan 26, 2019

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.json and 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:package that could retrieve package information. Could be something lke force: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.

@fischerp
Copy link

Please assume that I have a "sfdx-project.json" file and it has a valid ID
...
"packageAliases": {
"myPackage": "04t50000000AaaA"
}

I would like to execute the following command and receive back details about it.

Command:
force:package:version:info -p "myPackage" --json

Expected return:
{"packageId":"04t50000000AaaA","name":"Package A", "majorVersion":1","minorVersion":"0"...

@clairebianchi
Copy link
Collaborator

@sfdc-db-gmail please take a look

@clairebianchi clairebianchi added the feature Issue or pull request for a new feature label Jan 30, 2019
@sfdc-db-gmail
Copy link

@jefersonchaves - Can force:package:version:list or force:package:version:report provide the info you are looking for? Cc @clairebianchi

@jefersonchaves
Copy link
Author

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?

@jefersonchaves
Copy link
Author

Hi @sfdc-db-gmail or @clairebianchi: is there anything else that I can assist?

@forcedotcom forcedotcom locked and limited conversation to collaborators Aug 1, 2023
@WillieRuemmele WillieRuemmele converted this issue into discussion #2358 Aug 1, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
area:packaging feature Issue or pull request for a new feature
Projects
None yet
Development

No branches or pull requests

5 participants