2 .\" lpoptions man page for CUPS.
4 .\" Copyright © 2007-2019 by Apple Inc.
5 .\" Copyright © 1997-2006 by Easy Software Products.
7 .\" Licensed under Apache License v2.0. See the file "LICENSE" for more
10 .TH lpoptions 1 "CUPS" "26 April 2019" "Apple Inc."
12 lpoptions \- display or set printer options and defaults
18 \fB\-h \fIserver\fR[\fB:\fIport\fR]
20 \fB\-d \fIdestination\fR[\fB/\fIinstance\fR]
29 \fB\-h \fIserver\fR[\fB:\fIport\fR]
31 \fB\-p \fIdestination\fR[\fB/\fIinstance\fR]
33 \fB\-o \fIoption\fR[\fB=\fIvalue\fR] ...
39 \fB\-h \fIserver\fR[\fB:\fIport\fR]
41 \fB\-p \fIdestination\fR[\fB/\fIinstance\fR]
50 \fB\-h \fIserver\fR[\fB:\fIport\fR]
52 \fB\-x \fIdestination\fR[\fB/\fIinstance\fR]
54 \fBlpoptions\fR displays or sets printer options and defaults.
55 If no printer is specified using the \fI\-p\fR option, the default printer is used as described in
58 If no \fI\-l\fR, \fI\-o\fR, or \fI\-r\fR options are specified, the current options are reported on the standard output.
60 Options set with the \fBlpoptions\fR command are used by the
64 commands when submitting jobs.
66 When run by the root user, \fBlpoptions\fR gets and sets default options and instances for all users in the \fI/etc/cups/lpoptions\fR file.
67 Otherwise, the per-user defaults are managed in the \fI~/.cups/lpoptions\fR file.
69 \fBlpoptions\fR supports the following options:
72 Enables encryption when communicating with the CUPS server.
74 \fB\-d \fIdestination\fR[\fB/\fIinstance\fR]
75 Sets the user default printer to \fIdestination\fR.
76 If \fIinstance\fR is supplied then that particular instance is used.
77 This option overrides the system default printer for the current user.
79 \fB\-h \fIserver\fR[\fB:\fIport\fR]
80 Uses an alternate server.
83 Lists the printer specific options and their current settings.
85 \fB\-o \fIoption\fR[\fB=\fIvalue\fR]
86 Specifies a new option for the named destination.
88 \fB\-p \fIdestination\fR[\fB/\fIinstance\fR]
89 Sets the destination and instance, if specified, for any options that follow.
90 If the named instance does not exist then it is created.
91 Destinations can only be created using the
96 Removes the specified option from the named destination.
98 \fB\-x \fIdestination\fR[\fB/\fIinstance\fR]
99 Removes the options for the named destination and instance, if specified.
100 If the named instance does not exist then this does nothing.
101 Destinations can only be removed using the
105 \fI~/.cups/lpoptions\fR - user defaults and instances created by non-root users.
107 \fI/etc/cups/lpoptions\fR - system-wide defaults and instances created by the root user.
109 The \fBlpoptions\fR command is unique to CUPS.
116 CUPS Online Help (http://localhost:631/help)
118 Copyright \[co] 2007-2019 by Apple Inc.