.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-repo-members-add - Add a member to the project. .SH SYNOPSIS \fBglab repo members add [flags]\fP .SH DESCRIPTION Add a member to the project with the specified role. .PP Roles: .IP \(bu 2 guest (10): Can view the project. .IP \(bu 2 reporter (20): Can view and create issues. .IP \(bu 2 developer (30): Can push to non-protected branches. .IP \(bu 2 maintainer (40): Can manage the project. .IP \(bu 2 owner (50): Full access to the project. .PP For custom roles, use \fB--role-id\fR with the ID of a custom role defined in the project or group. If the custom role does not exist, an error is returned. .SH OPTIONS \fB-e\fP, \fB--expires-at\fP="" Expiration date for the membership (YYYY-MM-DD) .PP \fB-R\fP, \fB--repo\fP="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .PP \fB-r\fP, \fB--role\fP="developer" Role for the user (guest, reporter, developer, maintainer, owner) .PP \fB--role-id\fP=0 ID of a custom role defined in the project or group. .PP \fB-u\fP, \fB--user-id\fP=0 User ID instead of username. .PP \fB--username\fP="" Username instead of user-id. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .SH EXAMPLE .EX # Add a user as a developer glab repo members add --username=john.doe --role=developer # Add a user as a maintainer with expiration date glab repo members add --username=jane.smith --role=maintainer --expires-at=2024-12-31 # Add a user by ID glab repo members add --user-id=123 --role=reporter # Add a user with a custom role glab repo members add --username=john.doe --role-id=101 .EE .SH SEE ALSO \fBglab-repo-members(1)\fP