GITLAB-API-V4(1)

πŸ“¦
version 0.27 Β· 5 versions
, in epel 9

πŸ’– 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> β€” 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 feature in JSON::PP.
  • --canonical, -c β€” enables the canonical feature in JSON::PP.

πŸ¦‹ API METHOD πŸ¦‹

  • <method> β€” the API method to call, one of the methods documented in "API METHODS" in GitLab::API::v4.

🌈 API ARGUMENTS 🌈

  • <arg> ... β€” any arguments that the API METHOD requires.

πŸ“ API PARAMETERS πŸ“

  • <param>:<value> ... β€” any parameters that the API METHOD accepts.

🌸 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:guest
  • access-level:reporter
  • access-level:developer
  • access-level:master
  • access-level:owner

πŸ’œ SUPPORT πŸ’œ

See "SUPPORT" in GitLab::API::v4.

πŸ‘‘ AUTHORS πŸ‘‘

See "AUTHORS" in GitLab::API::v4.

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