# 4.2.8 Seeding & clearing your local databases

{% embed url="<https://youtu.be/RiVPXNlUVRY>" %}

### Seeding your local databases

{% hint style="info" %}
Now that your source files are prepared, you are ready to "seed" your OpenCRVS database with data.
{% endhint %}

1. Ensure that OpenCRVS is running, including your countryconfig server by following the instructions in: [**3.1.3 Starting and stopping OpenCRVS**](/v1.7/setup/3.-installation/3.1-set-up-a-development-environment/3.1.3-starting-and-stopping-opencrvs.md)**.**
2. Open a new Terminal window and cd inside opencrvs-core:

```
cd opencrvs-core
```

3. Run the following command

```
yarn seed:dev
```

{% hint style="success" %}
**Now that your database has been seeded, you have completed the country configuration and you can log in to OpenCRVS!**  Proceed to the next step to learn more about some of the important API endpoints exposed by the running countryconfig service.
{% endhint %}

### Clearing your local databases

During development, you may wish to clear your local database so that you can seed it again with new files.

1. Ensure that opencrvs-core is running.
2. Open a new terminal window and cd into your opencrvs-core directory
3. Run the following command:

```
yarn db:clear:all
```


---

# 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://documentation.opencrvs.org/v1.7/setup/3.-installation/3.2-set-up-your-own-country-configuration/3.2.8-seeding-your-local-database.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.
