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}"Clone the repository:
git clone https://github.com/NARKOZ/gitlab-live.git
cd gitlab-liveInstall dependencies:
bundle installStart the server:
rackup -p 3000Open localhost:3000.
Run tests via rake.
Released under the BSD 2-clause license. See LICENSE.txt for details.