Two ways to use this template
- 1. Click "Copy prompt" below
- 2. Paste into Cursor, Claude Code, Codex, or any coding agent
- 3. Your agent builds the app — it asks questions along the way so the result is exactly what you want
Follow the steps below to set things up manually, at your own pace.
Create a Lakebase Instance
Provision a managed Lakebase Postgres project on Databricks and collect the connection values needed by downstream templates.
Prerequisites
Verify these Databricks workspace features are enabled before starting. If any check fails, ask your workspace admin to enable the feature.
- Databricks CLI authenticated. Run
databricks auth profilesand confirm at least one profile showsValid: YES. If none do, authenticate withdatabricks auth login --host <workspace-url> --profile <PROFILE>. - Lakebase Postgres available in the workspace. Run
databricks postgres list-projects --profile <PROFILE>and confirm the command succeeds (an empty list is fine — you are about to create the first project). Anot enabledor permission error means Lakebase is not available to this identity.
Create a Lakebase Instance
Provision a managed Lakebase Postgres project on Databricks and collect the connection values needed by downstream templates.
1. Create a Lakebase project
Create a new Lakebase Postgres project. This provisions a managed Postgres cluster with a default branch and endpoint:
databricks postgres create-project <project-name> --profile <PROFILE>
2. Verify the project resources
Confirm the branch, endpoint, and database were created:
databricks postgres list-branches \
projects/<project-name> \
--profile <PROFILE> -o json
databricks postgres list-endpoints \
projects/<project-name>/branches/production \
--profile <PROFILE> -o json
databricks postgres list-databases \
projects/<project-name>/branches/production \
--profile <PROFILE> -o json
3. Note the connection values
Record these values from the command output above. They are required by the Lakebase Data Persistence template and other Lakebase-dependent templates:
| Value | JSON path | Used for |
|---|---|---|
| Endpoint host | ...status.hosts.host | PGHOST, lakebase.postgres.host |
| Endpoint resource path | ...name | LAKEBASE_ENDPOINT, lakebase.postgres.endpointPath |
| Database resource path | ...name | lakebase.postgres.database |
| PostgreSQL database name | ...status.postgres_database | PGDATABASE, lakebase.postgres.databaseName |