Gitlab CLI π
glcli is a command line tool that makes working with GitLab easier.
βοΈ Features
- Easy configuration of GitLab settings.
- Display all merge requests created by or assigned to you.
- Quickly open pages in your default browser.
- Identify projects dependent on a certain package (Golang:
go.mod, PHP: composer.json).
- Validate
.gitlab-ci.yml files with ease.
π Installation
Clone the repository and use the Makefile provided:
git clone https://github.com/alekseiapa/glcli.git
cd glcli
make install
π Usage Instructions
A CLI tool for GitLab management.
Usage:
glcli [command]
Available Commands:
ci Manage GitLab CI
clone Clone a repository from GitLab
config Configure or display CLI options
depend Show projects relying on a particular package
mr Manage merge requests
own Manage your own resources
project Manage GitLab projects
version Display version number of glcli
Flags:
-h, --help Help information for glcli
Use "glcli [command] --help" for more information about a command.
Initial Configuration π οΈ
To start using glcli, run:
glcli config init
The command will prompt you for GitLab host and token information.
Clone a Repository π
Clone a repository from GitLab with ease:
glcli clone [REPO]
Working with Merge Requests βοΈ
glcli mr list
Analyze Dependencies π
- Show PHP Composer Dependencies
See projects dependent on a specific PHP package:
glcli depend php package/name --group=group
- Show Go Module Dependencies
Display Go projects that depend on a specific module:
glcli depend go module/path --group=group
Validate GitLab CI Config β
Check if .gitlab-ci.yml files are valid:
glcli ci lint .gitlab-ci.yml