Closed
Description
It would be good to have CLI command(s) for sharing a project with a list of users and option to define the role (reader, writer, owner)
- get list of collaborators and their roles
- add/remove collaborators
Maybe something like this:
$ mergin share <project name>
... print list of collaborators and their roles
$ mergin share-add <project name> [--role <role>] <username1> [<username2> ...]
... add one or more users as collaborators to a project
$ mergin share-del <project name> <username1> [<username2> ...]
... remove one or more users as collaborators
(the commands to add/remove collaborators would need to first request project info and then send a request with updated list of collaborators, using set_project_access()
)