CLI
The vdb command-line tool for managing ValtheraDB databases.
Install globally using Bun (the package is distributed from GitHub):
bun add -g github:wxn0brP/ValtheraDB-cli
Examples
vdb -d ./my-db find users '{ "name": "Jane" }'
vdb -d ./my-db count users '{ "active": true }'
vdb -d ./my-db add users '{ "name": "Jane" }'
vdb -d ./my-db bulkAdd users '[{ "name": "A" }, { "name": "B" }]'
vdb -d ./my-db getCollections
vdb -d ./my-db capabilities
vdb server 3000
vdb format ./my-db "json5:x"
Notes
-d, --dir <path>selects the database directory (default: current directory).-j, --jsonprints results as JSON; errors are printed as structuredValtheraErrorpayloads.-p, --config-path <path>loads adapter config from a YAML file (default:./valthera.cli.yml).vdb serverstarts a development server without authentication; do not use it in production.
-> GitHub