Gitlab CLI is a Ruby gem and CLI tool that wraps the REST API of GitLab (including self-hosted GitLab instances) to make automation, scripting and integration simpler. It provides a Ruby DSL that abstracts away direct HTTP calls, letting developers interact with GitLab’s API in idiomatic Ruby (creating projects, merge requests, listing users, etc.). In addition to the Ruby library, there is a command-line interface which enables many GitLab operations from the terminal (or scripts) without needing to manually craft API requests. The gem supports customization of endpoint URL, private tokens, proxy and HTTP options, making it suitable for self-managed GitLab instances as well as gitlab.com. It is test-covered and built to be simple to integrate into Ruby projects or CI scripts. Being open-source under a BSD-2-Clause license, it invites reuse in organizational tooling or internal DevOps workflows. Overall, it is a useful tool for teams working with GitLab who want to automate tasks.
Features
- Ruby DSL for accessing GitLab REST API endpoints (projects, users, issues, merge requests)
- Command-line interface (CLI) that allows GitLab operations from the terminal
- Support for custom GitLab endpoint, private token, proxy, timeout configuration
- Test coverage and documentation for usage examples and error handling
- Ability to integrate into CI/CD or DevOps scripts for GitLab instance automation
- BSD-2-Clause license allowing commercial or internal reuse