pyenv icon indicating copy to clipboard operation
pyenv copied to clipboard

Please add "pyenv list" - Improve usability for listing available versions

Open newearthmartin opened this issue 1 year ago • 3 comments

Please make a first level command for seeing which python versions are available. I suggest pyenv list.

Every time I need to see available versions, I have to google it because I don't remember that it is pyenv install -l and it does not show up in pyenv --help.

It is one of the most common use cases so it should be at the top level, easily identifiable in pyenv --help.

newearthmartin avatar Dec 26 '24 14:12 newearthmartin

I added a comment to a very old pull request for compsys completion that would describe the flags in the completion so it may be easier to remember. If you want to add it to your environment, take a look here

onaforeignshore avatar Jan 12 '25 10:01 onaforeignshore

You can add it with a plugin:

$(pyenv root)/plugins/pyenv-list/bin/pyenv-list:

#!/usr/bin/env bash
exec pyenv-install --list

native-api avatar Mar 27 '25 19:03 native-api

You can add it with a plugin:

Btw you can also type pyenv install <Tab> or pyenv install <version prefix> <Tab> and get this list right away...

native-api avatar Aug 27 '25 16:08 native-api