Unsterwerx

config

View and modify Unsterwerx configuration settings. Configuration is stored in the data directory and persists across sessions.

Usage

bash
unsterwerx config <SUBCOMMAND>

Subcommands

SubcommandDescription
showShow current configuration
getGet a specific config value
setSet a config value
initInitialize default config file

config show

Displays the complete current configuration in TOML format.

bash
unsterwerx config show
[general]
data_dir = "/home/user/.unsterwerx"

[ingest]
extensions = [
    "pdf",
    "docx",
    "xlsx",
    "pptx",
    "doc",
    "xls",
    "ppt",
    "txt",
    "csv",
    "rtf",
]
max_file_size = 524288000
max_size_file = 104857600
skip_hidden = true
follow_symlinks = false

[similarity]
shingle_k = 3
num_hashes = 128
lsh_bands = 32
lsh_rows = 4
threshold = 0.3

[storage]
journal_mode = "wal"
busy_timeout_ms = 5000
zstd_level = 3

config get

Gets the value of a specific configuration key.

bash
unsterwerx config get <KEY>

Arguments

ArgumentRequiredDescription
KEYYesConfiguration key (e.g., similarity.threshold)
bash
unsterwerx config get similarity.threshold
0.3

config set

Sets a configuration value.

bash
unsterwerx config set <KEY> <VALUE>

Arguments

ArgumentRequiredDescription
KEYYesConfiguration key
VALUEYesNew value
bash
unsterwerx config set similarity.threshold 0.5

config init

Initializes a default configuration file in the data directory.

bash
unsterwerx config init

Notes