pw-cli(1) | General Commands Manual | pw-cli(1) |
pw-cli - The PipeWire Command Line Interface
pw-cli [command]
Interact with a PipeWire instance.
When a command is given, pw-cli will execute the command and exit
When no command is given, pw-cli starts an interactive session with the default PipeWire instance pipewire-0.
Connections to other, remote instances can be made. The current instance name is displayed at the prompt.
Note that pw-cli also creates a local PipeWire instance. Some commands operate on the current (remote) instance and some on the local instance, such as module loading.
Use the 'help' command to list the available commands.
help | h
quit | q
Modules are loaded and unloaded in the local instance, thus the pw-cli binary itself and can add functionality or objects to the local instance. It is not possible in PipeWire to load modules in another instance.
load-module name [arguments...]
This command returns a module variable that can be used to unload the module.
The locally module is not visible in the remote instance. It is not possible in PipeWire to load modules in a remote instance.
unload-module module-var
list-objects
Objects are listed with their id, type and version.
info id | all
Requesting info about an object will also notify you of changes.
connect [remote-name]
If no remote name is specified, a connection is made to the default remote instance, usually pipewire-0.
The special remote name called internal can be used to connect to the local pw-cli PipeWire instance.
This command returns a remote var that can be used to disconnect or switch remotes.
disconnect [remote-var]
If no remote name is specified, the current instance is disconnected.
list-remotes
switch-remote [remote-var]
If no remote name is specified, the first instance is made current.
create-node factory-name [properties...]
Properties are key=value pairs separated by whitespace.
This command returns a node variable.
export-node node-id [remote-var]
create-device factory-name [properties...]
Properties are key=value pairs separated by whitespace.
This command returns a device variable.
create-link node-id port-id node-id port-id [properties...]
Port ids and Node ids can be set to - to automatically select a node or a port.
Port ids can be * to automatically link matching ports ids in the nodes.
Properties are key=value pairs separated by whitespace.
This command returns one or more link variables.
destroy object-id
enum-params object-id param-id
param-id can also be given as the param short name.
set-param object-id param-id param-json
param-id can also be given as the param short name.
permissions client-id object-id permission
object-id can be -1 to set the default permissions.
get-permissions client-id
send-command object-id
The PipeWire Developers <https://gitlab.freedesktop.org/pipewire/pipewire/issues>; PipeWire is available from <https://pipewire.org>
pipewire(1), pw-mon(1),
1.2.6 | PipeWire |