Move import flow behind subcommand
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user