GithubHelp home page GithubHelp logo

augustohp / ore-gitlab_cli Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 6 KB

A CLI wrapping a Docker image to interact with Gitlab's API.

License: MIT License

Shell 100.00%
castle castle-ore docker gitlab

ore-gitlab_cli's Introduction

GitLab CLI

Wraps a docker image containing gitlab ruby gem to access Gitlab's API through the command line.

You just need:

Usage

Clone this repository with homesick or homeshick and be sure that $HOME/bin is inside your $PATH, you will able to:

$ gitlab help

You should create a Personal Access Token and then export it in your shell:

$ export GITLAB_API_PRIVATE_TOKEN=<your access token>

Environment variables used are:

  • GITLAB_API_PRIVATE_TOKEN
  • GITLAB_API_ENDPOINT defaults to https://gitlab.com/api/v4

Some recipes for you to use:

  • Trim alias (used in some examples): alias trim="sed 's/[\s\t\"]//g'"
  • List all clone URLs of projects the authenticated user has access to $ gitlab projects --json | jq '.result[] | .ssh_url_to_repo' | trim
  • List all repositories from an organization (limited to 250 max) $ gitlab group_projects --json gitlab-org "{per_page: '250'}" | jq '.result[] | .path_with_namespace' | trim

ore-gitlab_cli's People

Contributors

augustohp avatar dcorrea777 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ore-gitlab_cli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.