rlx-attach(3) -- attachment commands
====================================

## SYNOPSIS

Commands for operating on document attachments.

## COMMANDS

Attachment commands require that a database and document are selected.

* `attach [file] [name] [mimetype]`:

Attach a file to the selected document, the file must exist. If name is not specified the name of the file is used.

* `attach files [file...]`:

Attach multiple files to the selected document. The glob patterns `*` and `**` are supported for directory paths, otherwise if a file is a directory a warning is printed. To include hidden files in glob patterns set the `dotglob` setting to `true`.

This command will print a list of the files found to attach and prompt for confirmation.

* `attach get [name...]`:

Download attachment(s) to the directory defined by the `attachments` setting.

* `attach rm [name...]`:

Delete one or more attachments by name.

## BUGS

**rlx** is written in bash and depends upon `bash >= 4.2`.

## COPYRIGHT

**rlx** is copyright (c) 2013 muji <http://xpm.io>

## SEE ALSO

rlx(1), couchdb(3)
