gitlab-api-v4 - Command line interface to the GitLab API v4.
# Generally: gitlab-api-v4 <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 \ --email=<email> --password=<password> --username=<username> --name=<name> --admin
You may configure this module with envornment 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.
~/.gitlab-api-v4.json
Read more at GitLab::API::v4::Config.
<method>
The API method to call (one of the methods documented in GitLab::API::v4).
<arg> ...
Any arguments that the "method" requires.
--<param>=<value> ...
Any parameters that the "method" accepts.
--access-level-guest --access-level-reporter --access-level-developer --access-level-master --access-level-owner
--all
Retrieves all results when the results would normally be paged.
See "AUTHOR" in GitLab::API::v4 and "CONTRIBUTORS" in GitLab::API::v4.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install GitLab::API::v4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GitLab::API::v4
CPAN shell
perl -MCPAN -e shell install GitLab::API::v4
For more information on module installation, please visit the detailed CPAN module installation guide.