Command to add new user to GitLab

Hi,
I’m looking for a command to create new account to GitLab, and a command to remove any existing account. I’ve tried gitlab-rake and it doesn’t seem work.

Thanks,

Charlie

@charlesyan082217 Have you attempted this through the Rails console on your server? You should have full access to users there and can run it from the command line.

I usually just use the GitLab API to do this. I have a simple bash script with just a curl statement to add/edit/delete users.

https://docs.gitlab.com/ee/api/users.html