how do I export permissions?
Permissions are stored per user role in roles yaml files.

You'll find the permissions for 'Authenticated User', for example, in user.role.authenticated.yml and for 'Administrator' in user.role.administrator.yml