You need to set environment variables before using CLI.
Commands
Send gitlab methods as commands, and parameters as arguments to gitlab command line utility
gitlab usersgitlab usergitlab user 2Filter
You can filter output by supplying --only or --except flags
gitlab user --only=id,email,namegitlab users --except=id,email,nameWarning: Before executing destructive commands you will be prompted to confirm them.
Additional commands
help lists all available actions
shell runs shell to perform commands
info gives information about environment
-v or --version shows gem version
Shell
You can perform commands in interactive gitlab shell by running gitlab shell
gitlab shell
# list available commands
gitlab> help
# list groups
gitlab> groups
# protect a branch
gitlab> protect_branch 1 master
# quit shell
gitlab> exitYou can hit tab for command completion.