Scroll to navigation

RUBY-GITLAB(1) User commands RUBY-GITLAB(1)

NAME

ruby-gitlab - command line interface to gitlab

SYNOPSIS

ruby-gitlab command

DESCRIPTION

ruby-gitlab is a command line interface to gitlab based on the gitlab gem. It requires to set a few environment variables (see configuration).

For a complete list of supported CLI commands, see:

<http://www.rubydoc.info/gems/gitlab/Gitlab/Client>

Any of those methods can be called as a command by passing the parameters of the commands as parameters of ruby-gitlab.

CONFIGURATION

export GITLAB_API_ENDPOINT=https://gitlab.yourcompany.com/api/v4

export GITLAB_API_PRIVATE_TOKEN=<your private token from /profile/account>

export GITLAB_API_HTTPARTY_OPTIONS="{verify: false}"

EXAMPLES

ruby-gitlab users
ruby-gitlab user
ruby-gitlab user --only=id,username

ruby-gitlab user --except=email,bio

SEE ALSO

AUTHOR

Sophie Brun <sophie@freexian.com>

2020-04-04 4.14.1