How to upgrade packages using trex cli? #91
Answered
by
buttercubz
borsemayur2
asked this question in
Q&A
|
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 |
Answered by
buttercubz
Apr 19, 2021
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 oakthis 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.0in 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 |
1 reply
Answer selected by
borsemayur2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello, to update the packages there are two ways the first is to install the latest version available using the
installcommand.exampletrex install -m oakthis 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.tsThe second way and which is the one I recommend to use, is always to specify which version to update to.
exampletrex install -m oak@v7.2.0in this way download this specific version, in the same way you can update several packages in the same command.
exampletrex i -m …