Add configurable mount query

This commit is contained in:
Jan Bader
2026-07-19 19:57:35 +02:00
parent 7edd1b8d7f
commit 9b5a9899b8
4 changed files with 66 additions and 15 deletions
+4 -4
View File
@@ -26,13 +26,13 @@ Erstellen Sie eine `docspell-import.json` Datei in Ihrem Home-Verzeichnis: [Beis
The `mount` subcommand exposes a Docspell collection as a read-only filesystem.
It uses the same `~/docspell-import.json` configuration and password command as the import command.
Set `mountPath` in the config to define the default mount point.
Set `mountPath` in the config to define the default mount point and `mountQuery` to define the default Docspell query.
```bash
mkdir -p ~/mnt/docspell
docspell-import mount --query '*' ~/mnt/docspell # starts in the background
docspell-import mount ~/mnt/docspell # starts in the background
# or, with mountPath configured:
docspell-import mount --query '*'
docspell-import mount
# unmount when done
fusermount -u ~/mnt/docspell
```
@@ -45,7 +45,7 @@ Mounted files are grouped as:
Options:
- `--query`: Docspell item query to expose, default `*`.
- `--query`: Docspell item query to expose, defaults to `mountQuery` from config.
- `--limit`: number of items fetched per API request, default `1000`.
- `--auth-header`: token header, default `X-Docspell-Auth`.