You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ You can specify a non-default location of this file by setting a `ASDF_NPM_DEFAU
110
110
We provide a command for running the installed `node-build` command:
111
111
112
112
```bash
113
-
asdf nodejs nodebuild --version
113
+
asdf cmd nodejs nodebuild --version
114
114
```
115
115
116
116
### node-build advanced variations
@@ -122,7 +122,7 @@ Some of them will work out of the box, and some will need a bit of investigation
122
122
To list all the available variations run:
123
123
124
124
```bash
125
-
asdf nodejs nodebuild --definitions
125
+
asdf cmd nodejs nodebuild --definitions
126
126
```
127
127
128
128
_Note that this command only lists the current `node-build` definitions. You might want to [update the local `node-build` repository](#updating-node-build-definitions) before listing them._
@@ -132,7 +132,7 @@ _Note that this command only lists the current `node-build` definitions. You mig
132
132
Every new node version needs to have a definition file in the `node-build` repository. `asdf-nodejs` already tries to update `node-build` on every new version installation, but if you want to update `node-build` manually for some reason we provide a command just for that:
133
133
134
134
```bash
135
-
asdf nodejs update-nodebuild
135
+
asdf cmd nodejs update-nodebuild
136
136
```
137
137
138
138
### Integrity/signature check
@@ -141,21 +141,24 @@ In the past `asdf-nodejs` checked for signatures and integrity by querying live
141
141
142
142
### Resolving latest available LTS version in a script
143
143
144
-
This plugin adds a custom subcommand `asdf nodejs resolve lts`. If you want to know what is the latest available LTS major version number you can do this:
144
+
This plugin adds a custom subcommand `asdf cmd nodejs resolve lts`. If you want to know what is the latest available LTS major version number you can do this:
145
+
145
146
```sh
146
147
# Before checking for aliases, update nodebuild to check for newly releasead versions
147
-
asdf nodejs update-nodebuild
148
+
asdf cmd nodejs update-nodebuild
148
149
149
-
asdf nodejs resolve lts
150
-
# outputs: 22.11.0
150
+
asdf cmd nodejs resolve lts
151
+
# outputs: 22.13.1
151
152
```
153
+
152
154
You also have the option of forcing a resolution strategy by using the flags `--latest-installed` and `--latest-available`
155
+
153
156
```bash
154
157
# Outputs the latest version installed locally which is a LTS
155
-
asdf nodejs resolve lts --latest-installed
158
+
asdf cmd nodejs resolve lts --latest-installed
156
159
157
160
# Outputs the latest version available for download which is a LTS
0 commit comments