> ## Documentation Index
> Fetch the complete documentation index at: https://libops-renovate-github-com-libops-sitectl-isle-0-x.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# core, cache, and database

> Run common WordPress core, cache, and database maintenance helpers.

Run common maintenance commands:

```bash theme={null}
sitectl wp core version
sitectl wp core update-db
sitectl wp cache flush
sitectl wp db update
```

Export and import the database through the template Makefile:

```bash theme={null}
sitectl wp db export /tmp/site.sql
sitectl wp db import /tmp/site.sql
```

<Warning>
  Importing a database replaces the target database. Use it only when the target environment can be overwritten.
</Warning>

## Reference

### `core`

Run WordPress core maintenance helpers

```bash theme={null}
sitectl wp core <command>
```

### `cache`

Run WordPress cache helpers

```bash theme={null}
sitectl wp cache <command>
```

### `db`

Run WordPress database helpers

```bash theme={null}
sitectl wp db <command>
```
