---
name: keepass_search
kind: function
lang: bash
domain: infra
version: "1.0.0"
purity: impure
signature: "keepass_search(term: string) -> json"
description: "Busca entries en el KeePassXC database por substring. Devuelve array JSON de paths que matchean (title/username/url/notes)."
tags: [keepass, keepassxc, search, query, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: []
params:
  - name: term
    desc: "substring a buscar (case-insensitive)"
output: "array JSON de strings con paths matched, ej: [\"Servers/prod\", \"Web/github\"]"
tested: false
tests: []
test_file_path: ""
file_path: "bash/functions/infra/keepass_search.sh"
---

## Ejemplo

```bash
source keepass_search.sh
matches=$(keepass_search "github")
# [
#   "Web/github-personal",
#   "Web/github-work"
# ]
```

## Notas

- Wrappea `keepassxc-cli search`.
- El leading `/` del CLI se quita antes de devolver.
