# Contribute via CLI

### Introduction

The [Nexus Network CLI](https://github.com/nexus-xyz/nexus-cli) is a command-line tool for contributing compute resources to the network.

![CLI nodes connecting to Nexus](/files/17fee5d0138b63cb5a62444eeb0f02a0aaa98627)

### Install Script

Quick install (scripted):

```
curl https://cli.nexus.xyz/ | sh
```

After installing, restart or refresh your terminal (e.g. `source ~/.bashrc`, `source ~/.zshrc`, etc.). To start with an existing node ID:

```
nexus-network start --node-id <your-node-id>
```

Alternatively, register your wallet address and create a node ID with the CLI, or at [app.nexus.xyz](broken://pages/b0c2088913bb8d8613b8feb71bf82533846eabe5):

```
nexus-network register-user --wallet-address <your-wallet-address>
nexus-network register-node
nexus-network start
```

The `register-user` and `register-node` commands will save your credentials to `~/.nexus/credentials.json`. To clear credentials, run:

```
nexus-network logout
```

### Setup & Configuration

{% stepper %}
{% step %}

### Initial setup

1. Run the CLI for the first time.
2. Accept the [Terms of Use](https://nexus.xyz/terms-of-use).
3. Choose between anonymous or linked proving (see the next step).
   {% endstep %}

{% step %}

### Choose proving mode

You have two options:

* Link to Nexus Account (Recommended)
  * Create an account at [app.nexus.xyz](https://app.nexus.xyz/).
  * Follow the account linking instructions.
  * Your contributions will earn NEX Points.
  * Track your progress on the leaderboard.
  * Manage all your nodes in one place.

To earn NEX Points, you must link your CLI to your Nexus account. Anonymous proving will not record contributions.
{% endstep %}
{% endstepper %}

### Troubleshooting

<details>

<summary>Known issues &#x26; help</summary>

* If you have previously proved with an older version of the CLI, you must run the install script for the new CLI, as the versions are not backwards compatible. Proofs submitted by the old CLI will not receive rewards in Testnet III.
* Check Documentation:
  * Search existing [GitHub Issues](https://github.com/nexus-xyz/nexus-cli/issues).
* Get Help:
  * Join our [Discord](https://discord.gg/nexus-xyz)
  * [Open a new GitHub issue](https://github.com/nexus-xyz/nexus-cli/issues/new) for technical problems

</details>

***

Related:

* Contribute via Web App: <https://docs.nexus.xyz/layer-1/testnet/web-node>
* FAQ: <https://docs.nexus.xyz/layer-1/testnet/faq>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nexus.xyz/network/proving-on-the-layer-1/contribute-via-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
