> For the complete documentation index, see [llms.txt](https://calnix.gitbook.io/eth-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://calnix.gitbook.io/eth-dev/archive/brownie-framework/brownie-networks.md).

# Brownie Networks

## Networks created

{% hint style="info" %}

> brownie networks list true

will return full details of each network
{% endhint %}

### Under Ethereum category

![](/files/qeLgIcLazNr23wrvGlmB)

* **ganache-local is our persistent mock network**
* requires that ganacheUI is running, so that brownie will latch onto it automatically to deploy required mock contracts.
* Persistency will last till ganacheUI is closed.

{% content-ref url="/pages/gYmjzKvLxljVjLivi5zd" %}
[Forking and Mocking](/eth-dev/archive/brownie-framework/brownie-advanced/forking-and-mocking.md)
{% endcontent-ref %}

{% content-ref url="/pages/BC0WWqcg7xMipDkkX5Y9" %}
[Mocking](/eth-dev/archive/brownie-framework/brownie-advanced/mocking.md)
{% endcontent-ref %}

### Development:

![](/files/wGW13nObdjMRa46XGOeu)

#### mainnet-fork-dev

* **Forks ETH mainnet**
* Provider: Alchemy

\-- brownie networks add development mainnet-fork-dev cmd=ganache-cli host=<http://127.0.0.1> fork=<https://eth-mainnet.alchemyapi.io/v2/j13raIIaPyTnV9ZVv2UnQm48PUFcPDkL> accounts=10 mnemonic=brownie port=8545

#### mainnet-fork

* brownie comes preset with mainnet-fork under Development category:
* connects to infura, and requires infura token in .env.
* Infura causes problems, so Patrick overwrites it to use Alchemy
* we shall do this too

brownie networks add development mainnet-fork cmd=ganache-cli host=<http://127.0.0.1> fork=<https://eth-mainnet.alchemyapi.io/v2/QQSu6nAAnOvWlkS9KTHk9UGk-kxieDmj> accounts=10 mnemonic=brownie port=8545

## On Ganache UI and CLI

perhaps changing ganacheUI port number to be something else, could prevent brownie(ganache-cli) to auto-attach itself, if ui is running.&#x20;

This way we can control networks with port numbers.

<https://stackoverflow.com/questions/69818605/brownie-doesnt-automatically-attach-to-local-ganache-when-i-have-ganache-open-i>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://calnix.gitbook.io/eth-dev/archive/brownie-framework/brownie-networks.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.
