dbx tenant list enumerates the same contexts that dbx checkout activates.
Checkout workflow
dbx tenant list is the easiest way to discover available domains and where they live. dbx checkout updates the active RocksDB path, snapshots directory, config overrides, and default plugin namespace. Follow it with dbx status to confirm where commands will apply before you mutate data.
Attach remotes per domain
Associate a remote endpoint while you switch contexts so replication commands have everything they need:dbx checkout persists the remote address, token, and remote tenant under the domain’s remote.json, so later dbx push/dbx pull/dbx watch calls can use the stored values without retyping credentials. Re-run dbx checkout with just --remote, --token, or --remote-tenant to rotate one piece, and add --port when the remote listens on a non-default socket.
Common flags: -c/--create to make the domain if it does not exist, positional NAME or -d/--domain to pick the context, --delete --force for cleanups. Use host:port on --remote (defaults to port 6363 if omitted) and pair it with --token plus --remote-tenant when the remote hosts multiple tenants:
Naming and structure tips
- Prefix domains with the product or bounded context, suffix with the environment (
orders-prod,orders-staging). - Let the configured data directory handle sharding; attach storage per shard if you want independent backup schedules instead of hard-coding per-domain paths.
- Commit a
.dbx-domainfile at the root of each repo to remind developers which domain their scripts expect.
Replication awareness
Replication jobs are domain-aware. A standby that trackspayments-prod retains its own queue offsets. When you switch to payments-dev, replication commands only touch that domain:
dbx checkout:
Multi-tenant operators
If you host EventDBX for multiple customers, run one domain per tenant. Combinedbx checkout with shell prompts (PS1) or terminal titles that show the active domain so humans never confuse tenants. Automation should always pass --domain explicitly.
The end result: you can switch contexts in seconds without worrying that your commands will leak into another environment or corrupt an unrelated business line.