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 that h is just help being lazy. love that for us. πŸ’…
  • quit | q β€” Exit from pw-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-module name [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-module module-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. ✨

  • info id | 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-node factory-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-node node-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-device factory-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. ✨


  • create-link node-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 πŸ‘‘

  • destroy object-id β€” Destroy a global object. πŸ’€ it had a good run bestie.

🌟 PARAMETER MANAGEMENT 🌟

  • enum-params object-id param-id β€” Enumerate params of an object. πŸ”’

param-id can also be given as the param short name. convenient, we love her.

  • set-param object-id param-id param-json β€” Set param of an object. ✍️

param-id can also be given as the param short name.


πŸ”₯ PERMISSION MANAGEMENT πŸ”₯

  • permissions client-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-permissions client-id β€” Get permissions of a client. nosy again, but make it legal. πŸ”

🫢 COMMAND MANAGEMENT 🫢

  • send-command object-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