Addto

This command adds files to existing documents in a library.

Examples

For instance imagine you have two PDF files, a.pdf and b.pdf that you want to add to a document that matches with the query string “einstein photon definition”. Then you would use:

papis addto 'einstein photon definition' -f a.pdf -f b.pdf

where the -f flag needs to be repeated for every file that is added. Remote files can be similarly added using:

papis addto 'einstein photon definition' -u 'https://arxiv.org/pdf/2306.13122.pdf'

where the link needs to be to the actual remote PDF file.

Command-line interface

Add files to an existing document.

Usage

papis addto [OPTIONS] [QUERY]

Options

-h, --help

Show this message and exit.

--git, --no-git

Add and commit files.

--sort <FIELD>

Sort documents with respect to the FIELD.

--reverse

Reverse sort order.

-f, --files <files>

File paths or URLs to documents.

-u, --urls <urls>

(deprecated) use -f

--file-name <file_name>

File name format for the document.

Instead of copying the file to the library, create a link to its original location.

--doc-folder <doc_folder>

Document folder on which to apply action.

Arguments

QUERY

Optional argument