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
@@ -94,113 +90,10 @@ For those nodes that run on the same machine, make sure that the ports do not co
94
90
95
91
## Controlling Clusters
96
92
97
-
Restate includes a command line utility tool to connect to and control running Restate servers called `restatectl`.
93
+
Restate includes a command line utility tool to connect to and control running Restate servers called [`restatectl`](/references/restatectl#getting-restatectl).
98
94
This tool is specifically designed for system operators to manage Restate servers and is particularly useful in a cluster environment.
99
95
It is distinct from the application developer-focused `restate` CLI tool, which is used to manage service deployments and invocations.
100
96
101
-
### Getting `restatectl`
102
-
103
-
<TabsgroupId={"getting-restatectl"}>
104
-
<TabItemvalue={"Homebrew"}label={"Homebrew"}>
105
-
<TextAndCode>
106
-
Install with:
107
-
```shell !result
108
-
brew install restatedev/tap/restatectl
109
-
```
110
-
</TextAndCode>
111
-
<TextAndCode>
112
-
Then run:
113
-
```shell !result
114
-
restatectl
115
-
```
116
-
</TextAndCode>
117
-
</TabItem>
118
-
<TabItemvalue={"bin"}label={"Download binaries"}>
119
-
Install restatectl by downloading the binary with `curl` from the [releases page](https://github.com/restatedev/restate/releases/latest), and make them executable:
The server and CLI images both contain the `restatectl` tool. To run `restatectl`, use the following command:
188
-
189
-
```shell
190
-
docker run -it --network=host --entrypoint restatectl docker.restate.dev/restatedev/restate-cli:VAR::RESTATE_VERSION nodes ls
191
-
```
192
-
193
-
You can also execute `restatectl` in a running server container using the following command:
194
-
195
-
```shell
196
-
docker exec restate_dev restatectl nodes ls
197
-
```
198
-
199
-
Replace `restate_dev` with the name of a running container, and `nodes ls` with the subcommand you want to run.
200
-
201
-
</TabItem>
202
-
</Tabs>
203
-
204
97
### Using `restatectl`
205
98
The `restatectl` tool communicates with Restate at the advertised address specified in the [server configuration](/operate/configuration/server) - by default TCP port 5122. To get an overview of a running server or cluster, use the `status` command:
Copy file name to clipboardExpand all lines: docs/operate/operate.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ import ExampleWidget from "../../src/components/ExampleWidget";
13
13
Restate offers the following tools:
14
14
-[CLI](/develop/local_dev#running-restate-server--cli-locally): A command-line interface to interact with Restate services, deployments, and invocations.
15
15
You can find useful commands throughout this entire section of the documentation.
16
-
-[`restatectl`](/deploy/server/cluster/deployment#getting-restatectl): A command-line utility to [control running Restate clusters](/deploy/server/cluster/deployment#controlling-clusters).
16
+
-[`restatectl`](/references/restatectl#getting-restatectl): A command-line utility to [control running Restate clusters](/deploy/server/cluster/deployment#controlling-clusters).
You can install `restatectl` using your preferred [installation method](/develop/local_dev).
10
-
The tool is also included in the `restate-cli` and `restate` Docker images.
11
-
To use `restatectl` in a running Docker container, you can use the following command from the host machine to connect to it without spawning a separate container:
Install restatectl by downloading the binary with `curl` from the [releases page](https://github.com/restatedev/restate/releases/latest), and make them executable:
The server and CLI images both contain the `restatectl` tool. To run `restatectl`, use the following command:
99
+
100
+
```shell
101
+
docker run -it --network=host --entrypoint restatectl docker.restate.dev/restatedev/restate-cli:VAR::RESTATE_VERSION nodes ls
102
+
```
103
+
104
+
You can also execute `restatectl` in a running server container using the following command:
105
+
106
+
```shell
107
+
docker exec restate_dev restatectl nodes ls
108
+
```
109
+
110
+
Replace `restate_dev` with the name of a running container, and `nodes ls` with the subcommand you want to run.
111
+
112
+
</TabItem>
113
+
</Tabs>
16
114
17
115
<Admonitiontype="note"title="Notice">
18
116
`restatectl` requires direct access to nodes via their advertised addresses (default port: 5122). Ensure that restatectl commands can reach these addresses.
0 commit comments