---
name: keepass_list
kind: function
lang: bash
domain: infra
version: "1.0.0"
purity: impure
signature: "keepass_list(prefix?: string) -> json"
description: "Lista paths de entries del KeePassXC database como array JSON. Filtra opcionalmente por prefijo de grupo. Internamente usa keepass_dump y proyecta solo los paths."
tags: [keepass, keepassxc, list, pendiente-usar]
uses_functions:
  - keepass_dump_bash_infra
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: []
params:
  - name: prefix
    desc: "prefijo de path para filtrar (ej. 'Servers/'); vacio = todas"
output: "array JSON de strings con paths"
tested: false
tests: []
test_file_path: ""
file_path: "bash/functions/infra/keepass_list.sh"
---

## Ejemplo

```bash
source keepass_dump.sh
source keepass_list.sh

all=$(keepass_list)
servers=$(keepass_list "Servers/")
echo "$servers" | jq -r '.[]'
```

## Notas

- Auto-sourcea `keepass_dump.sh` desde el mismo directorio si no esta cargado.
- Para acceder a campos completos (password, username, url) usa `keepass_dump` directo.
