Skip to content

How to upgrade packages using trex cli? #91

Answered by buttercubz
borsemayur2 asked this question in Q&A
Discussion options

You must be logged in to vote

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

also you can use the short method: trex i -m oak

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 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@borsemayur2
Comment options

Answer selected by borsemayur2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants