RUBY-GITLAB(1)
π RUBY-GITLAB β the ruby-gitlab manual page, bestie edition π
okay so this is the man page for ruby-gitlab, from the User commands manual section. literally the whole thing is right here, let's go π¦
β¨ NAME β¨
ruby-gitlab β a command line interface to gitlab π
β¨ SYNOPSIS β¨
ruby-gitlab command
β¨ DESCRIPTION β¨
so ruby-gitlab is a command line interface to gitlab, and it's built on top of the gitlab gem πΈ it does require you to set a few environment variables first tho (scroll down to configuration, i got you) π
for the complete list of supported CLI commands, go look at:
<http://www.rubydoc.info/gems/gitlab/Gitlab/Client>
and here's the cute part β any of those methods can be called as a command, just by passing the parameters of the commands as parameters of ruby-gitlab. like, all of them. periodt π
β¨ CONFIGURATION β¨
a few environment variables need to be set, no cap:
export GITLAB_API_ENDPOINT=https://gitlab.yourcompany.com/api/v4
export GITLAB_API_PRIVATE_TOKEN=<your private token from /profile/account>
heads up bestie: that private token comes from /profile/account β go grab it there π
the variable GITLAB_API_HTTPARTY_OPTIONS is optional β¨ it can be used to set any HTTParty option you may need, using YAML hash syntax. for example, SSL verification can be disabled with:
export GITLAB_API_HTTPARTY_OPTIONS="{verify: false}"
ngl turning off SSL verification is giving risky behavior, but that's what the man page says so there it is π
β¨ EXAMPLES β¨
to list users:
ruby-gitlab users
to get current user:
ruby-gitlab user
and the result can be filtered, which is genuinely so iconic:
ruby-gitlab user --only=id,username
ruby-gitlab user --except=email,bio
β¨ SEE ALSO β¨
- gem documentation <http://www.rubydoc.info/gems/gitlab/Gitlab/Client>
/usr/share/doc/ruby-gitlab/README.md.gz
β¨ AUTHOR β¨
Sophie Brun <sophie@freexian.com> π (ty for your service, queen π)
and that's the whole page fr fr π«Ά this was version 4.14.1, dated 2020-04-04, straight from the RUBY-GITLAB(1) manual β love that for us πβ¨
π¦ where this page comes from
- debian bookworm: ruby-gitlab 4.17.0-3 Β· BSD-2-Clause
- debian trixie: ruby-gitlab 5.1.0-1 Β· BSD-2-Clause
- ubuntu jammy: ruby-gitlab 4.17.0-3 Β· BSD-2-Clause
- ubuntu noble: ruby-gitlab 4.17.0-3 Β· BSD-2-Clause
- ubuntu questing: ruby-gitlab 5.1.0-1
- ubuntu resolute: ruby-gitlab 6.1.0-1 Β· BSD-2-Clause
- ubuntu stonking: ruby-gitlab 6.1.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms