# Connecting to Test networks

By default, Celo Terminal does not allow users to connect to non-Mainnet networks. This is done to protect the users from accidental mistakes or unexpected behavior. If you want to use Celo Terminal to connect to Alfajores or Baklava networks, you need to set special environment variables before launching the application.

***NOTE*** There is a higher likelihood that some apps might experience bugs if you constantly switch between the Mainnet and test networks.

### Launch for Baklava

Example of creating a launch script to connect Celo Terminal to Baklava network. (This is for MacOS):

```
# create file: launch-baklava.sh
```

```
export CELOTERMINAL_NETWORK_ID=62320
export CELOTERMINAL_ACCOUNTS_DB=home/.celoterminal/celoaccounts-test.db
/Applications/Celo\ Terminal.app/Contents/MacOS/Celo\ Terminal
```

```
# Make the script executable and run it
> chmod +x ./launch-baklava.sh
> ./launch-baklava.sh
```

***NOTE*** In addition to changing the NETWORK\_ID, this launcher script also changes accounts database location. This way, you can have separate set of accounts that you can use on the test networks vs on Mainnet.

### Env Variables

List of all CELOTERMINAL environment variables:

```
CELOTERMINAL_NETWORK_ID  - ChainId of the network to connect to.
CELOTERMINAL_NETWORK_URL - Default network URL to connect to.
CELOTERMINAL_ACCOUNTS_DB - Accounts database location. Path must have form of: <home | userData>/<path to the accounts database file>
```


---

# 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.celoterminal.com/advanced-configuration/connecting-to-test-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.
