logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

paperwork-cli - cli interface to paperwork

Author

       Thomas Perret, 2019-2020

Description

       Interactive shell frontend for Paperwork.

Example

       • Export a document:

         paperwork-cli export 20150303_2314_39 -p 2 -f img_boxes -f grayscale -f jpeg -o ~/tmp/pouet.jpg

Name

       paperwork-cli - cli interface to paperwork

Options

-h, --help
              Show help for paperwork-shell

       sync   Synchronize the index(es) with the content of the work directory

       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,-lLIMIT
                        Maximum number of results (default: 50)

       scannersubcommand
              Manage scanner configuration

                 list   List all scanners and their possible settings

                 get    Show the currently selected scanner and its settings

                 set[--sourceSOURCE][--resolutionRESOLUTION]device_id
                        Define which scanner and which settings to use

                        --sourceSOURCE
                               Default  source  on  the  scanner  to use (if not specified, one will be selected
                               randomly)

                        --resolutionRESOLUTION,-rRESOLUTION
                               Default resolution (dpi ; default=300)

       scan[--doc_idDOC_ID]source_id`
              Scan pages

              --doc_idDOC_ID,-dDOC_ID
                     Document to which the scanned pages must be added

       reset[--pagesPAGES]doc_id
              Reset a page to its original content

              --pages PAGES, -p PAGES

       renamesource_doc_iddest_doc_id
              Change a document identifier

              source_doc_id
                     Document to rename

              dest_doc_id
                     New name for the document

       ocr[--pagesPAGES]doc_id
              OCR document or pages

              --pagesPAGES,-pPAGES
                     Pages to OCR  (single integer, range or comma-separated list, default: all pages)

       movesource_doc_idsource_pagedest_doc_iddest_page
              Move a page

              source_doc_id
                     Source document

              source_page
                     Page to move

              dest_doc_id
                     Destination document

              dest_page
                     Target page number

       labelsubcommand
              Commands to manage labels

              list   Show labels

              show[doc_ids[doc_ids...]]
                     Show labels from doc_ids

                     doc_ids
                            Document(s)

              add[--colorCOLOR]doc_idlabel_name
                     Add label label_name to document doc_id with optional color COLORremovedoc_idlabel_name
                     Remove label label_name from document doc_iddeletelabel_name
                     Delete label label_nameimport[--doc_idDOC_ID][files[files...]]
              Import file(s)

              files  Files to import

              --doc_id,--doc,-dDOC_ID
                     Target document for import

       extra_textsubcommand
              Manage additional text attached to documents

              get    Get a document additional text

              set    Set a document additional text

       export[--pagesPAGES][--filtersFILTERS][--outOUT]doc_id
              Export a document, a page, or a set of pages.

              doc_id Document to export

              --pages,-pPAGES
                     Pages to export (single integer, range or comma-separated list, default: all pages)

              --filters,-fFILTERS
                     Export filters. Specify this option once for each filter to apply  (ex:  '-f  grayscale  -f
                     jpeg').

              --out,-oOUT
                     Output  file/directory. If not specified, will list the filters that could be chained after
                     those already specified.

       edit[--modifiersMODIFIERS][--pagesPAGES]doc_id
              Edit page

              doc_id--modifiers,-mMODIFIERS
                     List  of  image  modifiers  (comma   separated,   possible   values:   ['rotate_clockwise',
                     'rotate_counterclockwise', 'color_equalization'])

              --pages, -p PAGES

       delete[--pagesPAGES][doc_ids[doc_ids...]]
              Delete a document or a page

              doc_ids
                     Target documents

              --pages,-pPAGES
                     Pages to delete (single integer, range or comma-separated list, default: all pages)

       about  About Paperwork

       pluginssubcommand
              Manage paperwork-cli plugins

              list   Show plugins enabled for paperwork-cli

              add    Add plugin in papaerwork-cli

              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)

       configsubcommand
              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

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> )

Synopsis

       paperwork-cli [-h] command

See Also