# Betanet genesis baker

### **1. Stop and delete all containers/images**

```
docker stop $(docker ps -aq) && docker system prune -a -f
```

### **2. Delete all alphanet node files (maintaining keys!)**

```
rm -rf ~/.tzlibre-{node-betanet,client-betanet/{blocks,endorsements,nonces,wallet_lock}}

```

### **3. Pull latest version of repo**

```
cd tzlibre
git reset --hard && git clean -f && git pull origin betanet
```

### **4. Run TzLibre betanet node**

```
cd tzlibre
docker-compose -f composes/docker-compose-betanet.yml up -d node && docker-compose -f composes/docker-compose-betanet.yml logs -f node
```

Wait for identity generation. (Note: this may take a while). To detach from node logs hit Ctrl-c: node will continue to run in background.

**5. Run baker**

```
cd tzlibre
docker-compose -f composes/docker-compose-betanet.yml up -d baker && docker attach tzlibre_baker
```

Insert your password and hit Enter. Wait for string "Node synchronized." and detach from container with Ctrl-p + Ctrl-q.

**6. Run endorser**

```
cd tzlibre
docker-compose -f composes/docker-compose-betanet.yml up -d endorser && docker attach tzlibre_endorser
```

Insert your password and hit Enter. Wait for string "Node synchronized." and detach container with Ctrl-p + Ctrl-q.

**7. Run accuser**

```
cd tzlibre
docker-compose -f composes/docker-compose-betanet.yml up -d accuser && docker attach tzlibre_accuser
```

Wait for string "Node synchronized." and detach container with Ctrl-p + Ctrl-q.

That's all. You will start to bake from February 25th, 2020.

Stay tuned!


---

# 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://tzlibre-doc.gitbook.io/tzlibre/guides/betanet-genesis-baker.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.
