rye icon indicating copy to clipboard operation
rye copied to clipboard

`update` subcommand for `rye tools`

Open lengau opened this issue 1 year ago • 1 comments

Allow updating a tool using rye tools update rather than having to install -f it.

Current workflow:

$ rye tools install uv
error: package already installed
$ rye tools
Helper utility to manage global tools

Usage: rye tools <COMMAND>

Commands:
  install    Installs a package as global tool
  uninstall  Uninstalls a global tool
  list       List all registered tools
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help
$ rye tools install -f uv
Resolved 1 package in 184ms
Prepared 1 package in 205ms
Installed 1 package in 0.76ms
 + uv==0.2.32

Installed scripts:
  - uv
  - uvx

Expected workflow:

$ rye tools update uv
Resolved 1 package in 184ms
Prepared 1 package in 205ms
Installed 1 package in 0.76ms
 + uv==0.2.32

Installed scripts:
  - uv
  - uvx

lengau avatar Jul 31 '24 22:07 lengau

Yes, currently, if I want to update a global tool, my workaround is:

rye tools uninstall uv && rye tools install uv

Or something along those lines.

raoulg avatar Sep 06 '24 08:09 raoulg