pw-cli(1)
π pw-cli β the PipeWire Command Line Interface π
okay bestie, so like β this is pw-cli(1), a General Commands Manual page, and it's literally your little group chat with PipeWire itself. no cap. let's go π«Ά
β¨ NAME β¨
pw-cli β the PipeWire Command Line Interface. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
pw-cli [command]
π¦ DESCRIPTION π¦
So basically you use this to interact with a PipeWire instance. that's the whole vibe. π«
When a command is given, pw-cli will execute the command and exit. one and done, no lingering, we love a clean exit. β¨
When no command is given, pw-cli starts an interactive session with the default PipeWire instance pipewire-0. it's giving main character energy, periodt.
Connections to other, remote instances can be made. the current instance name is displayed at the prompt, so you always know which one you're talking to β no accidentally texting the wrong person energy. π π
important note bestie: 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. yes this is confusing. no we cannot fix it. iykyk. π
Use the 'help' command to list the available commands. iconic behavior honestly. π
π GENERAL COMMANDS π
help|hβ Show a quick help on the commands available. it also lists the aliases for many commands, so you can find out thathis justhelpbeing lazy. love that for us. πquit|qβ Exit frompw-cli. say bye bestie, the session is over. πlist-varsβ List all currently known variables and their type. Some commands create objects that are identified with a variable, so this is your little receipts folder. π§Ύ β¨
π MODULE MANAGEMENT π
okay so here's the tea π: 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. not a thing. we don't do that here. π«
load-modulename [arguments...] β Load a module specified by its name and arguments in the local instance. For most modules it is OK to be loaded more than once β she's flexible like that. π
This command returns a module variable that can be used to unload the module. keep it, you'll need it later bestie.
The local module is not visible in the remote instance. It is not possible in PipeWire to load modules in a remote instance. (we said it twice because it matters, periodt.)
unload-modulemodule-var β Unload a module, specified by its variable. bye girl π«Ά
π§ OBJECT INTROSPECTION π§
list-objectsβ List the objects of the current instance. π
Objects are listed with their id, type and version. the holy trinity. β¨
infoid |allβ Get information about a specific object or all objects. nosy? same. π
Requesting info about an object will also notify you of changes. she's keeping you updated, that's a real one. π
π WORKING WITH REMOTES π
connect[remote-name] β Connect to a remote instance and make this the new current instance. β¨
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. it's built different fr fr.
This command returns a remote var that can be used to disconnect or switch remotes.
disconnect[remote-var] β Disconnect from a remote instance. π«
If no remote name is specified, the current instance is disconnected.
list-remotesβ List all remote instances. the roster, if you will. π β¨switch-remote[remote-var] β Make the specified remote the current instance. π
If no remote name is specified, the first instance is made current.
β NODE MANAGEMENT β
create-nodefactory-name [properties...] β Create a node from a factory in the current instance. π±
Properties are key=value pairs separated by whitespace.
This command returns a node variable. π
export-nodenode-id [remote-var] β Export a node from the local instance to the specified instance. When no instance is specified, the node will be exported to the current instance. sharing is caring. π«Ά
π DEVICE MANAGEMENT π
create-devicefactory-name [properties...] β Create a device from a factory in the current instance. π§
Properties are key=value pairs separated by whitespace.
This command returns a device variable. β¨
π LINK MANAGEMENT π
create-linknode-id port-id node-id port-id [properties...] β Create a link between 2 nodes and ports. π
Port ids and Node ids can be set to - to automatically select a node or a port. the universe will decide. β¨
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. (yes, more than one, she's generous.)
π GLOBALS MANAGEMENT π
destroyobject-id β Destroy a global object. π it had a good run bestie.
π PARAMETER MANAGEMENT π
enum-paramsobject-id param-id β Enumerate params of an object. π’
param-id can also be given as the param short name. convenient, we love her.
set-paramobject-id param-id param-json β Set param of an object. βοΈ
param-id can also be given as the param short name.
π₯ PERMISSION MANAGEMENT π₯
permissionsclient-id object-id permission β Set permissions for a client. π
object-id can be -1 to set the default permissions. the catch-all, the fallback, the safety net.
get-permissionsclient-id β Get permissions of a client. nosy again, but make it legal. π
π«Ά COMMAND MANAGEMENT π«Ά
send-commandobject-id β Send a command to an object. π¨
π AUTHORS π
The PipeWire Developers <https://gitlab.freedesktop.org/pipewire/pipewire/issues>; PipeWire is available from <https://pipewire.org>
the actual legends. we stan. π
π SEE ALSO π
pipewire(1), pw-mon(1), β go read those too bestie, they're also iconic. β¨
aaaand that's the whole page π this manual is from PipeWire, version 1.6.11, dated right there with the pw-cli(1) tag at the bottom β so like, if you're running a different version, vibe check your own manpage before coming for me π
periodt, no cap, literally obsessed with you for reading all the way down here ππ¦β¨
π¦ where this page comes from
- fedora 44: pipewire-utils 1.6.11-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms