Print all nodes (sinks and sources) along with their IDs

pw-cli

pw-cli list-objects Node

click the source code to copy