pw-cli(1) | General Commands Manual | pw-cli(1) |
NAME¶
pw-cli - The PipeWire Command Line Interface
SYNOPSIS¶
pw-cli [command]
DESCRIPTION¶
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.
GENERAL COMMANDS¶
help | h
quit | q
MODULE MANAGEMENT¶
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
OBJECT INTROSPECTION¶
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.
WORKING WITH REMOTES¶
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.
NODE MANAGEMENT¶
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]
DEVICE MANAGEMENT¶
create-device factory-name [properties...]
Properties are key=value pairs separated by whitespace.
This command returns a device variable.
LINK MANAGEMENT¶
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.
GLOBALS MANAGEMENT¶
destroy object-id
PARAMETER MANAGEMENT¶
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.
PERMISSION MANAGEMENT¶
permissions client-id object-id permission
object-id can be -1 to set the default permissions.
get-permissions client-id
COMMAND MANAGEMENT¶
send-command object-id
AUTHORS¶
The PipeWire Developers <https://gitlab.freedesktop.org/pipewire/pipewire/issues>; PipeWire is available from <https://pipewire.org>
SEE ALSO¶
1.2.7 | PipeWire |