Domains
How to create a Domain
A Domain is the last prerequisite before anyone can send a first Intent, and the prerequisite for giving anyone a Domain-scoped role. When doctor setup reports no Domain and you intend to use DuckDB:
vibedata domain create \
--name "Sales" \
--kind duckdb_local \
--repo my-org/sales-domain \
--secret-store local_toml \
--schema main \
--database-file ./sales.duckdbIt prints the new Domain's identifier, which is what you need to give anyone a role in it.
--repo takes an existing GitHub repository as owner/name; Vibedata resolves the rest from the installations you can reach, and tells you which it searched if it cannot find that repository. --secret-store is required and takes local_toml (Local File) or studio_key_vault (Internal) — the two stores DuckDB offers — because Vibedata declares no default for them.
The database is Vibedata's to manage, so you name one of three ways to supply it, and exactly one:
| Flag | What it does |
|---|---|
--database-file ./sales.duckdb | Uploads a .duckdb file from this machine. Refuses a file over 1 GB, an empty one, or a name Vibedata cannot use, before transferring anything. A chunk Vibedata only partly accepts continues from where it actually got to; stopping the command discards the transfer, so running it again starts the upload over |
--database sales.duckdb | Binds a database already in Vibedata that no Domain has taken. If the name is not there, the command lists the ones that are |
--create-database sales.duckdb | Creates an empty database for a Domain that will load its own data |
--schema names the schema to bind, and creates it if it is not already in that database. DuckDB needs no credential and no service identity, so the command asks for neither.
Re-running the same command after a failure is safe: it replays rather than creating a second database or a second Domain. One exception: with --database-file, if the upload finished before the failure, the file is already in Vibedata and a second upload of the same name is refused. Re-run with --database <file name> instead. Creating a Domain on any other data platform is done in Vibedata itself.
Command reference
vibedata domain create
Create a Domain, so a first Intent can be sent.
Exactly one database source is required. DuckDB Local needs no credential and no service identity, so none is asked for.
vibedata domain create [OPTIONS]| Option | Default | What it does |
|---|---|---|
--name TEXT | required | Name for the new Domain. |
--kind TEXT | required | Data Platform Type. Only 'duckdb_local' is supported today. |
--repo TEXT | required | Existing GitHub repository to bind, as owner/name. |
--secret-store TEXT | required | Secret Store for the Domain. DuckDB Local admits local_toml or studio_key_vault. |
--schema TEXT | required | Schema to bind, created in the database if it is not there. |
--database-file PATH | — | Upload this local .duckdb file and bind it. |
--database TEXT | — | Bind a managed database already in Vibedata's unclaimed pool. |
--create-database TEXT | — | Create an empty managed database with this name and bind it. |
--studio-url TEXT | — | Vibedata URL to target. Defaults to the local installation. |

