How to upgrade packages using trex cli? #91
-
Can we upgrade all or some of the packages using trex to their latest versions? trex upgrade * // Upgrade all packages to latest versions
trex upgrade oak, denodb // Upgrade denodb and oak to latest versions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hello, to update the packages there are two ways the first is to install the latest version available using the
trex install -m oak this will install the latest version available in url in import_map.json
The second way and which is the one I recommend to use, is always to specify which version to update to.
trex install -m oak@v7.2.0 in this way download this specific version, in the same way you can update several packages in the same command.
trex i -m oak@v7.2.0 denodb@v1.0.30 |
Beta Was this translation helpful? Give feedback.
hello, to update the packages there are two ways the first is to install the latest version available using the
install
command.example
trex install -m oak
this will install the latest version available in
deno.land
, Personally, I don't recommend using this as you download the package without using a specific version.url in import_map.json
https://deno.land/x/oak.mod.ts
The second way and which is the one I recommend to use, is always to specify which version to update to.
example
trex install -m oak@v7.2.0
in this way download this specific version, in the same way you can update several packages in the same command.
example
trex i -m …