Move import flow behind subcommand

This commit is contained in:
Jan Bader
2026-07-20 20:34:49 +02:00
parent aaf7be0b90
commit 882027f622
2 changed files with 63 additions and 14 deletions
+4 -4
View File
@@ -53,10 +53,10 @@ Configuration fields:
## Import and archive workflow
Run the default command without a subcommand:
Run the `import` subcommand:
```bash
docspell-cli
docspell-cli import
```
The command logs in with `dsc`, scans every configured import directory, and checks each file against Docspell.
@@ -76,8 +76,8 @@ If the Docspell item has no folder, `null` is used as the folder name. The corre
By default, files that do not exist in Docspell stay in place. Enable uploads with either the flag or environment variable:
```bash
docspell-cli --upload-missing
DS_CC_UPLOAD_MISSING=true docspell-cli
docspell-cli import --upload-missing
DS_CC_UPLOAD_MISSING=true docspell-cli import
```
Uploaded files are not archived immediately. They are re-checked on the next run, after Docspell has processed and confirmed them.