Skip to content

Get/set project collaborators from CLI #98

Closed
@saberraz

Description

@saberraz

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())

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions