CLI
IMPORTANT
You need to set environment variables before using the CLI.
Commands
Send gitlab methods as commands, and parameters as arguments to the gitlab command-line utility
sh
gitlab userssh
gitlab usersh
gitlab user 2Filter
You can filter output by supplying --only or --except flags
sh
gitlab user --only=id,email,namesh
gitlab 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 a shell to perform commands
info gives information about the environment
-v or --version shows the gem version
Shell
You can perform commands in an interactive gitlab shell by running gitlab shell
sh
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.