summaryrefslogtreecommitdiff
path: root/man/pulse-cli-syntax.5.xml.in
blob: 0a0fabaf0c74b48ab7320049bbd440f83005611e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<?xml version="1.0"?><!--*-nxml-*-->
<!DOCTYPE manpage SYSTEM "xmltoman.dtd">
<?xml-stylesheet type="text/xsl" href="xmltoman.xsl" ?>

<!--
This file is part of PulseAudio.

PulseAudio is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.

PulseAudio is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
-->

<manpage name="pulse-cli-syntax" section="5" desc="PulseAudio Command Line Interface Syntax">

  <synopsis>
    <p><file>~/.config/pulse/default.pa</file></p>
    <p><file>@PA_DEFAULT_CONFIG_DIR@/default.pa</file></p>
    <p><file>@PA_DEFAULT_CONFIG_DIR@/system.pa</file></p>
  </synopsis>

  <description>
    <p>
      PulseAudio provides a simple command line language used by configuration
      scripts, the pacmd interactive shell, and the modules module-cli and
      module-cli-protocol-{unix,tcp}. Empty lines and lines beginning with a
      hashmark (#) are silently ignored. Several commands are supported.
    </p>

    <p>
      Note that any boolean arguments can be given positively as '1', 't', 'y',
      'true', 'yes' or 'on'. Likewise, negative values can be given as '0',
      'f', 'n', 'false', 'no' or 'off'. Case is ignored.
    </p>
  </description>

  <section name="General Commands">

    <option>
      <p><opt>help</opt></p>
      <optdesc><p>Show a quick help on the commands available.</p></optdesc>
    </option>
  </section>

  <section name="Status Commands">
    <option>
      <p><opt>list-modules</opt></p>
      <optdesc><p>Show all currently loaded modules with their arguments.</p></optdesc>
    </option>

    <option>
      <p><opt>list-cards</opt></p>
      <optdesc><p>Show all currently registered cards</p></optdesc>
    </option>

    <option>
      <p><opt>list-sinks</opt> or <opt>list-sources</opt></p>
      <optdesc><p>Show all currently registered sinks (resp. sources).</p></optdesc>
    </option>

    <option>
      <p><opt>list-clients</opt></p>
      <optdesc><p>Show all currently active clients.</p></optdesc>
    </option>

    <option>
      <p><opt>list-sink-inputs</opt> or <opt>list-source-outputs</opt></p>
      <optdesc><p>Show all currently active inputs to sinks a.k.a. playback
      streams (resp. outputs of sources a.k.a. recording streams).</p></optdesc>
    </option>

    <option>
      <p><opt>stat</opt></p>
      <optdesc><p>Show some simple statistics about the allocated memory blocks and the space used by them.</p></optdesc>
    </option>

    <option>
      <p><opt>info</opt> or <opt>ls</opt> or <opt>list</opt></p>
      <optdesc><p>A combination of all status commands described above (all
      three commands are synonyms).</p></optdesc>
    </option>
  </section>

  <section name="Module Management">
    <option>
      <p><opt>load-module</opt> <arg>name</arg> [<arg>arguments...</arg>]</p>
      <optdesc><p>Load a module specified by its name and arguments. For most
      modules it is OK to be loaded more than once.</p></optdesc>
    </option>

    <option>
      <p><opt>unload-module</opt> <arg>index|name</arg></p>
      <optdesc><p>Unload a module, specified either by its index in the module
      list or its name.</p></optdesc>
    </option>

    <option>
      <p><opt>describe-module</opt> <arg>name</arg></p>
      <optdesc><p>Give information about a module specified by its name.</p></optdesc>
    </option>
  </section>

  <section name="Volume Commands">
    <option>
      <p><opt>set-sink-volume|set-source-volume</opt> <arg>index|name</arg> <arg>volume</arg></p>
      <optdesc><p>Set the volume of the specified sink (resp. source). You may
      specify the sink (resp. source) either by its index in the sink/source list
      or by its name. The volume should be an integer value greater or equal than
      0 (muted). Volume 65536 (0x10000) is 'normal' volume a.k.a. 100%. Values
      greater than this amplify the audio signal (with clipping).</p></optdesc>
    </option>

    <option>
      <p><opt>set-sink-mute|set-source-mute</opt> <arg>index|name</arg> <arg>boolean</arg></p>
      <optdesc><p>Mute or unmute the specified sink (resp. source). You may
      specify the sink (resp. source) either by its index or by its name.
      The mute value is either 0 (not muted) or 1 (muted).</p></optdesc>
    </option>

    <option>
      <p><opt>set-sink-input-volume|set-source-output-volume</opt> <arg>index</arg> <arg>volume</arg></p>
      <optdesc><p>Set the volume of a sink input (resp. source output) specified
      by its index. The same volume rules apply as with set-sink-volume.</p></optdesc>
    </option>

    <option>
      <p><opt>set-sink-input-mute|set-source-output-mute</opt> <arg>index</arg> <arg>boolean</arg></p>
      <optdesc><p>Mute or unmute a sink input (resp. source output) specified
      by its index. The same mute rules apply as with set-sink-mute.</p></optdesc>
    </option>
  </section>

  <section name="Configuration Commands">
    <option>
      <p><opt>set-default-sink|set-default-source</opt> <arg>index|name</arg></p>
      <optdesc><p>Make a sink (resp. source) the default. You may specify the
      sink (resp. source) by its index in the sink (resp. source) list or by its
      name.</p><p>Note that defaults may be overridden by various policy modules
      or by specific stream configurations.</p></optdesc>
    </option>

    <option>
      <p><opt>set-card-profile</opt> <arg>index|name</arg> <arg>profile-name</arg></p>
      <optdesc><p>Change the profile of a card.</p></optdesc>
    </option>

    <option>
      <p><opt>set-sink-port|set-source-port</opt> <arg>index|name</arg> <arg>port-name</arg></p>
      <optdesc><p>Change the profile of a sink (resp. source).</p></optdesc>
    </option>

    <option>
      <p><opt>set-port-latency-offset</opt> <arg>card-index|card-name</arg> <arg>port-name</arg> <arg>offset</arg> </p>
      <optdesc><p>Change the latency offset of a port belonging to the specified card</p></optdesc>
    </option>

    <option>
      <p><opt>suspend-sink|suspend-source</opt> <arg>index|name</arg> <arg>boolean</arg></p>
      <optdesc><p>Suspend (i.e. disconnect from the underlying hardware) a sink
      (resp. source).</p></optdesc>
    </option>

    <option>
      <p><opt>suspend</opt> <arg>boolean</arg></p>
      <optdesc><p>Suspend all sinks and sources.</p></optdesc>
    </option>
  </section>

  <section name="Moving streams">
    <option>
      <p><opt>move-sink-input|move-source-output</opt> <arg>index</arg> <arg>sink-index|sink-name</arg></p>
      <optdesc><p>Move sink input (resp. source output) to another sink
      (resp. source).</p></optdesc>
    </option>
  </section>

  <section name="Property lists">
    <option>
      <p><opt>update-sink-proplist|update-source-proplist</opt> <arg>index|name</arg> <arg>properties</arg></p>
      <optdesc><p>Update the properties of a sink (resp. source) specified by
      name or index. The property is specified as e.g. device.description="My
      Preferred Name"</p></optdesc>
    </option>

    <option>
      <p><opt>update-sink-input-proplist|update-source-output-proplist</opt> <arg>index</arg> <arg>properties</arg></p>
      <optdesc><p>Update the properties of a sink input (resp. source output)
      specified by index. The properties are specified as above.</p></optdesc>
    </option>
  </section>

  <section name="Sample Cache">
    <option>
      <p><opt>list-samples</opt></p>
      <optdesc><p>Lists the contents of the sample cache.</p></optdesc>
    </option>

    <option>
      <p><opt>play-sample</opt> <arg>name</arg> <arg>sink-index|sink-name</arg></p>
      <optdesc><p>Play a sample cache entry to a sink.</p></optdesc>
    </option>

    <option>
      <p><opt>remove-sample</opt> <arg>name</arg></p>
      <optdesc><p>Remove an entry from the sample cache.</p></optdesc>
    </option>

    <option>
      <p><opt>load-sample</opt> <arg>name</arg> <arg>filename</arg></p>
      <optdesc><p>Load an audio file to the sample cache.</p></optdesc>
    </option>

    <option>
      <p><opt>load-sample-lazy</opt> <arg>name</arg> <arg>filename</arg></p>
      <optdesc><p>Create a new entry in the sample cache, but don't load the
      sample immediately. The sample is loaded only when it is first used.
      After a certain idle time it is freed again.</p></optdesc>
    </option>

    <option>
      <p><opt>load-sample-dir-lazy</opt> <arg>path</arg></p>
      <optdesc><p>Load all entries in the specified directory into the sample
      cache as lazy entries. A shell globbing expression (e.g. *.wav) may be
      appended to the path of the directory to add.</p></optdesc>
    </option>
  </section>

  <section name="Killing Clients/Streams">
    <option>
      <p><opt>kill-client</opt> <arg>index</arg></p>
      <optdesc><p>Remove a client forcibly from the server. There is no protection
      against the client reconnecting immediately.</p></optdesc>
    </option>

    <option>
      <p><opt>kill-sink-input|kill-source-output</opt> <arg>index</arg></p>
      <optdesc><p>Remove a sink input (resp. source output) forcibly from the
      server. This will not remove the owning client or any other streams opened
      by the same client from the server.</p></optdesc>
    </option>
  </section>

  <section name="Log Commands">
    <option>
      <p><opt>set-log-level</opt> <arg>numeric-level</arg></p>
      <optdesc><p>Change the log level.</p></optdesc>
    </option>

    <option>
      <p><opt>set-log-meta</opt> <arg>boolean</arg></p>
      <optdesc><p>Show source code location in log messages.</p></optdesc>
    </option>

    <option>
      <p><opt>set-log-target</opt> <arg>target</arg></p>
      <optdesc><p>Change the log target (null, auto, journal, syslog, stderr,
      file:PATH, newfile:PATH).</p></optdesc>
    </option>

    <option>
      <p><opt>set-log-time</opt> <arg>boolean</arg></p>
      <optdesc><p>Show timestamps in log messages.</p></optdesc>
    </option>

    <option>
      <p><opt>set-log-backtrace</opt> <arg>num-frames</arg></p>
      <optdesc><p>Show backtrace in log messages.</p></optdesc>
    </option>
  </section>

  <section name="Miscellaneous Commands">
    <option>
      <p><opt>play-file</opt> <arg>filename</arg> <arg>sink-index|sink-name</arg></p>
      <optdesc><p>Play an audio file to a sink.</p></optdesc>
    </option>

    <option>
      <p><opt>dump</opt></p>
      <optdesc><p>Dump the daemon's current configuration in CLI commands.</p></optdesc>
    </option>

    <option>
      <p><opt>dump-volumes</opt></p>
      <optdesc><p>Debug: Shows the current state of all volumes.</p></optdesc>
    </option>

    <option>
      <p><opt>shared</opt></p>
      <optdesc><p>Debug: Show shared properties.</p></optdesc>
    </option>

    <option>
      <p><opt>exit</opt></p>
      <optdesc><p>Terminate the daemon. If you want to terminate a CLI
      connection ("log out") you might want to use ctrl+d</p></optdesc>
    </option>
  </section>

  <section name="Meta Commands">
    <p>
      In addition to the commands described above there are a few meta directives
      supported by the command line interpreter.
    </p>
    <option>
      <p><opt>.include</opt> <arg>filename|folder</arg></p>
      <optdesc><p>Executes the commands from the specified script file or in all
      of the *.pa files within the folder.</p></optdesc>
    </option>
    <option>
      <p><opt>.fail</opt> and <opt>.nofail</opt></p>
      <optdesc><p>Enable (resp. disable) that following failing commands will
      cancel the execution of the current script file. This is ignored when
      used on the interactive command line.</p></optdesc>
    </option>
    <option>
      <p><opt>.ifexists</opt> <arg>filename</arg></p>
      <optdesc><p>Execute the subsequent block of commands only if the specified
      file exists. Typically <arg>filename</arg> indicates a module. Relative
      paths are resolved using the module directory as the base. By using an
      absolute path, the existance of other files can be checked as well.</p></optdesc>
    </option>
    <option>
      <p><opt>.else</opt> and <opt>.endif</opt></p>
      <optdesc><p>A block of commands is delimited by an <opt>.else</opt> or
      <opt>.endif</opt> meta command. Nesting conditional commands is not
      supported.</p></optdesc>
    </option>
  </section>

  <section name="Authors">
    <p>The PulseAudio Developers &lt;@PACKAGE_BUGREPORT@&gt;;
    PulseAudio is available from <url href="@PACKAGE_URL@"/></p>
  </section>

  <section name="See also">
    <p>
      <manref name="default.pa" section="5"/>,
      <manref name="pacmd" section="1"/>,
      <manref name="pulseaudio" section="1"/>
    </p>
  </section>

</manpage>