pubsub/node/affiliations: nodes subscriptions management

subscriptions is a subcommand handling the subscription to a node.

Those commands can only be used by an owner of the node.


Retrieve subscriptions to a node.


Get subscription from some_node:

$ li pubsub node subscriptions get -n some_node


Set subscriptions to a node. Subscriptions are specified with -S JID [SUSBSCRIPTION] [JID [SUSBSCRIPTION] ...], --subscription JID [SUSBSCRIPTION] [JID [SUSBSCRIPTION] ...] where JID is the jid of the entity to change subscription state, and SUBSCRIPTION is a subscription state (on of subscribed, pending, none) as specified in XEP-0060 Subscription State. If SUBSCRIPTION is not specified, it default to subscribed.


Subscribe Louise with her new address at and remove her subscription from old

$ li pubsub node subscriptions set -n some_node -S subscribed none