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
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.
2
+
3
+
To install and run the latest Replicated CLI in Docker environments:
4
+
5
+
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).
6
+
7
+
1. Get the latest Replicated CLI installation files from the [replicatedhq/replicated repository](https://github.com/replicatedhq/replicated/releases) on GitHub.
8
+
9
+
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.
10
+
11
+
1. Authorize the Replicated CLI:
12
+
13
+
- Through a Docker container:
14
+
15
+
```shell
16
+
docker run \
17
+
-e REPLICATED_API_TOKEN=$TOKEN \
18
+
replicated/vendor-cli --help
19
+
```
20
+
Replace `TOKEN` with your API token.
21
+
22
+
- On Windows:
23
+
24
+
```dos
25
+
docker.exe run \
26
+
-e REPLICATED_API_TOKEN=%TOKEN% \
27
+
replicated/vendor-cli --help
28
+
```
29
+
30
+
Replace `TOKEN` with your API token.
31
+
32
+
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
74
-
mv replicated /usr/local/bin/replicated
75
-
```
52
+
1. <InstallLinux/>
76
53
77
54
<Sudo/>
78
55
@@ -86,38 +63,7 @@ To install and run the latest Replicated CLI on Linux:
86
63
87
64
### Docker / Windows
88
65
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.
66
+
<InstallDocker/>
121
67
122
68
## (Optional) Set Environment Variables {#env-var}
0 commit comments