How can I manage a snap application permissions using command line?

How can I manage, i.e., enable/disable permissions for a snap application through command line via terminal.

For eg. I have installed Opera using snap, and I can manage its various permissions using Software, but I wanted to manage them using command line.

Permissions in Software

Asked By: kamer_kane


Through interfaces (plugs/slots)

snap connections opera

You can manually control connection:

snap connect <snap>:<plug interface> <snap>:<slot interface>
snap disconnect <snap>:<plug interface> <snap>:<slot interface>


Answered By: