gitlab−api−v4 − Command line interface to the GitLab API v4.
# 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:[email protected] \
"name:Foo Smith" \
admin:1
You may configure this module with environment variables, command line options, and a configuration file. 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.
−−url=<url>
Sets "url" in GitLab::API::v4.
−−access−token=<token>
Sets "access_token" in GitLab::API::v4.
−−private−token=<token>
Sets "private_token" in GitLab::API::v4.
−−retries=<count>
Sets "retries" in GitLab::API::v4.
−−all
−a
Retrieves all results when the results would normally be paged. See "all" in GitLab::API::v4::Paginator for details.
−−pretty
−p
Enables the "pretty" in JSON::PP feature.
−−canonical
−c
Enables the "canonical" in JSON::PP feature.
<method>
The API method to call − one of the methods documented in "API METHODS" in GitLab::API::v4.
<arg> ...
Any arguments that the "API METHOD" requires.
<param>:<value> ...
Any parameters that the "API METHOD" accepts.
access−level:guest
access−level:reporter
access−level:developer
access−level:master
access−level:owner
There are mappings setup for the various "access−level" parameters so that you can, for example, specify "access−level:guest" and it will be automatically converted to "access−level:10".
See "SUPPORT" in GitLab::API::v4.
See "AUTHORS" in GitLab::API::v4.
See "COPYRIGHT AND LICENSE" in GitLab::API::v4.