CLI guide
GitHub

Members

source-coop member manages the members of an organization (ACCOUNT) or a product (ACCOUNT/PRODUCT). source-coop invitation answers the invitations that you receive. A member's name is their account ID. You cannot invite by email.

Roles, from most to least access: owners, maintainers, write_data, read_data.

With shell completion, TAB shows:

With --json, these commands print the memberships as the API gives them: membership_id, account_id, membership_account_id, product_id (for a product), role, state and state_changed. invite --json prints an array of the new memberships.

create and delete are other names for invite and revoke.

List and view

# members and open invitations
source-coop member list my-org

# the members of a product, as JSON
source-coop member list my-org/my-data --json

# only open invitations
source-coop member list my-org --state invited

# move through the members full screen
source-coop member list my-org -i

# one member; -i for its screen
source-coop member view my-org alice
member list and view, then --json

member list -i uses the same keys as product list -i. On a member's screen:

member list -i: open a member and change their role

Invite

# invite two accounts to an organization
source-coop member invite my-org alice bob --role maintainers

# invite each account listed in a file to a product
source-coop member invite my-org/my-data -A people.txt --role read_data

# asks who to invite, and the role
source-coop member invite my-org

invite takes account IDs as arguments.

member invite with prompts, then from flags with --json

Edit

# give a member another role
source-coop member edit my-org alice --role owners

# select a member, then a role
source-coop member edit my-org -i

Without --role, edit asks for a role, starting from the current one. You cannot change the role of an invitation. Revoke it and invite again.

member edit: pick a role, then --role with --json

Revoke and leave

# also withdraws an open invitation
source-coop member revoke my-org alice

# end your own membership
source-coop member leave my-org

revoke asks you to confirm. For your own membership, you must also type the organization or product name.

leave always asks you to type the name, because only an owner or maintainer can add you again.

Without a terminal, revoke and leave need --yes.

member revoke an invitation, then member leave with the name typed wrong