CUPS provides many ways to set the default destination. The \fBLPDEST\fR and \fBPRINTER\fR environment variables are consulted first.
If neither are set, the current default set using the
.BRlpoptions(1)
command is used, followed by the default set using the
.BRlpadmin(8)
command.
.SHOPTIONS
The following options are recognized by \fIlp\fR:
.TP5
.B\-\-
Marks the end of options; use this to print a file whose name begins with a dash (\-).
.TP5
.B\-E
Forces encryption when connecting to the server.
.TP5
\fB\-U \fIusername\fR
Specifies the username to use when connecting to the server.
.TP5
.B\-c
This option is provided for backwards-compatibility only. On systems that support it, this option forces the print file to be copied to the spool directory before printing.
In CUPS, print files are always sent to the scheduler via IPP which has the same effect.
Sets the job priority from 1 (lowest) to 100 (highest).
The default priority is 50.
.TP5
.B\-s
Do not report the resulting job IDs (silent mode.)
.TP5
\fB\-t "\fIname\fB"\fR
Sets the job name.
.TP5
\fB\-H \fIhh:mm\fR
.TP5
\fB\-H hold\fR
.TP5
\fB-H immediate\fR
.TP5
\fB-H restart\fR
.TP5
\fB-H resume\fR
Specifies when the job should be printed.
A value of \fIimmediate\fR will print the file immediately, a value of \fIhold\fR will hold the job indefinitely, and a UTC time value (HH:MM) will hold the job until the specified UTC (not local) time.
Use a value of \fIresume\fR with the \fI-i\fR option to resume a held job.
Use a value of \fIrestart\fR with the \fI-i\fR option to restart a completed job.
.TP5
\fB\-P \fIpage-list\fR
Specifies which pages to print in the document.
The list can contain a list of numbers and ranges (#-#) separated by commas, e.g., "1,3-5,16".
Prints on both sides of the paper for portrait output.
.TP5
\fB\-o sides=two\-sided\-short\-edge\fR
Prints on both sides of the paper for landscape output.
.SHCONFORMINGTO
Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#".
Also, printer and class names are \fInot\fR case-sensitive.
.LP
The \fI-q\fR option accepts a different range of values than the Solaris lp command, matching the IPP job priority values (1-100, 100 is highest priority) instead of the Solaris values (0-39, 0 is highest priority).
.SHEXAMPLES
Print two copies of a document to the default printer: