paperwork-cli(1)

πŸ“¦
version 2.2.5 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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 for paperwork-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,4 or 1-10 (default: all) ✨
  • search [--limit] β€” Search keywords in documents.
    • --limit, -l LIMIT β€” Maximum number of results (default: 50)
  • scanner subcommand β€” Manage scanner configuration πŸ–¨οΈ
    • list β€” List all scanners and their possible settings
    • get β€” Show the currently selected scanner and its settings
    • set [--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 rename
    • dest_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 document
    • source_page β€” Page to move
    • dest_doc_id β€” Destination document
    • dest_page β€” Target page number
  • label subcommand β€” Commands to manage labels 🏷️
    • list β€” Show labels
    • show [doc_ids [doc_ids ...]] β€” Show labels from doc_ids
      • doc_ids β€” Document(s)
    • add [--color COLOR] doc_id label_name β€” Add label label_name to document doc_id with optional color COLOR
    • remove doc_id label_name β€” Remove label label_name from document doc_id
    • delete 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_text subcommand β€” Manage additional text attached to documents
    • get β€” Get a document additional text
    • set β€” 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 Paperwork
  • plugins subcommand β€” Manage paperwork-cli plugins
    • list β€” Show plugins enabled for paperwork-cli
    • add β€” Add plugin in papaerwork-cli (bestie the manual really spells it like that, periodt, we don't fix what we didn't break πŸ’€)
    • remove β€” Remove plugin from paperwork-cli
    • reset β€” Clean up your mess by resetting the plugin list to its default value πŸ’…
    • show β€” Show information regarding a plugin (must be enabled)
  • config subcommand β€” Manage Paperwork configuration βš™οΈ
    • get β€” Get a value from Paperwork's configuration
    • put β€” Set a value in Paperwork's configuration
    • show β€” Show Paperwork's configuration
    • list_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 🫢


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