Interactive online shell for GitLab REST API, based on gitlab client CLI.
Can be used for administration tasks, as an interactive way to try out
GitLab API, or as a debugging aid during development.
Try it: https://gitlab-live.herokuapp.com
Make sure to set the right credentials (API endpoint
and private token
) in
settings before executing commands.
# list groups
gitlab> groups
# list users
gitlab> users
# get current user
gitlab> user
# get a user
gitlab> user 2
# filter output
gitlab> user --only=id,username
# or
gitlab> user --except=email,bio
# protect a branch
gitlab> protect_branch 1 master
# pass options hash to a command (use YAML)
gitlab> create_merge_request 4 "New merge request" "{source_branch: 'new_branch', target_branch: 'master', assignee_id: 42}"
Also see http://narkoz.github.io/gitlab/cli
Clone the repository:
git clone https://github.com/NARKOZ/gitlab-live.git
cd gitlab-live
Install dependencies:
bundle install
Start the server:
rackup -p 3000
Open localhost:3000
.
Run tests via rake
.
Released under the BSD 2-clause license. See LICENSE.txt for details.