This reference documents the CLI commands and management endpoints that exist in the current codebase.
shibudb start [flags]
shibudb stop [--data-dir <path>]
shibudb connect [--port <n>] [--username <u> --password <p>]
shibudb manager [--port <n>] [--data-dir <path>] [--username <u> --password <p>] <command> [args...]
shibudb rebuild-index [--data-dir <path>] <space_name>
shibudb dump [--data-dir <path>] [--output <file>] [--space <name>]
shibudb restore [--data-dir <path>] [--input <file>] [--mode overwrite|merge]
--data-dir <path> Data directory root (default: $XDG_DATA_HOME/shibudb or ~/.shibudb)
--output <file> Output dump file path (default: stdout)
--space <name> Dump only this space (default: all spaces)
--data-dir <path> Data directory root (default: $XDG_DATA_HOME/shibudb or ~/.shibudb)
--input <file> Input dump file path (default: stdin)
--mode overwrite|merge overwrite (default): replace existing spaces; merge: overlay dump data
--data-dir <path> Data directory root (default: $XDG_DATA_HOME/shibudb or ~/.shibudb)
--admin-user <u> Admin username for initial bootstrap (non-interactive)
--admin-password <p> Admin password for initial bootstrap (non-interactive)
--port <n> TCP port for client connections (default: 4444)
--management-port <n> TCP port for management HTTP API (default: 5444; must differ from --port)
--max-connections <n> Maximum concurrent connections (default: 1000, or SHIBUDB_MAX_CONNECTIONS)
--port <n> TCP port of the ShibuDb server (default: 4444)
--username <u> Optional; prompts if omitted (alias: --user)
--password <p> Optional; prompts if omitted (alias: --pass)
Commands are case-insensitive. Type HELP (or ?) at the prompt to print the full command reference.
HELP, ? Print the interactive command reference
EXIT, QUIT Disconnect and exit
USE <space>
LIST-SPACES
CREATE-SPACE <name> [--engine key-value|vector] [--dimension N] [--index-type TYPE] [--metric METRIC] [--enable-wal] [--disable-wal] [--segment-rollover-bytes N] [--max-segments-before-merge N] [--metadata-fields name:type,...]
DELETE-SPACE <name>
Notes:
CREATE-SPACE ... --engine vectorrequires--dimension N.--index-typefor--engine key-valuedefaults tobtree(supportsbtreeorhashmap).- WAL is disabled by default unless
--enable-walis provided. --metadata-fieldsdeclares indexed metadata fields for filtering and is only valid with--index-type Flat. Format is comma-separatedname:type(no spaces);typeisstring,int, orfloat. See Metadata Filtering.
PUT <key> <value>
GET <key>
DELETE <key>
Vector IDs must be numeric (parsed as int64).
INSERT-VECTOR <id> <comma-separated-floats> [--meta key=value,...]
DELETE-VECTOR <id>
GET-VECTOR <id>
SEARCH-TOPK <comma-separated-floats> <k> [--where <expression>]
RANGE-SEARCH <comma-separated-floats> <radius> [--where <expression>]
Notes:
- Query vector length must match the space dimension.
DELETE-VECTORis not supported for HNSW index types.--metaand--whereare only available onFlatspaces created with--metadata-fields.--metais comma-separatedkey=value(no spaces); numeric values are inferred, quote to force a string.--whereis a boolean filter expression supporting= != > >= < <=,IN (...),BETWEEN low AND high,AND/OR/NOT, and parentheses. Full grammar and examples: Metadata Filtering.
CREATE-USER
UPDATE-USER-PASSWORD <username>
UPDATE-USER-ROLE <username>
UPDATE-USER-PERMISSIONS <username>
DELETE-USER <username>
GET-USER <username>
The manager talks to the management HTTP API (--management-port, default 5444).
status
stats
health
limit <new_limit>
increase [amount] (default amount: 100)
decrease [amount] (default amount: 100)
reset
update-space-settings --segment-rollover-bytes <bytes> --max-segments-before-merge <n> <space>
generate-token
list-tokens
delete-token <token_id>
All endpoints require:
Authorization: Bearer <token>
Endpoints:
GET /health
GET /stats
GET /limit
PUT /limit
POST /limit/increase
POST /limit/decrease
PUT /spaces/settings