CLI Commands
Run:
taidb --helpGlobal options
Section titled “Global options”| Option | Purpose |
|---|---|
--sync | Force synced writes. |
--compression <mode> | Select compression mode. |
--zstd-level <level> | Set zstd level for zstd mode. |
--compression-min-bytes <bytes> | Minimum value size before compression. |
--key-file <path> | Use an encryption key file. |
--no-mmap-reads | Use direct file reads instead of mmap. |
--read-only | Open an existing database without write/create access. |
Compression modes:
nonezstd-fastzstdzstd-densezstd-max
Data commands
Section titled “Data commands”taidb put <path> <key> <value>taidb get <path> <key>taidb delete <path> <key>taidb delete-prefix <path> <prefix>Vector commands
Section titled “Vector commands”taidb vector-put <path> <key> "0.1,0.9,0.2"taidb vector-search <path> "0.0,1.0,0.2" --limit 5Maintenance commands
Section titled “Maintenance commands”taidb stats <path>taidb stats <path> --jsontaidb --read-only stats <path>taidb verify <path>taidb --read-only verify <path>taidb compact <path>taidb repack <path>taidb snapshot <path> <output>taidb snapshot <path> <output> --read-onlyEncryption command
Section titled “Encryption command”taidb keygen <output>Import commands
Section titled “Import commands”taidb import <path> <input> --format autotaidb import <path> <input> --format jsonltaidb import <path> <input> --format csvtaidb import <path> <input> --format dirtaidb import-db <target> <source>Common import options:
--batch-size 4096--prefix docs:--source-key-file ./source.keyBenchmark commands
Section titled “Benchmark commands”taidb bench-large <path>taidb bench-enterprise <path>taidb bench-compression <path>bench-compression creates separate output files for no compression,
zstd-fast, and zstd-dense, then reports write speed, read speed, verify
speed, file size, compression ratio, and space savings.
Use benchmark output as a comparison artifact. Include hardware and settings when publishing results.