config
View and modify Unsterwerx configuration settings. Configuration is stored in the data directory and persists across sessions.
Usage
bash
unsterwerx config <SUBCOMMAND>
Subcommands
| Subcommand | Description |
|---|---|
show | Show current configuration |
get | Get a specific config value |
set | Set a config value |
init | Initialize 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
| Argument | Required | Description |
|---|---|---|
KEY | Yes | Configuration 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
| Argument | Required | Description |
|---|---|---|
KEY | Yes | Configuration key |
VALUE | Yes | New 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
- Configuration keys use dot notation:
section.key(e.g.,similarity.threshold,ingest.max_file_size,ingest.max_size_file). - See Configuration Reference for a complete list of all configuration keys with types and defaults.