Skip to content

Commit

Permalink
Revise Running Nethermind section
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo committed Aug 17, 2023
1 parent d483ed0 commit 6360c66
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 183 deletions.
8 changes: 0 additions & 8 deletions docs/fundamentals/01-running-nethermind/_category_.json

This file was deleted.

106 changes: 0 additions & 106 deletions docs/fundamentals/01-running-nethermind/running-the-client.md

This file was deleted.

67 changes: 0 additions & 67 deletions docs/fundamentals/01-running-nethermind/runtime.md

This file was deleted.

106 changes: 106 additions & 0 deletions docs/fundamentals/running-nethermind.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
title: Running Nethermind
sidebar_position: 0
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

:::info
To get the latest Nethermind version, see [Installing Nethermind](../get-started/installing-nethermind.md).
:::

## Running directly

For advanced users, running the Nethermind client directly is the best option as it gives complete control over the
configuration parameters. Nethermind is mainly controlled by command line options (or arguments, flags).

The full list of options can be displayed by running:

<Tabs groupId="os">
<TabItem value="linux" label="Linux">

```bash
./nethermind -h
```

</TabItem>
<TabItem value="windows" label="Windows">

```powershell
./nethermind.exe -h
```

</TabItem>
<TabItem value="macos" label="macOS">

```bash
./nethermind -h
```

</TabItem>
</Tabs>

For instance, to launch the client with the default configuration for the Mainnet and custom data directory, run:

<Tabs groupId="os">
<TabItem value="linux" label="Linux">

```bash
./nethermind -c mainnet -dd path/to/data/dir
```

</TabItem>
<TabItem value="windows" label="Windows">

```powershell
./nethermind.exe -c mainnet -dd path/to/data/dir
```

</TabItem>
<TabItem value="macos" label="macOS">

```bash
./nethermind -c mainnet -dd path/to/data/dir
```

</TabItem>
</Tabs>

For detailed info about the available configuration options, see [Configuration](./04-configuration/README.md).

## Running with the launcher

For rookies, the launcher is the easiest way to begin by just following a few simple steps.

Run the launcher as follows:

<Tabs groupId="os">
<TabItem value="linux" label="Linux">

```bash
./nethermind-launcher
```

</TabItem>
<TabItem value="windows" label="Windows">

```powershell
./nethermind-launcher.exe
```

</TabItem>
<TabItem value="macos" label="macOS">

```bash
./nethermind-launcher
```

</TabItem>
</Tabs>

1. To run a node, select `Ethereum Node`
2. Then, select the desired [network](../get-started/networks.md) (Mainnet, Sepolia, Goerli)
3. Then, select the [sync mode](./03-sync-modes.md) and you're ready to go

If you need just the Nethermind command line interface (CLI), select `CLI` in the first step.
4 changes: 2 additions & 2 deletions docs/get-started/installing-nethermind.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Then, install Nethermind as follows:
brew install nethermind
```

For further instructions, see [Running Nethermind](../fundamentals/01-running-nethermind/running-the-client.md).
For further instructions, see [Running Nethermind](../fundamentals/running-nethermind.md).

## Standalone downloads

Expand Down Expand Up @@ -187,7 +187,7 @@ To monitor the Nethermind output, run:
journalctl -u nethermind -f
```
For further instructions, see [Running Nethermind](../fundamentals/01-running-nethermind/running-the-client.md).
For further instructions, see [Running Nethermind](../fundamentals/running-nethermind).
## Docker container
Expand Down

0 comments on commit 6360c66

Please sign in to comment.