@gitlab/duo-cli 8.64.0 → 8.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -1
- package/dist/index.js +772 -737
- package/dist/index.js.map +47 -37
- package/dist/version-guard.cjs +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,56 @@ To install the GitLab Duo CLI globally, run:
|
|
|
29
29
|
npm install -g @gitlab/duo-cli
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
### Alternative: Install using installation script
|
|
33
|
+
|
|
34
|
+
You can use the installation script to install the GitLab Duo CLI without Node.js:
|
|
35
|
+
|
|
36
|
+
#### macOS and Linux
|
|
37
|
+
|
|
38
|
+
```shell
|
|
39
|
+
bash <(curl -fsSL "https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/raw/main/packages/cli/scripts/install_duo_cli.sh")
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Windows
|
|
43
|
+
|
|
44
|
+
```shell
|
|
45
|
+
irm "https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/raw/main/packages/cli/scripts/install_duo_cli.ps1" | iex
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
This script will:
|
|
49
|
+
|
|
50
|
+
1. Detect your platform (OS and architecture)
|
|
51
|
+
1. Download the appropriate GitLab Duo CLI binary
|
|
52
|
+
1. Install it to `~/.local/bin/duo`
|
|
53
|
+
1. Update your PATH if needed
|
|
54
|
+
|
|
55
|
+
For non-interactive installation (useful for CI/CD):
|
|
56
|
+
|
|
57
|
+
```shell
|
|
58
|
+
curl -fsSL https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/raw/main/packages/cli/scripts/install_duo_cli.sh | bash -s -- -y
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
To install a specific version:
|
|
62
|
+
|
|
63
|
+
```shell
|
|
64
|
+
curl -fsSL https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/raw/main/packages/cli/scripts/install_duo_cli.sh | bash -s -- --version 1.2.3
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
After installation, you can run the GitLab Duo CLI using the `duo` command.
|
|
68
|
+
|
|
69
|
+
### Updating
|
|
70
|
+
|
|
71
|
+
To update to the latest version:
|
|
72
|
+
|
|
73
|
+
```shell
|
|
74
|
+
npm install -g @gitlab/duo-cli@latest
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Usage
|
|
78
|
+
|
|
79
|
+
### Interactive Mode (TUI)
|
|
80
|
+
|
|
81
|
+
Start the interactive terminal UI:
|
|
33
82
|
|
|
34
83
|
```shell
|
|
35
84
|
duo
|