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
For Windows users, Replicated recommends using Windows Subsystem for Linux (WSL2) and installing the Replicated using the Linux installations above. See [Linux / Windows Subsystem for Linux (WSL2)](#linux-wsl2).
3
+
:::
4
+
5
+
Installing in Docker environments requires that you set the `REPLICATED_API_TOKEN` environment variable to authorize the Replicated CLI with an API token. For more information, see [(Optional) Set Environment Variables](#env-var) below.
6
+
7
+
To install and run the latest Replicated CLI in Docker environments:
8
+
9
+
1. Generate a service account or user API token in the vendor portal. To create new releases, the token must have `Read/Write` access. See [Generating API Tokens](/vendor/replicated-api-tokens).
10
+
11
+
1. Get the latest Replicated CLI installation files from the [replicatedhq/replicated repository](https://github.com/replicatedhq/replicated/releases) on GitHub.
12
+
13
+
Download and install the files. For simplicity, the usage in the next step is represented assuming that the CLI is downloaded and installed to the desktop.
14
+
15
+
1. Authorize the Replicated CLI:
16
+
17
+
- Through a Docker container:
18
+
19
+
```shell
20
+
docker run \
21
+
-e REPLICATED_API_TOKEN=$TOKEN \
22
+
replicated/vendor-cli --help
23
+
```
24
+
Replace `TOKEN` with your API token.
25
+
26
+
- On Windows:
27
+
28
+
```dos
29
+
docker.exe run \
30
+
-e REPLICATED_API_TOKEN=%TOKEN% \
31
+
replicated/vendor-cli --help
32
+
```
33
+
34
+
Replace `TOKEN` with your API token.
35
+
36
+
For more information about the `docker run` command, see [docker run](https://docs.docker.com/engine/reference/commandline/run/) in the Docker documentation.
tar xf replicated.tar.gz replicated && rm replicated.tar.gz
49
-
mv replicated /usr/local/bin/replicated
50
-
```
36
+
1. <InstallMac/>
51
37
52
38
<Sudo/>
53
39
@@ -59,20 +45,13 @@ To install and run the latest Replicated CLI on MacOS:
59
45
60
46
1. <Logout/>
61
47
62
-
### Linux
48
+
### Linux / Windows Subsystem for Linux (WSL) {#linux-wsl2}
63
49
64
-
To install and run the latest Replicated CLI on Linux:
50
+
To install and run the latest Replicated CLI on Linux or Windows Subsystem for Linux (WSL):
65
51
66
-
1.Run the following command:
52
+
1.For Windows users, first install Linux on Windows using WSL2. See [How to install Linux on Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/install).
tar xf replicated.tar.gz replicated && rm replicated.tar.gz
74
-
mv replicated /usr/local/bin/replicated
75
-
```
54
+
1. <InstallLinux/>
76
55
77
56
<Sudo/>
78
57
@@ -86,38 +65,7 @@ To install and run the latest Replicated CLI on Linux:
86
65
87
66
### Docker / Windows
88
67
89
-
Installing in Docker environments requires that you set the `REPLICATED_API_TOKEN` environment variable to authorize the Replicated CLI with an API token. For more information, see [(Optional) Set Environment Variables](#env-var) below.
90
-
91
-
To install and run the latest Replicated CLI in Docker environments:
92
-
93
-
1. Generate a service account or user API token in the vendor portal. To create new releases, the token must have `Read/Write` access. See [Generating API Tokens](/vendor/replicated-api-tokens).
94
-
95
-
1. Get the latest Replicated CLI installation files from the [replicatedhq/replicated repository](https://github.com/replicatedhq/replicated/releases) on GitHub.
96
-
97
-
Download and install the files. For simplicity, the usage in the next step is represented assuming that the CLI is downloaded and installed to the desktop.
98
-
99
-
1. Authorize the Replicated CLI:
100
-
101
-
- Through a Docker container:
102
-
103
-
```shell
104
-
docker run \
105
-
-e REPLICATED_API_TOKEN=$TOKEN \
106
-
replicated/vendor-cli --help
107
-
```
108
-
Replace `TOKEN` with your API token.
109
-
110
-
- On Windows:
111
-
112
-
```dos
113
-
docker.exe run \
114
-
-e REPLICATED_API_TOKEN=%TOKEN% \
115
-
replicated/vendor-cli --help
116
-
```
117
-
118
-
Replace `TOKEN` with your API token.
119
-
120
-
For more information about the `docker run` command, see [docker run](https://docs.docker.com/engine/reference/commandline/run/) in the Docker documentation.
68
+
<InstallDocker/>
121
69
122
70
## (Optional) Set Environment Variables {#env-var}
0 commit comments