mirror of
https://github.com/zhigang1992/velociraptor.git
synced 2026-04-30 05:35:34 +08:00
docs: update installation instructions
This commit is contained in:
27
README.md
27
README.md
@@ -51,34 +51,9 @@ One of the things that many developers find disorientating about Deno is the fac
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ deno install --allow-read --allow-write --allow-env --allow-run -n vr https://deno.land/x/velociraptor/cli.ts
|
||||
$ deno install -qA -n vr https://deno.land/x/velociraptor@v1.0.0-beta.10/cli.ts
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Upgrade</summary>
|
||||
|
||||
The above command will always install the latest version. If you're updating from an older version you might need to run the command with the `-f` flag.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Install a specific version</summary>
|
||||
|
||||
To install a specific version, run the install command with a specific version tag:
|
||||
|
||||
```sh
|
||||
$ deno install ... https://deno.land/x/velociraptor@<version>/cli.ts
|
||||
^^^^^^^^^
|
||||
```
|
||||
|
||||
For example
|
||||
|
||||
```sh
|
||||
$ deno install --allow-read --allow-write --allow-env --allow-run -n vr https://deno.land/x/velociraptor@v1.0.0-beta.10/cli.ts
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
To get help with the CLI run `vr help`, or `vr help <SUBCOMMAND>` for specific commands.
|
||||
|
||||
## Project status
|
||||
|
||||
@@ -3,9 +3,7 @@ const wd = "./test";
|
||||
const cliArgs = [
|
||||
"deno",
|
||||
"run",
|
||||
"--allow-read",
|
||||
"--allow-run",
|
||||
"--allow-env",
|
||||
"-qA",
|
||||
"../cli.ts",
|
||||
];
|
||||
const expectedOutput = "Works!";
|
||||
|
||||
Reference in New Issue
Block a user