GITLAB-API-V4(1)
π NAME π
okay so bestie, this is gitlab-api-v4(1) β literally the command line interface to the GitLab API v4. Itβs giving βmake API calls from your terminal without crying,β and honestly? Iconic. π
β¨ SYNOPSIS β¨
Hereβs the whole vibe:
# Generally:
gitlab-api-v4 [<options>] <method> [<arg> ...] [<param>:<value> ...]
# List all groups:
gitlab-api-v4 groups
# List information about a project:
gitlab-api-v4 project <project_id>
# Create an admin user:
gitlab-api-v4 create-user \
username:foo \
password:xxxxxxxx \
email:user@example.com \
"name:Foo Smith" \
admin:1
π CONFIGURING π
You may configure this module with environment variables, command line options, and a configuration file. Three little paths, pick your fighter. To setup the configuration file run:
gitlab-api-v4 configure
This will ask several interactive questions to help you configure this script. The information β which may include GitLab authentication tokens β is stored in ~/.gitlab-api-v4.json. Read more at GitLab::API::v4::Config.
π₯ OPTIONS π₯
--url=<url>β setsurlinGitLab::API::v4.--access-token=<token>β setsaccess_tokeninGitLab::API::v4.--private-token=<token>β setsprivate_tokeninGitLab::API::v4.--retries=<count>β setsretriesinGitLab::API::v4.--all,-aβ retrieves all results when the results would normally be paged. SeeallinGitLab::API::v4::Paginatorfor details.--pretty,-pβ enables theprettyfeature inJSON::PP.--canonical,-cβ enables thecanonicalfeature inJSON::PP.
π¦ API METHOD π¦
<method>β the API method to call, one of the methods documented in"API METHODS"inGitLab::API::v4.
π API ARGUMENTS π
<arg> ...β any arguments that theAPI METHODrequires.
π API PARAMETERS π
<param>:<value> ...β any parameters that theAPI METHODaccepts.
πΈ access-level πΈ
There are mappings set up for the various access-level parameters so that, for example, you can specify access-level:guest and it will be automatically converted to access-level:10.
access-level:guestaccess-level:reporteraccess-level:developeraccess-level:masteraccess-level:owner
π SUPPORT π
See "SUPPORT" in GitLab::API::v4.
π AUTHORS π
See "AUTHORS" in GitLab::API::v4.
π COPYRIGHT AND LICENSE π
See "COPYRIGHT AND LICENSE" in GitLab::API::v4.
Thatβs the whole vibe, bestie. Shoutout to the source, User Contributed Perl Documentation, version perl v5.32.1, dated 2025-01-18, and yes β itβs GITLAB-API-V4(1) to the very end. Periodt. πβ¨
π¦ where this page comes from
- epel 9: perl-GitLab-API-v4 0.27-7.el9 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms