> For the complete documentation index, see [llms.txt](https://docs.hardpoint.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hardpoint.dev/guides/hardpoint-enterprise/managing-db-fleets.md). Agents can also search and read this documentation through its [MCP server](https://docs.hardpoint.dev/~gitbook/mcp).

# Managing DB Fleets

Create and manage databases at scale

## Overview

Since Hardpoint Lattice enforces a pure one-database-per-tenant model *cryptographically*, creating and managing individual databases at scale would quickly become cumbersome and error-prone. For this reason, Lattice offers an abstraction for managing many similar databases together called a **fleet**.

A fleet represents a group of functionally identical databases, each one dedicated to a single tenant. It's the fundamental building block of database infrastructure inside the Lattice platform.

***

## Creating a fleet

Fleets are created programmatically through the Hardpoint control plane API. You can provision them directly from the CLI. For example, to create a fleet of PostgreSQL databases called `main_prod`, you'd run the following command:

```shellscript
npx @hardpointlabs/cli create fleet --type=postgres --name=main_prod
```

Creating a fleet itself doesn't provision any databases; they're created/accessed on-demand when tenant traffic passes through [Hardpoint Connect](https://docs.hardpoint.dev/guides/hardpoint-enterprise.md)'s routing mesh. The fleet is responsible for managing database-specific properties, performing upgrades and exposing a service endpoint to Hardpoint Connect.

## Viewing a fleet status

#### Listing all fleets in your Hardpoint organization

```shellscript
npx @hardpointlabs/cli get fleets
```

####

## Connecting to a fleet instance

A lattice fleet behaves like a&#x20;
