One more GitLab CLI, because other ones do not fit my needs...
npm install --global one-more-gitlab-cli
#or
yarn add global one-more-gitlab-cli
For now, it just focuses on issues and merge requests, more resources support to come...
gitlab --help
Usage: gitlab <command> [options]
Commands:
issue Issues Management
mr Merge Requests Management
Options:
--help Show help [boolean]
--version Show version number [boolean]
Examples:
bin/gitlab issue --help show help of the issue command
for more information, go to https://chamerling.github.io/one-more-gitlab-cli
Note: In all the commands below, you can specify the GitLab project to launch the command against using --name
. If not specified, the cli will look at the current project from git origin and will use it has project name.
- Create an issue in the
my-project
project
gitlab issue create --name my-project --title 'This is my issue title' --d 'This is the issue description'
Get the issue #735
of the my-project
project.
gitlab issue get --name my-project --id 735
- List last issues in the
my-project
project
gitlab issue list --name linagora.esn.calendar
- Search issues in the
my-project
project related tospinner
gitlab issue list --name linagora.esn.calendar --search spinner
List last merge requests in the my-project
project
gitlab mr list --name linagora.esn.calendar --state opened
state
can beopened
,closed
,merged
andall
. Defaults toopened
.
Get the merge request #735
of the my-project
project.
gitlab mr get --name my-project --id 735
You can configure the CLI globally or locally per project. To authenticate the user, it uses a gitlab token you can find on your gitlab profile account (https://your-server-url/profile/account). Just copy/paste the Private Token
.
git config --global gitlab.url "http://your-server-url"
git config --global gitlab.token "your-token"
WARN: Not implemented for now!
In the repository of your choice:
git config gitlab.url "http://your-server-url"
git config gitlab.token "your-token"
grunt release
MIT