Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions developers/developer-guides/tools/clis/weave-cli/initia-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,20 @@ the node using `weave initia start`.

<Tabs>
<Tab title="Start">
```bash
weave initia start
```
<CodeBlock language="bash">{`weave initia start`}</CodeBlock>
**Available Flags**
<ParamField path="--detach, -d" type="boolean" default="false">
Whether to run the node in the background.
</ParamField>
</Tab>

<Tab title="Stop">```bash weave initia stop ```</Tab>

<Tab title="Restart">```bash weave initia restart ```</Tab>

<Tab title="Stop">
<CodeBlock language="bash">{`weave initia stop`}</CodeBlock>
</Tab>
<Tab title="Restart">
<CodeBlock language="bash">{`weave initia restart`}</CodeBlock>
</Tab>
<Tab title="View logs">
```bash
weave initia log
```
<CodeBlock language="bash">{`weave initia log`}</CodeBlock>
**Available Flags**
<ParamField path="-n" type="number" default="100">
The number of lines to display from the end of the logs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ weave rollup launch --with-config <path-to-config-file> --vm <move|wasm|evm>

<Tabs>
<Tab title="Start">
```bash weave rollup start ```
<CodeBlock language="bash">{`weave rollup start`}</CodeBlock>
<Note>
Note that `launch` command already starts the rollup node for you. This
command is only needed if you have stopped the node and want to start it
Expand All @@ -76,10 +76,15 @@ weave rollup launch --with-config <path-to-config-file> --vm <move|wasm|evm>
Whether to run the rollup node in the background.
</ParamField>
</Tab>
<Tab title="Stop">```bash weave rollup stop ```</Tab>
<Tab title="Restart">```bash weave rollup restart ```</Tab>
<Tab title="Stop">
<CodeBlock language="bash">{`weave rollup stop`}</CodeBlock>
</Tab>
<Tab title="Restart">
<CodeBlock language="bash">{`weave rollup restart`}</CodeBlock>
</Tab>
<Tab title="View logs">
```bash weave rollup log ``` **Available Flags**
<CodeBlock language="bash">{`weave rollup log`}</CodeBlock>
**Available Flags**
<ParamField path="-n" type="number" default="100">
The number of lines to display from the end of the logs.
</ParamField>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,14 @@ You can also specify the bot type directly:

<Tabs>
<Tab title="Executor">
```bash
weave opinit init executor
```
<CodeBlock language="bash">{`weave opinit init executor`}</CodeBlock>
To set up Executor from the [config file](https://github.com/initia-labs/opinit-bots/blob/main/executor/README.md) without going through the interactive setup process, use the `--with-config` flag together with either `--generate-key-file` or `--key-file` flags.

For example, to let Weave generate Executor's keys for you, use the following command:
```bash
weave opinit init executor --with-config <path-to-config-file> --generate-key-file
```
<CodeBlock language="bash">{`weave opinit init executor --with-config <path-to-config-file> --generate-key-file`}</CodeBlock>

To provide your own keys, use the following command:
```bash
weave opinit init executor --with-config <path-to-config-file> --key-file <path-to-key-file>
```
<CodeBlock language="bash">{`weave opinit init executor --with-config <path-to-config-file> --key-file <path-to-key-file>`}</CodeBlock>

**Available Flags**

Expand All @@ -57,20 +51,14 @@ You can also specify the bot type directly:

</Tab>
<Tab title="Challenger">
```bash
weave opinit init challenger
```
<CodeBlock language="bash">{`weave opinit init challenger`}</CodeBlock>
To set up Challenger from the [config file](https://github.com/initia-labs/opinit-bots/blob/main/challenger/README.md) without going through the interactive setup process, use the `--with-config` flag together with either `--generate-key-file` or `--key-file` flags.

For example, to let Weave generate Challenger's keys for you, use the following command:
```bash
weave opinit init challenger --with-config <path-to-config-file> --generate-key-file
```
<CodeBlock language="bash">{`weave opinit init challenger --with-config <path-to-config-file> --generate-key-file`}</CodeBlock>

To provide your own OPinit bot keys, use the following command:
```bash
weave opinit init challenger --with-config <path-to-config-file> --key-file <path-to-key-file>
```
<CodeBlock language="bash">{`weave opinit init challenger --with-config <path-to-config-file> --key-file <path-to-key-file>`}</CodeBlock>

**Available Flags**

Expand Down Expand Up @@ -128,20 +116,14 @@ For rollups with built-in oracle enabled, set up the Oracle Executor key.

<Tabs>
<Tab title="Executor">
Reset Executor's database. This will clear all the data stored in the Executor's database (the configuration files are not affected).

```bash
weave opinit reset executor
```

Reset Executor's database. This will clear all the data stored in the
Executor's database (the configuration files are not affected).
<CodeBlock language="bash">{`weave opinit reset executor`}</CodeBlock>
</Tab>
<Tab title="Challenger">
Reset Challenger's database. This will clear all the data stored in the Challenger's database (the configuration files are not affected).

```bash
weave opinit reset challenger
```

Reset Challenger's database. This will clear all the data stored in the
Challenger's database (the configuration files are not affected).
<CodeBlock language="bash">{`weave opinit reset challenger`}</CodeBlock>
</Tab>
</Tabs>

Expand All @@ -151,15 +133,21 @@ For rollups with built-in oracle enabled, set up the Oracle Executor key.
<Tab title="Executor">
<Tabs>
<Tab title="Start">
```bash weave opinit start executor ``` **Available Flags**
<CodeBlock language="bash">{`weave opinit start executor`}</CodeBlock>
**Available Flags**
<ParamField path="--detach, -d" type="boolean" default="false">
Whether to run the Executor in the background.
</ParamField>
</Tab>
<Tab title="Stop">```bash weave opinit stop executor ```</Tab>
<Tab title="Restart">```bash weave opinit restart executor ```</Tab>
<Tab title="Stop">
<CodeBlock language="bash">{`weave opinit stop executor`}</CodeBlock>
</Tab>
<Tab title="Restart">
<CodeBlock language="bash">{`weave opinit restart executor`}</CodeBlock>
</Tab>
<Tab title="View logs">
```bash weave opinit log executor ``` **Available Flags**
<CodeBlock language="bash">{`weave opinit log executor`}</CodeBlock>
**Available Flags**
<ParamField path="-n" type="number" default="100">
The number of lines to display from the end of the Executor's logs.
</ParamField>
Expand All @@ -169,15 +157,21 @@ For rollups with built-in oracle enabled, set up the Oracle Executor key.
<Tab title="Challenger">
<Tabs>
<Tab title="Start">
```bash weave opinit start challenger ``` **Available Flags**
<CodeBlock language="bash">{`weave opinit start challenger`}</CodeBlock>
**Available Flags**
<ParamField path="--detach, -d" type="boolean" default="false">
Whether to run the node in the background.
</ParamField>
</Tab>
<Tab title="Stop">```bash weave opinit stop challenger ```</Tab>
<Tab title="Restart">```bash weave opinit restart challenger ```</Tab>
<Tab title="Stop">
<CodeBlock language="bash">{`weave opinit stop challenger`}</CodeBlock>
</Tab>
<Tab title="Restart">
<CodeBlock language="bash">{`weave opinit restart challenger`}</CodeBlock>
</Tab>
<Tab title="View logs">
```bash weave opinit log challenger ``` **Available Flags**
<CodeBlock language="bash">{`weave opinit log challenger`}</CodeBlock>
**Available Flags**
<ParamField path="-n" type="number" default="100">
The number of lines to display from the end of the logs.
</ParamField>
Expand Down
Loading