choco icon indicating copy to clipboard operation
choco copied to clipboard

Add choco web [packagename] command

Open bombledmonk opened this issue 7 years ago • 5 comments

It's a pretty regular occurrence that I use choco CLI to search and find packages, but if it's a package I haven't installed, I nearly always fire up the website just to look at the metadata, images, and related content. choco info [packagename] gives some detail, but I still give preference to the ease of viewing a formatted webpage.

Please consider adding a native feature that can bring up a package's chocolatey.org webpage via the CLI. ex choco web [packagename], choco search [packagename] --website or something more well thought out along those lines.

There does exist Package url in the choco info command, but it seems to be blank on all the packages I've looked at. (see issue #1728) I'm not sure if that could be put to use or made a requirement as I'm largely ignorant to technical and political background regarding the chocolatey project.
image

bombledmonk avatar Feb 11 '19 16:02 bombledmonk

Howdy @bombledmonk - I've added this into _Triaging. The package Url issue is a known issue in that we would need the sources to return where these things are through more of the NuGet code base - it doesn't make it very far in from the results to the package information. That's something we are working on.

ferventcoder avatar Mar 11 '19 17:03 ferventcoder

@bombledmonk

Ben,

In the meantime, if you know the package id: start https://chocolatey.org/packages/PACKAGEID will get you there.

you can do a simple batchfile to save you typing and do this easily...

copy con cweb.bat
start https://chocolatey.org/packages/%1
^z

Boom! You have a cweb command that you give the package name to and open the webpage in your default browser from the command line, temporary kludge to get what you want.

bcurran3 avatar Mar 11 '19 18:03 bcurran3

A suggestion for this could be a choco info <PACKAGEID> --online which would match PowerShell's feature to show online docs.

pauby avatar Nov 11 '22 16:11 pauby

The suggested --online parameter would potentially conflict with the --online parameter added #2868, or if it does not, then it may be confusing to users to have the same option do two different things, depending on if --help is passed.

TheCakeIsNaOH avatar Nov 11 '22 16:11 TheCakeIsNaOH

@TheCakeIsNaOH I agree. Thanks for catching that.

pauby avatar Nov 11 '22 16:11 pauby