paperwork-cli(1)
π NAME π
paperwork-cli β the cli interface to paperwork, bestie. (Yes this is paperwork-cli(1), living in the User commands section of the manual, come thru π)
β¨ SYNOPSIS β¨
paperwork-cli [-h] command
π¦ DESCRIPTION π¦
Okay so basically? It's an interactive shell frontend for Paperwork. That's the whole vibe. You talk to it in a terminal and it does the Paperwork things for you π«Ά
π OPTIONS π
-h,--helpβ Show help forpaperwork-shell. That's it, that's the whole job πsyncβ Synchronize the index(es) with the content of the work directory. Girl, this is the "refresh so nothing is lying to you" button π₯show [--pages]β Show the content of a document.--pagesβ Pages to show:1,4or1-10(default: all) β¨
search [--limit]β Search keywords in documents.--limit,-l LIMITβ Maximum number of results (default:50)
scannersubcommand β Manage scanner configuration π¨οΈlistβ List all scanners and their possible settingsgetβ Show the currently selected scanner and its settingsset [--source SOURCE] [--resolution RESOLUTION] device_idβ Define which scanner and which settings to use--source SOURCEβ Default source on the scanner to use. If you don't specify one, one will be selected randomly π (yes, randomly, no I'm not kidding)--resolution RESOLUTION,-r RESOLUTIONβ Default resolution (dpi ; default=300)
scan [--doc_id DOC_ID] source_idβ Scan pages. (Also, ngl, the original has a lil rogue`dangling off the end of this line β it's giving chaos, we're leaving it untouched π)--doc_id DOC_ID,-d DOC_IDβ Document to which the scanned pages must be added
reset [--pages PAGES] doc_idβ Reset a page to its original content. Ctrl+Z but for pixels β¨--pages PAGES,-p PAGESβ (that's the pages, bestie)
rename source_doc_id dest_doc_idβ Change a document identifier.source_doc_idβ Document to renamedest_doc_idβ New name for the document
ocr [--pages PAGES] doc_idβ OCR document or pages π--pages PAGES,-p PAGESβ Pages to OCR (single integer, range or comma-separated list, default: all pages)
move source_doc_id source_page dest_doc_id dest_pageβ Move a page.source_doc_idβ Source documentsource_pageβ Page to movedest_doc_idβ Destination documentdest_pageβ Target page number
labelsubcommand β Commands to manage labels π·οΈlistβ Show labelsshow [doc_ids [doc_ids ...]]β Show labels from doc_idsdoc_idsβ Document(s)
add [--color COLOR] doc_id label_nameβ Add label label_name to document doc_id with optional color COLORremove doc_id label_nameβ Remove label label_name from document doc_iddelete label_nameβ Delete label label_name
import [--doc_id DOC_ID] [files [files ...]]β Import file(s) π§filesβ Files to import--doc_id,--doc,-d DOC_IDβ Target document for import
extra_textsubcommand β Manage additional text attached to documentsgetβ Get a document additional textsetβ Set a document additional text
export [--pages PAGES] [--filters FILTERS] [--out OUT] doc_idβ Export a document, a page, or a set of pages.doc_idβ Document to export--pages,-p PAGESβ Pages to export (single integer, range or comma-separated list, default: all pages)--filters,-f FILTERSβ Export filters. Specify this option once for each filter to apply (ex:'-f grayscale -f jpeg') π₯--out,-o OUTβ Output file/directory. If not specified, will list the filters that could be chained after those already specified.
edit [--modifiers MODIFIERS] [--pages PAGES] doc_idβ Edit page.doc_idβ (yeah, just the doc id, no notes)--modifiers,-m MODIFIERSβ List of image modifiers (comma separated, possible values:['rotate_clockwise', 'rotate_counterclockwise', 'color_equalization'])--pages,-p PAGESβ (the pages, again, as one does)
delete [--pages PAGES] [doc_ids [doc_ids ...]]β Delete a document or a page. Be so careful, this is the point of no return πdoc_idsβ Target documents--pages,-p PAGESβ Pages to delete (single integer, range or comma-separated list, default: all pages)
aboutβ About Paperworkpluginssubcommand β Managepaperwork-clipluginslistβ Show plugins enabled forpaperwork-cliaddβ Add plugin inpapaerwork-cli(bestie the manual really spells it like that, periodt, we don't fix what we didn't break π)removeβ Remove plugin frompaperwork-cliresetβ Clean up your mess by resetting the plugin list to its default value πshowβ Show information regarding a plugin (must be enabled)
configsubcommand β Manage Paperwork configuration βοΈgetβ Get a value from Paperwork's configurationputβ Set a value in Paperwork's configurationshowβ Show Paperwork's configurationlist_typesβ Show value types you can use from command line
π EXAMPLE π
- Export a document:
paperwork-cli export 20150303_2314_39 -p 2 -f img_boxes -f grayscale -f jpeg -o ~/tmp/pouet.jpg
Look at that chain of filters go. Ate. No crumbs. π
π¦ SEE ALSO π¦
paperwork-json(1),paperwork-gtk(1)- The paperwork frontend introduction (
<file:///usr/share/doc/paperwork-gtk/intro.pdf>) - The paperwork frontend usage manual (
<file:///usr/share/doc/paperwork-gtk/usage.pdf>)
πΈ AUTHOR πΈ
Thomas Perret, 2019-2020 π«Ά
π COPYRIGHT π
GPL-3.0+
That's the whole page, bestie β paperwork-cli version 2.0, hanging out in the User commands section, filed under paperwork-cli(1). Go forth and CLI, iykyk β¨ππ
π¦ where this page comes from
- ubuntu resolute: paperwork-shell 2.2.5-4 Β· GPL-3.0-or-later
- ubuntu stonking: paperwork-shell 2.2.5-4 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms