Config commands
Config commands
Reference for every indexed config * subcommand (see indexed config --help), configuration keys, and environment overrides. For global indexed options, see Other commands — global options (top-level). For narrative setup and tuning, see the Configuration guide.
The CLI registers exactly four subcommands: get, set, list, and validate. There is no config init, config inspect, config update, or config delete.
The config file
Indexed reads one config.toml, not a global-plus-workspace merge. Which file is read depends on the resolved storage mode:
| Storage mode | Config file |
|---|---|
| Global (default) | ~/.indexed/config.toml |
Local (--local, or a [workspace] mode = "local" preference) | ./.indexed/config.toml in the current working directory |
Every key has a built-in default, so the file is optional: Indexed runs without a config.toml and only reads values you have overridden. There is no command that scaffolds one — indexed init creates the data directories and downloads the model, and indexed config set creates the resolved config.toml on first write.
indexed config list
Display the resolved configuration (defaults, the config file, and environment overrides).
indexed config list [section] [flags]| Argument / flag | Type | Required | Default | Description |
|---|---|---|---|---|
section | string | No | — | Optional: sources, core, logging, mcp, performance |
--show-defaults / --defaults / -d | flag | No | off | Show all values including defaults |
Examples:
indexed config list
indexed config list sources
indexed config list --defaultsJSON: use the global --simple-output flag:
indexed --simple-output config listindexed config get
Read a single value from the resolved configuration by dot path. Sensitive values (tokens, passwords) are masked.
indexed config get <key>Examples:
indexed config get core.v1.indexing.chunk_size
indexed config get sources.files.ocr_enabled
indexed --simple-output config get core.v1.embedding.model_nameindexed config set
Set a value in the resolved config.toml (global by default; ./.indexed/config.toml in local mode). The file is created if it does not exist.
indexed config set <key> <value> [flags]| Argument / flag | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | Yes | — | Config key path (e.g., core.v1.indexing.chunk_size) |
value | string | Yes | — | New value (auto-coerced) |
--dry-run | flag | No | off | Preview the change without saving |
Sensitive keys (connector tokens and passwords) are written to .env next to the resolved config.toml, not into config.toml.
Example:
indexed config set core.v1.indexing.chunk_size 1024
indexed config set core.v1.indexing.chunk_size 1024 --dry-runindexed config validate
Validate the active configuration against registered validation rules. Prints errors by section and exits with status 1 if validation fails.
indexed config validateRun this after manually editing config.toml (see the Configuration guide) to catch typos before they cause indexing errors.
Configuration Keys
Indexing
| Key | Type | Default | Description |
|---|---|---|---|
core.v1.indexing.chunk_size | int | 512 | Maximum number of tokens per chunk (1–4096) |
core.v1.indexing.chunk_overlap | int | 50 | Number of overlapping tokens between consecutive chunks (must be less than chunk_size) |
Embedding
| Key | Type | Default | Description |
|---|---|---|---|
core.v1.embedding.model_name | string | "all-MiniLM-L6-v2" | Sentence Transformers model to use for embeddings |
core.v1.embedding.provider | string | "sentence-transformers" | Declared provider (sentence-transformers, openai, voyage) |
core.v1.embedding.batch_size | int | 128 | Batch size for embedding generation |
Search
| Key | Type | Default | Description |
|---|---|---|---|
core.v1.search.max_docs | int | 10 | Maximum documents returned per collection (1–100); --limit overrides for one run |
core.v1.search.max_chunks | int | 30 | Maximum chunks returned |
core.v1.search.score_threshold | float | unset | Maximum squared-L2 distance (lower is closer; 0–4). Unset disables the cutoff. |
v2 engine
| Key | Type | Default | Description |
|---|---|---|---|
core.v2.search.max_docs | int | 10 | Maximum documents returned by v2 collections |
core.v2.search.score_threshold | float | 0.0 | Minimum cosine similarity (0–1); 0 disables |
core.v2.rerank.enabled | bool | false | Enable cross-encoder reranking for v2 searches |
core.v2.rerank.model | string | "cross-encoder/ms-marco-MiniLM-L-6-v2" | Cross-encoder model (downloaded on first use) |
core.v2.rerank.top_n | int | 10 | Results kept after reranking |
Files connector
Keys below belong in a [sources.files] table in config.toml. With indexed config set, use the full dot path (for example, sources.files.ocr_enabled true).
| Key | Type | Default | Description |
|---|---|---|---|
sources.files.path | string | — | Root directory to index (-p / --path overrides for a single index create run) |
sources.files.include_patterns | list | ["*"] | Patterns for files to include (glob or regex; prefix ! to exclude, e.g. ["*", "!*.pyc"]) |
sources.files.fail_fast | bool | false | Stop indexing on the first file read error |
sources.files.respect_gitignore | bool | true | Honor .gitignore and skip common noise directories |
sources.files.excluded_dirs | list | .git, node_modules, .venv, … | Directory names pruned before traversal |
sources.files.change_tracking | string | "auto" | Change detection: auto, git, content_hash, mtime, or none |
sources.files.ocr_enabled | bool | true | Enable OCR for scanned PDFs and images |
sources.files.table_structure | bool | true | Extract table structure from documents |
sources.files.code_chunking | bool | true | Use AST-aware chunking for supported code languages |
sources.files.max_chunk_tokens | int | 512 | Maximum tokens per chunk in the parsing module |
There is no persistent sources.files.exclude_patterns key and no sources.files.excluded_extensions key. Exclusion at create time is the repeatable --exclude regex flag; include_patterns supports !-prefixed exclusions for a configured source.
Precedence
Indexed resolves one config file plus the environment. From lowest to highest priority:
- Built-in defaults
- The resolved
config.toml(~/.indexed/config.tomlor./.indexed/config.toml, chosen by storage mode — never both merged) .envfiles (the resolved root's.env, then./.envfor gaps only)INDEXED__…environment variables and connector credential variables- CLI flags on the current command
Environment Variable Overrides
Any configuration key can be overridden with an environment variable using the pattern:
INDEXED__<section>__<subsection>__<key>=<value>Double underscores (__) separate each level of the config hierarchy. Environment variables override values from config files.
Examples:
export INDEXED__core__v1__indexing__chunk_size=1024
export INDEXED__core__v1__indexing__chunk_overlap=100
export INDEXED__core__v1__embedding__model_name="paraphrase-multilingual-MiniLM-L12-v2"Connector Credentials
Connectors read credentials from the environment (or from .env), and indexed config set writes sensitive values to .env. CLI flags for indexed index create are in Index commands; this section lists the env vars.
| Variable | Used by | Description |
|---|---|---|
ATLASSIAN_EMAIL | Jira Cloud, Confluence Cloud | Atlassian account email |
ATLASSIAN_TOKEN | Jira Cloud, Confluence Cloud | Atlassian API token |
JIRA_TOKEN | Jira Server/DC | Bearer or personal access token |
JIRA_LOGIN | Jira Server/DC | Username (with JIRA_PASSWORD) |
JIRA_PASSWORD | Jira Server/DC | Password (with JIRA_LOGIN) |
CONF_TOKEN | Confluence Server/DC | Bearer or personal access token |
CONF_LOGIN | Confluence Server/DC | Username (with CONF_PASSWORD) |
CONF_PASSWORD | Confluence Server/DC | Password (with CONF_LOGIN) |
OUTLINE_API_TOKEN | Outline | Outline API token |
GITHUB_TOKEN | GitHub | GitHub token; falls back to gh auth token |
Connector schemas also accept a token / api_token value in config.toml or via --token, so environment-only is the recommended path rather than a hard restriction.
See Jira, Confluence, Outline, and GitHub for setup and troubleshooting.
Keep secrets out of version control
Use .indexed/.env (or your shell) for secrets — not config.toml. Add .env to .gitignore if you keep one in a repo directory.
Example Config File
[core.v1.indexing]
chunk_size = 512
chunk_overlap = 50
[core.v1.embedding]
model_name = "all-MiniLM-L6-v2"
[sources.files]
path = "./documents"
include_patterns = ["*.md", "*.pdf"]
respect_gitignore = true
change_tracking = "auto"
ocr_enabled = true
[core.v2.rerank]
enabled = falseData directory
Indexed stores data under ~/.indexed/ (or ./.indexed/ with --local):
~/.indexed/
├── config.toml
└── data/
└── collections/<name>/
├── manifest.json
├── documents.json
├── chunks.json
└── index.faissSee What is Indexed for how local data is used.