A CLI Wrapper for the @gitbeaker/rest SDK.
Node 18+ |
Install with gitbeaker [service name] [method name] --config_args pos_arg1 pos_argN --opts_arg1 --opts_argN
# A shorthand can also be used:
gb [service name] [method name] --config_args pos_arg1 pos_argN --opts_arg1 --opts_argN Where:
# To get all the projects
gitbeaker projects all --gb-token="personaltoken"
# To get all the projects id=2 and optional parameter "search" = "cool"
gitbeaker projects all --gb-token="personaltoken" 2 --search="cool" To reduce the annoyance of having to pass those configuration properties each time, it is also possible to pass the token and host information through environment variables in the form of GITLAB_HOST=http://example.com
GITLAB_TOKEN=personaltoken
GITBEAKER_CAMELIZE=true This could be set globally or using a .env file in the project folder. |
---|
This started as a fork from node-gitlab-legacy but I ended up rewriting much of the code. Here are the original work's contributors.