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
+45-48Lines changed: 45 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,12 @@
8
8
9
9
English | [简体中文](./README-CN.md)
10
10
11
-
Dvm is a lightweight, and powerful [Deno](https://deno.land/) version manager for MacOS, Linux, WSL, and Windows with Bash.
11
+
DVM is a lightweight and powerful [Deno](https://deno.land/) version manager for macOS, Linux, WSL, and Windows with Bash.
12
12
13
-
For Windows users, you must install DVM v0.7.0 or later versions, and also need to install a bash shell if you want to use this tool. For example, you can install WSL and execute`bash` command in PowerShell.
13
+
**Note for Windows users:** You must install DVM v0.7.0 or later, and you also need a Bash shell to use this tool. For example, you can install WSL and run the`bash` command in PowerShell.
14
14
15
-
***Please do not use `deno upgrade` command to upgrade Deno after you had installed Deno with DVM.***
15
+
> [!Warning]
16
+
> Do not use the `deno upgrade` command to upgrade Deno after you have installed Deno with DVM.
16
17
17
18
-[Installing and Updating](#installing-and-updating)
18
19
-[Installation](#installation)
@@ -39,19 +40,19 @@ For Windows users, you must install DVM v0.7.0 or later versions, and also need
39
40
40
41
There are two ways to install DVM.
41
42
42
-
1. Install dvm from network by the following command:
43
+
1. Install DVM from the network using the following command:
2. Clone this project and execute `install.sh` script:
55
+
2. Clone this project and execute the `install.sh` script:
55
56
56
57
```sh
57
58
git clone "https://github.com/ghosind/dvm.git"
@@ -61,9 +62,9 @@ cd dvm
61
62
./install.sh
62
63
```
63
64
64
-
After installed dvm, please restart your terminal or use`source <your_rc_file>` to apply changes.
65
+
After installing DVM, restart your terminal or run`source <your_profile_file>` to apply the changes.
65
66
66
-
The default install location is `~/.dvm`, you can use `-d <dir>` option (for local install only) or `$DVM_DIR` environment variable to specify an inexistent directory as the install location.
67
+
The default installation location is `~/.dvm`. You can use the `-d <dir>` option (for local installs only) or the `$DVM_DIR` environment variable to specify a different directory.
Since DVM `v0.3.0`, we provided `upgrade` command to update your DVM to the latest version.
76
+
Since DVM `v0.3.0`, the `upgrade` command is available to update DVM to the latest version.
76
77
77
78
```sh
78
79
dvm upgrade
79
80
```
80
81
81
-
If you want to update the DVM that less than `v0.3.0`, you may need to uninstall the current version and re-install the latest version. You can get the uninstall steps from [Manual uninstall](#manual-uninstall) section.
82
+
If you are using a DVM version older than `v0.3.0`, you may need to uninstall the current version and reinstall the latest one. See the [Manual uninstall](#manual-uninstall) section for instructions.
82
83
83
-
## Prerequirement
84
+
## Prerequisites
84
85
85
-
Please make sure you have required dependencies installed:
86
+
Please ensure you have the following dependencies installed:
86
87
87
88
- curl
88
89
- git
89
90
- unzip (for Deno v0.36.0 and newer versions)
90
91
- gunzip (for Deno v0.35.0 and lower versions)
91
92
92
-
For installing Deno from source, please make sure you have required dependencies installed:
93
+
To install Deno from source, you will also need:
93
94
94
95
- rustc
95
96
- cargo
@@ -98,11 +99,11 @@ For installing Deno from source, please make sure you have required dependencies
98
99
99
100
## Getting Started
100
101
101
-
After installed dvm, you can use it to manage multiple version Deno environments.
102
+
After installing DVM, you can use it to manage multiple Deno versions and environments.
102
103
103
104
### List available versions
104
105
105
-
Use `dvm list-remote` or `dvm ls-remote` to list all available versions from remote.
106
+
Use `dvm list-remote` or `dvm ls-remote` to list all available Deno versions from the remote server.
106
107
107
108
```sh
108
109
# list all available versions
@@ -113,7 +114,7 @@ dvm ls-remote
113
114
114
115
### List installed versions
115
116
116
-
Use `dvm list` or `dvm ls` to list all installed versions.
117
+
Use `dvm list` or `dvm ls` to list all installed Deno versions.
117
118
118
119
```sh
119
120
# list all installed versions
@@ -124,64 +125,62 @@ dvm ls
124
125
125
126
### Install Deno
126
127
127
-
Use `dvm install <version>` command to download and install a specified version from the source.
128
+
Use the `dvm install <version>` command to download and install a specific Deno version.
128
129
129
130
```sh
130
131
dvm install v1.0.0
131
-
# deno v1.0.0 has installed.
132
-
# Using deno v1.0.0 now.
133
-
132
+
# Deno v1.0.0 has been installed.
133
+
# Using Deno v1.0.0 now.
134
134
dvm install v0.42.0
135
-
#deno v0.42.0 has installed.
136
-
# Using deno v1.0.0 now.
135
+
#Deno v0.42.0 has been installed.
136
+
# Using Deno v1.0.0 now.
137
137
```
138
138
139
139
### Install Deno from source
140
140
141
-
Since DVM v0.8.0, you can install Deno from source with`--from-source` option.
141
+
Since DVM v0.8.0, you can install Deno from source using the`--from-source` option.
142
142
143
143
```sh
144
144
dvm install --from-source v1.35.0
145
145
```
146
146
147
147
### Uninstall Deno
148
148
149
-
Use `dvm uninstall <version|alias-name>` command to uninstall a specified version.
149
+
Use the `dvm uninstall <version|alias-name>` command to uninstall a specific version or alias.
150
150
151
151
```sh
152
152
dvm uninstall v0.39.0
153
-
# uninstalled deno v0.39.0.
154
-
153
+
# Uninstalled Deno v0.39.0.
155
154
# default is an alias name
156
155
dvm uninstall default
157
-
#uninstalled deno default.
156
+
#Uninstalled Deno default.
158
157
```
159
158
160
159
### Set active version
161
160
162
-
Use `dvm use [version]` command to link `deno` to the specified installed versionby parameter or `.dvmrc` file.
161
+
Use the `dvm use [version]` command to link `deno` to the specified installed version, either by parameter or from a`.dvmrc` file.
163
162
164
163
```sh
165
-
#use v1.0.0
164
+
#Use v1.0.0
166
165
dvm use v1.0.0
167
-
# Using deno v1.0.0 now.
166
+
# Using Deno v1.0.0 now.
168
167
```
169
168
170
-
If you do not specify the active version, DVM will try to read `.dvmrc` file from the current working directory.
169
+
If you do not specify a version, DVM will try to read the`.dvmrc` file from the current working directory.
171
170
172
171
```sh
173
172
# cat .dvmrc
174
173
# # v1.4.0
175
174
dvm use
176
175
# Found './dvmrc' with version v1.4.0
177
-
# Using deno v1.4.0 now.
176
+
# Using Deno v1.4.0 now.
178
177
```
179
178
180
-
Set active version by `use` command is for a single terminal session only. If you want to set an active version for all terminal sessions, please set a `default` alias to a version. See [Set an alias](#set-active-version) section for more details.
179
+
Setting the active version with the `use` command only affects the current terminal session. To set a default version for all terminal sessions, create a `default` alias. See the[Set an alias](#set-active-version) section for more details.
181
180
182
181
### Get current version
183
182
184
-
Use `dvm current` command to display the current version of Deno.
183
+
Use the `dvm current` command to display the currently active Deno version.
185
184
186
185
```sh
187
186
dvm current
@@ -190,24 +189,22 @@ dvm current
190
189
191
190
### Set an alias
192
191
193
-
Use `dvm alias` command to set alias name for a installed version of Deno.
192
+
Use the `dvm alias` command to set an alias for an installed Deno version.
194
193
195
194
```sh
196
195
dvm ls
197
196
# v1.0.0
198
-
199
-
# Set an alias
197
+
# Set the default alias
200
198
dvm alias default v1.0.0
201
199
# default -> v1.0.0
202
-
203
200
dvm ls
204
201
# v1.0.0
205
202
# default -> v1.0.0
206
203
```
207
204
208
205
### Run with a version
209
206
210
-
Use `dvm run` command to run Deno on the specified version with arguments.
207
+
Use the `dvm run` command to run Deno with the specified version and arguments.
211
208
212
209
```sh
213
210
dvm run v1.0.0
@@ -217,7 +214,7 @@ dvm run v1.0.0
217
214
# >
218
215
```
219
216
220
-
You can also run a script file with the specified version.
217
+
You can also run a script file with the specified Deno version.
221
218
222
219
```sh
223
220
# Run app.ts with Deno v1.0.0
@@ -226,7 +223,7 @@ dvm run v1.0.0 app.ts
226
223
227
224
## Commands
228
225
229
-
DVM supported the following commands:
226
+
DVM supports the following commands:
230
227
231
228
| Command | Usage | Description |
232
229
|:-------:|:-----:|:------------|
@@ -260,7 +257,7 @@ DVM supported the following commands:
260
257
|`purge`|`dvm purge`| Remove dvm from your computer. |
261
258
|`help`|`dvm help`| Show dvm help message. |
262
259
263
-
Please visit [dvm wiki](https://github.com/ghosind/dvm/wiki) for more details.
260
+
For more details, please visit the [DVM Wiki](https://github.com/ghosind/dvm/wiki).
264
261
265
262
### Options
266
263
@@ -273,23 +270,23 @@ Please visit [dvm wiki](https://github.com/ghosind/dvm/wiki) for more details.
273
270
274
271
## Uninstalling DVM
275
272
276
-
There are two ways to remove DVM from your computer.
273
+
You can remove DVM from your computer in two ways:
277
274
278
275
### Use `purge` command
279
276
280
-
You can execute`dvm purge` to remove dvm from your computer if your dvm version is `v0.3.2`and above. It will remove the `$DVM_DIR` and dvm configurations in shell config file.
277
+
You can run`dvm purge` to remove DVM from your computer if your DVM version is `v0.3.2`or above. This will remove the `$DVM_DIR` and DVM configuration from your shell config file.
281
278
282
-
If your dvm is less than `v0.3.2`, please following the next section ([Manual uninstall](#manual-uninstall)) to remove DVM.
279
+
If your DVM version is older than `v0.3.2`, please follow the next section ([Manual uninstall](#manual-uninstall)) to remove DVM.
283
280
284
281
### Manual uninstall
285
282
286
-
You can also execute following command to uninstall dvm:
283
+
Alternatively, you can run the following command to uninstall DVM:
287
284
288
285
```sh
289
286
rm -rf "$DVM_DIR"
290
287
```
291
288
292
-
Edit shell config file (like `.bashrc` or `.zshrc`), and remove the following lines:
289
+
Edit your shell config file (such as `.bashrc` or `.zshrc`) and remove the following lines:
293
290
294
291
```sh
295
292
# Deno Version Manager
@@ -300,4 +297,4 @@ export DVM_DIR="$HOME/.dvm"
300
297
301
298
## License
302
299
303
-
Distributed under the MIT License. See LICENSE file for more information.
300
+
Distributed under the MIT License. See the LICENSE file for more information.
0 commit comments