1
<?xml version="1.0"?><!--*-nxml-*-->
2
<!DOCTYPE manpage SYSTEM "xmltoman.dtd">
3
<?xml-stylesheet type="text/xsl" href="xmltoman.xsl" ?>
6
This file is part of PulseAudio.
8
PulseAudio is free software; you can redistribute it and/or modify it
9
under the terms of the GNU Lesser General Public License as
10
published by the Free Software Foundation; either version 2.1 of the
11
License, or (at your option) any later version.
13
PulseAudio is distributed in the hope that it will be useful, but WITHOUT
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
16
Public License for more details.
18
You should have received a copy of the GNU Lesser General Public
19
License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
22
<manpage name="pulse-cli-syntax" section="5" desc="PulseAudio Command Line Interface Syntax">
25
<p><file>~/.config/pulse/default.pa</file></p>
26
<p><file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file></p>
27
<p><file>@PA_DEFAULT_CONFIG_DIR@/system.pa</file></p>
32
PulseAudio provides a simple command line language used by configuration
33
scripts, the pacmd interactive shell, and the modules module-cli and
34
module-cli-protocol-{unix,tcp}. Empty lines and lines beginning with a
35
hashmark (#) are silently ignored. Several commands are supported.
39
Note that any boolean arguments can be given positively as '1', 't', 'y',
40
'true', 'yes' or 'on'. Likewise, negative values can be given as '0',
41
'f', 'n', 'false', 'no' or 'off'. Case is ignored.
45
<section name="General Commands">
48
<p><opt>help</opt></p>
49
<optdesc><p>Show a quick help on the commands available.</p></optdesc>
53
<section name="Status_Commands">
55
<p><opt>list-modules</opt></p>
56
<optdesc><p>Show all currently loaded modules with their arguments.</p></optdesc>
60
<p><opt>list-cards</opt></p>
61
<optdesc><p>Show all currently registered cards</p></optdesc>
65
<p><opt>list-sinks</opt> or <opt>list-sources</opt></p>
66
<optdesc><p>Show all currently registered sinks (resp. sources).</p></optdesc>
70
<p><opt>list-clients</opt></p>
71
<optdesc><p>Show all currently active clients.</p></optdesc>
75
<p><opt>list-sink-inputs</opt> or <opt>list-source-outputs</opt></p>
76
<optdesc><p>Show all currently active inputs to sinks a.k.a. playback
77
streams (resp. outputs of sources a.k.a. recording streams).</p></optdesc>
81
<p><opt>stat</opt></p>
82
<optdesc><p>Show some simple statistics about the allocated memory blocks and the space used by them.</p></optdesc>
86
<p><opt>info</opt> or <opt>ls</opt> or <opt>list</opt></p>
87
<optdesc><p>A combination of all status commands described above (all
88
three commands are synonyms).</p></optdesc>
92
<section name="Module Management">
94
<p><opt>load-module</opt> <arg>name</arg> [<arg>arguments...</arg>]</p>
95
<optdesc><p>Load a module specified by its name and arguments. For most
96
modules it is OK to be loaded more than once.</p></optdesc>
100
<p><opt>unload-module</opt> <arg>index|name</arg></p>
101
<optdesc><p>Unload a module, specified either by its index in the module
102
list or its name.</p></optdesc>
106
<p><opt>describe-module</opt> <arg>name</arg></p>
107
<optdesc><p>Give information about a module specified by its name.</p></optdesc>
111
<section name="Volume Commands">
113
<p><opt>set-sink-volume|set-source-volume</opt> <arg>index|name</arg> <arg>volume</arg></p>
114
<optdesc><p>Set the volume of the specified sink (resp. source). You may
115
specify the sink (resp. source) either by its index in the sink/source list
116
or by its name. The volume should be an integer value greater or equal than
117
0 (muted). Volume 65536 (0x10000) is 'normal' volume a.k.a. 100%. Values
118
greater than this amplify the audio signal (with clipping).</p></optdesc>
122
<p><opt>set-sink-mute|set-source-mute</opt> <arg>index|name</arg> <arg>boolean</arg></p>
123
<optdesc><p>Mute or unmute the specified sink (resp. source). You may
124
specify the sink (resp. source) either by its index or by its name.
125
The mute value is either 0 (not muted) or 1 (muted).</p></optdesc>
129
<p><opt>set-sink-input-volume|set-source-output-volume</opt> <arg>index</arg> <arg>volume</arg></p>
130
<optdesc><p>Set the volume of a sink input (resp. source output) specified
131
by its index. The same volume rules apply as with set-sink-volume.</p></optdesc>
135
<p><opt>set-sink-input-mute|set-source-output-mute</opt> <arg>index</arg> <arg>boolean</arg></p>
136
<optdesc><p>Mute or unmute a sink input (resp. source output) specified
137
by its index. The same mute rules apply as with set-sink-mute.</p></optdesc>
141
<section name="Configuration Commands">
143
<p><opt>set-default-sink|set-default-source</opt> <arg>index|name</arg></p>
144
<optdesc><p>Make a sink (resp. source) the default. You may specify the
145
sink (resp. source) by its index in the sink (resp. source) list or by its
146
name.</p><p>Note that defaults may be overridden by various policy modules
147
or by specific stream configurations.</p></optdesc>
151
<p><opt>set-card-profile</opt> <arg>index|name</arg> <arg>profile-name</arg></p>
152
<optdesc><p>Change the profile of a card.</p></optdesc>
156
<p><opt>set-sink-port|set-source-port</opt> <arg>index|name</arg> <arg>port-name</arg></p>
157
<optdesc><p>Change the profile of a sink (resp. source).</p></optdesc>
161
<p><opt>set-port-latency-offset</opt> <arg>card-index|card-name</arg> <arg>port-name</arg> <arg>offset</arg> </p>
162
<optdesc><p>Change the latency offset of a port belonging to the specified card</p></optdesc>
166
<p><opt>suspend-sink|suspend-source</opt> <arg>index|name</arg> <arg>boolean</arg></p>
167
<optdesc><p>Suspend (i.e. disconnect from the underlying hardware) a sink
168
(resp. source).</p></optdesc>
172
<p><opt>suspend</opt> <arg>boolean</arg></p>
173
<optdesc><p>Suspend all sinks and sources.</p></optdesc>
177
<section name="Moving streams">
179
<p><opt>move-sink-input|move-source-output</opt> <arg>index</arg> <arg>sink-index|sink-name</arg></p>
180
<optdesc><p>Move sink input (resp. source output) to another sink
181
(resp. source).</p></optdesc>
185
<section name="Property lists">
187
<p><opt>update-sink-proplist|update-source-proplist</opt> <arg>index|name</arg> <arg>properties</arg></p>
188
<optdesc><p>Update the properties of a sink (resp. source) specified by
189
name or index. The property is specified as e.g. device.description="My
190
Preferred Name"</p></optdesc>
194
<p><opt>update-sink-input-proplist|update-source-output-proplist</opt> <arg>index</arg> <arg>properties</arg></p>
195
<optdesc><p>Update the properties of a sink input (resp. source output)
196
specified by index. The properties are specified as above.</p></optdesc>
200
<section name="Sample Cache">
202
<p><opt>list-samples</opt></p>
203
<optdesc><p>Lists the contents of the sample cache.</p></optdesc>
207
<p><opt>play-sample</opt> <arg>name</arg> <arg>sink-index|sink-name</arg></p>
208
<optdesc><p>Play a sample cache entry to a sink.</p></optdesc>
212
<p><opt>remove-sample</opt> <arg>name</arg></p>
213
<optdesc><p>Remove an entry from the sample cache.</p></optdesc>
217
<p><opt>load-sample</opt> <arg>name</arg> <arg>filename</arg></p>
218
<optdesc><p>Load an audio file to the sample cache.</p></optdesc>
222
<p><opt>load-sample-lazy</opt> <arg>name</arg> <arg>filename</arg></p>
223
<optdesc><p>Create a new entry in the sample cache, but don't load the
224
sample immediately. The sample is loaded only when it is first used.
225
After a certain idle time it is freed again.</p></optdesc>
229
<p><opt>load-sample-dir-lazy</opt> <arg>path</arg></p>
230
<optdesc><p>Load all entries in the specified directory into the sample
231
cache as lazy entries. A shell globbing expression (e.g. *.wav) may be
232
appended to the path of the directory to add.</p></optdesc>
236
<section name="Killing Clients/Streams">
238
<p><opt>kill-client</opt> <arg>index</arg></p>
239
<optdesc><p>Remove a client forcibly from the server. There is no protection
240
against the client reconnecting immediately.</p></optdesc>
244
<p><opt>kill-sink-input|kill-source-output</opt> <arg>index</arg></p>
245
<optdesc><p>Remove a sink input (resp. source output) forcibly from the
246
server. This will not remove the owning client or any other streams opened
247
by the same client from the server.</p></optdesc>
251
<section name="Log Commands">
253
<p><opt>set-log-level</opt> <arg>numeric-level</arg></p>
254
<optdesc><p>Change the log level.</p></optdesc>
258
<p><opt>set-log-meta</opt> <arg>boolean</arg></p>
259
<optdesc><p>Show source code location in log messages.</p></optdesc>
263
<p><opt>set-log-target</opt> <arg>target</arg></p>
264
<optdesc><p>Change the log target (null, auto, journal, syslog, stderr,
265
file:PATH, newfile:PATH).</p></optdesc>
269
<p><opt>set-log-time</opt> <arg>boolean</arg></p>
270
<optdesc><p>Show timestamps in log messages.</p></optdesc>
274
<p><opt>set-log-backtrace</opt> <arg>num-frames</arg></p>
275
<optdesc><p>Show backtrace in log messages.</p></optdesc>
279
<section name="Miscellaneous Commands">
281
<p><opt>play-file</opt> <arg>filename</arg> <arg>sink-index|sink-name</arg></p>
282
<optdesc><p>Play an audio file to a sink.</p></optdesc>
286
<p><opt>dump</opt></p>
287
<optdesc><p>Dump the daemon's current configuration in CLI commands.</p></optdesc>
291
<p><opt>dump-volumes</opt></p>
292
<optdesc><p>Debug: Shows the current state of all volumes.</p></optdesc>
296
<p><opt>shared</opt></p>
297
<optdesc><p>Debug: Show shared properties.</p></optdesc>
301
<p><opt>exit</opt></p>
302
<optdesc><p>Terminate the daemon. If you want to terminate a CLI
303
connection ("log out") you might want to use ctrl+d</p></optdesc>
307
<section name="Meta Commands">
309
In addition to the commands described above there are a few meta directives
310
supported by the command line interpreter.
313
<p><opt>.include</opt> <arg>filename|folder</arg></p>
314
<optdesc><p>Executes the commands from the specified script file or in all
315
of the *.pa file within the folder.</p></optdesc>
318
<p><opt>.fail</opt> and <opt>.nofail</opt></p>
319
<optdesc><p>Enable (resp. disable) that following failing commands will
320
cancel the execution of the current script file. This is a ignored when
321
used on the interactive command line.</p></optdesc>
325
<section name="Authors">
326
<p>The PulseAudio Developers <@PACKAGE_BUGREPORT@>;
327
PulseAudio is available from <url href="@PACKAGE_URL@"/></p>
330
<section name="See also">
332
<manref name="default.pa" section="5"/>,
333
<manref name="pacmd" section="1"/>,
334
<manref name="pulseaudio" section="1"/>