π¦ ClawHub
Paperless
by @nickchristensen
Interact with Paperless-NGX document management system via ppls CLI. Search, retrieve, upload, and organize documents.
TERMINAL
clawhub install paperlessπ About This Skill
name: paperless description: Interact with Paperless-NGX document management system via ppls CLI. Search, retrieve, upload, and organize documents. emoji: π metadata: {"clawdbot":{"requires":{"bins":["ppls"],"env":["PPLS_HOSTNAME","PPLS_TOKEN"]},"install":[{"id":"node","kind":"node","package":"@nickchristensen/ppls","bins":["ppls"],"label":"Install ppls CLI (npm/bun)"}]}}
Paperless-NGX CLI
Search and manage documents in Paperless-NGX using ppls.
Setup
npm install -g @nickchristensen/ppls
ppls config set hostname http://your-paperless-host
ppls config set token your-api-token
Searching Documents
# By name
ppls documents list --name-contains "invoice" --jsonBy date range
ppls documents list --created-after 2024-01-01 --created-before 2024-12-31 --jsonBy tag (OR β any of these tags)
ppls documents list --tag 5 --tag 12 --jsonBy tag (AND β must have all)
ppls documents list --tag-all 5,12 --jsonExclude tags
ppls documents list --tag-not 3 --jsonBy correspondent
ppls documents list --correspondent 7 --jsonBy document type
ppls documents list --document-type 2 --jsonDocuments missing metadata
ppls documents list --no-correspondent --json
ppls documents list --no-tag --jsonRecently added/modified
ppls documents list --added-after 2024-06-01 --json
ppls documents list --modified-after 2024-06-01 --jsonCombine filters
ppls documents list --correspondent 7 --created-after 2024-01-01 --tag 5 --json
Viewing & Downloading
# Get full document details (includes OCR content)
ppls documents show 1234 --jsonDownload single document
ppls documents download 1234 --output ~/Downloads/doc.pdfDownload multiple documents
ppls documents download 1234 5678 --output-dir ~/DownloadsDownload original (pre-processed) version
ppls documents download 1234 --original
Uploading Documents
# Simple upload (Paperless auto-processes)
ppls documents add scan.pdfWith metadata
ppls documents add receipt.pdf \
--title "Store Receipt" \
--correspondent 5 \
--document-type 2 \
--tag 10
Managing Metadata
# List tags/correspondents/document-types
ppls tags list --json
ppls correspondents list --json
ppls document-types list --jsonCreate new
ppls tags add "Tax 2024" --color "#ff0000"
ppls correspondents add "New Vendor"
ppls document-types add "Contract"Update document metadata
ppls documents update 1234 --title "New Title" --correspondent 5 --tag 10
Tips
--json for AI/automation β it's the most parseable formatYYYY-MM-DD or full ISO 8601list --json commands to find them--tag 1 --tag 2 or --tag 1,2 both work--page and --page-size for large result setsLinks
βοΈ Configuration
npm install -g @nickchristensen/ppls
ppls config set hostname http://your-paperless-host
ppls config set token your-api-token
π Tips & Best Practices
--json for AI/automation β it's the most parseable formatYYYY-MM-DD or full ISO 8601list --json commands to find them--tag 1 --tag 2 or --tag 1,2 both work--page and --page-size for large result sets