Export

The export command is useful to work with other programs by exporting to other formats (such as BibTeX).

Examples

Some examples of its usage are:

  • Export one of the documents matching the author with Einstein to BibTeX:

papis export --format bibtex 'author : einstein'
  • Note that BibTeX is the default format. The --format flag can be omitted:

papis export 'author : einstein'
  • Export all documents with author Einstein to BibTeX:

papis export --all 'author : einstein'
  • Export all documents in your default library to BibTeX and save them into a lib.bib file:

papis export --all --out lib.bib
  • Export a folder of one of the documents matching the word krebs into a folder named interesting-document:

papis export --folder --out interesting-document krebs

This will create the folder interesting-document containing the info.yaml file and the linked documents.

Note

Every document exported also comes with the key _papis_local_folder associated that points to the full local folder path where the document is stored in the file system. This is done for the convenience of third party apps.

Command-line interface

Export a document from a given library.

Usage

papis export [OPTIONS] [QUERY]

Options

-h, --help

Show this message and exit.

--doc-folder <doc_folder>

Document folder on which to apply action.

--sort <FIELD>

Sort documents with respect to the FIELD.

--reverse

Reverse sort order.

-a, --all

Apply action to all matching documents.

--folder

Export document folder to share.

-o, --out <out>

Output file (or directory if used with –folder) for document metadata.

-f, --format <fmt>

Export format for document metadata.

--list-exporters

List all supported exporters.

-p, --append

Append to ‘–out’ path instead of overwriting.

-b, --batch

Do not prompt when overwriting a file.

Arguments

QUERY

Optional argument