dbx. Follow the steps below to go from zero to a running daemon with authenticated client access.
1
Install and start the daemon
- Omit
--foregroundto run as a background service. - Use
--restrict=strictonce your schemas are locked in. - Logs stream to stdout; press
Ctrl+Cto stop the daemon when running in the foreground.
2
Mint a token
Generate boostrap token for initial access
- Revoke tokens with
dbx token revoke <jti>if they leak. - Mint short-lived tokens with
dbx token generate ... --ttl 10m. - See Authorization for scoping
--action/--resourceand tenants.
3
Connect with the JavaScript SDK
Next steps
- Schema setup: use CLI schema commands to create and evolve schemas (e.g.,
dbx schema create ...,dbx schema add ...,dbx schema remove ...,dbx schema field ...,dbx schema alter ...), or edit theschema.jsonfiles under your shard folders if you prefer to define them manually; seedbx schema --helpfor the full command surface. - Snapshots and verification:
dbx aggregate snapshot <aggregate> <id>materializes the latest state, anddbx aggregate verifyrecomputes Merkle roots when you need to prove integrity. - Replication: run
dbx watch standbyto stream changes to a standby node, ordbx push/pullfor one-off syncs. - Plugins: configure HTTP or TCP plugins to fan events out to downstream services once your domain is populated.
Every CLI command accepts
--config <path> if you need to target a custom configuration file or environment.