New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gitbeaker/cli

Package Overview
Dependencies
Maintainers
1
Versions
269
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitbeaker/cli

CLI implementation of the GitLab API.

  • 39.21.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
961
decreased by-49.92%
Maintainers
1
Weekly downloads
 
Created
Source


gitbeaker


My open source work is supported by the community


Special thanks to:




Axolo Logo

Review merge requests in Slack to merge code faster
Improve your code review process by creating an ephemeral channel per merge request.


pipeline status coverage report Code Climate maintainability Dependency Status Auto All Contributors Prettier Licence: MIT Install Size: CLI

A CLI Wrapper for the @gitbeaker/rest SDK.

Table of Contents

Usage

Node 18+

Install with npm install -g @gitbeaker/cli, or yarn add -g @gitbeaker/cli

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:

  • service name is any of the supported API names of the @gitbeaker/rest sdk
  • method name is any of the supported commands on that API service (See source for exceptions, but generally all, show, remove, update)
  • --config_args is any of general configuration arguments such as your personal token. These are outlined in this table and can also be found by looking at the cli help menu. These arguments must also include a gb or gl prefix. ie.
# To get all the projects
gitbeaker projects all --gb-token="personaltoken"
  • pos_arg1 ... pos_argN are any of the arguments you would normally supply to the function. The names of the args should match the names in the method headers. These positional arguments can also be written as flag arguments: --pos_arg1 ... --pos_argN, BUT must be written in the correct order.
  • --opts_arg1 ...--opts_argN are any of the optional arguments that you would normally supply to the function. Their names should match what the GitLab API docs request.
# 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_[option name] or GITBEAKER_[option name] ie:

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.

Contributors

Justin DalrympleDylan DesRosierMike WyattCory ZibeillMartin Bourakira345Pavel Birukov Joseph PetersenLouis CherelAdam DehnelEv HausLoïc MahieuGiuseppe AngrijennpariseOscarDaniel RufschindldAlvaroDaniel MooreDylan M. TaylorCorentin MorsxatavianYevgeny PetukhovMickaël TricotAndreaFlavien Bridault
s-kazukiKipras Melnikovasxieyust1gokMax WittigNiklas LochschmidtIlya DusOmar AwamryHennadii VaravaxiezhtMartin HelmichSean McGivernClemens LiebVojtěch SajdldividoVincent BoulayeAliyss SnowMahmoud SaadaFeng YuRoy JacobsPaul LemkeIan JenkinsnilennoctLaffargue MichaelMartin HowarthChristoph Lehmann
Frank VSalim BenabbouTamás Török-VistaiMartin BenningerfewiedenJeff PeltonClaude AbounegmStefan HallJordan Walletzhao0Joshua GrossoIsaac Ouellet TherrienRajat SharmaCesar B.Igor KatsubaMichael TownsendbodtxArtemMunif TanjimQuentin DreyerNorm MacLennanjnovickFabian AussemsMichael MatzkaCraigAllardyceBruno Guimarães
Lukas EipertMaximilian KraußEvolution EngineeringWEBER LoganAnton ZhukovNicholas LoomansCarl KittelbergerPatrik VotočekKyrylo FedorovClaudio VellageSeb0uilRafael MelloThéis BazinSpencer SalisburySimone CorsiBambiiWillArnaudTABenjamin BeretAlessandro Diezartlist-scottambroseMartin DreherElan Ruusamäeartemoire

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.

Keywords

FAQs

Package last updated on 26 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc