{"id":18711568,"url":"https://github.com/bitmap/gitlab-cmd","last_synced_at":"2025-11-09T18:30:17.234Z","repository":{"id":70856172,"uuid":"143227821","full_name":"bitmap/gitlab-cmd","owner":"bitmap","description":"Command-line interface to manage GitLab issues and merge requests","archived":false,"fork":false,"pushed_at":"2019-04-10T17:08:49.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T12:43:50.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitlab.com/cabe.dev/gitlab-cmd","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitmap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-02T01:47:35.000Z","updated_at":"2019-04-10T17:09:09.000Z","dependencies_parsed_at":"2023-04-12T21:43:40.796Z","dependency_job_id":null,"html_url":"https://github.com/bitmap/gitlab-cmd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmap%2Fgitlab-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmap%2Fgitlab-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmap%2Fgitlab-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmap%2Fgitlab-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitmap","download_url":"https://codeload.github.com/bitmap/gitlab-cmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576793,"owners_count":19662113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:39:29.604Z","updated_at":"2025-11-09T18:30:17.206Z","avatar_url":"https://github.com/bitmap.png","language":"JavaScript","readme":"# gitlab-cmd\n\n## Setup\n\nRequires Node.js. Install the package globally:\n\n```\nnpm install -g gitlab-cmd\n```\n\nThis will add `gitlab` to the command-line.\n\nIn your `~/.gitconfig`, you'll need to setup the Gitlab url and a personal access token:\n\n```\n[gitlab]\n  url = https://gitlab.com\n  token = 1a2b3c4d5e6f7g8h9i0j\n```\n\nIn the root of your project folder, create a file called `gitlab.config.json` and point it to your project's name:\n\n```\n{\n  \"repo\": \"cabe.io/gitlab-cmd\",\n  \"defaultBranch\": \"master\"\n}\n```\n\n**Pro Tip:** You can also run `gitlab init` to quickly spin up a new repo.\n\nTo test if it works, run `gitlab --project` and you should see a JSON object that contains details about your project.\n\n##### Other options\n\nYou can specify a `user` option in your gitconfig to omit namespacing `repo`. This is generally not recommended, but has some use cases. You can also specify a project's ID in `repo`.\n\n```\n{\n  \"repo\": 12345\n}\n```\n\n# Commands\n\n* [gitlab](#gitlab)\n* [gitlab issue](#gitlab-issue)\n* [gitlab merge](#gitlab-merge)\n* [gitlab list](#gitlab-list)\n* [gitlab new](#gitlab-new)\n* [gitlab branch](#gitlab-branch)\n* [gitlab close](#gitlab-close)\n* [gitlab query](#gitlab-query)\n\n# `gitlab`\n\n```\nUsage: gitlab [options] [command]\n\n\nOptions:\n\n  -V, --version     output the version number\n  -P, --project     Display project details\n  -L, --labels      Display a list of project labels\n  -M, --milestones  Display a list of project milestones\n  -B, --boards      Display a list of project issue boards\n  -U, --users       Display a list of users\n  -h, --help        output usage information\n\n\nCommands:\n\n  init                 Initialize repository\n  issue|i \u003cids...\u003e     Edit issues\n  merge|mr \u003cids...\u003e    Edit merge requests\n  list|ls \u003ctype\u003e       Display list of issues or merge requests\n  new|n \u003ctype\u003e         Create a new issues or merge requests\n  query \u003cqueryString\u003e  Query the Gitlab API\n  branch               List or create branches\n  help [cmd]           display help for [cmd]\n```\n\n# `gitlab issue`\n\n```sh\n$ gitlab issue \u003cid\u003e [options]\n```\n\n## Basic\n\nEdit issue details. Provide an ID to edit a single issue. Provide multiple IDs to batch edit.\n\n```sh\n$ gitlab issue 138 --add-label \"Bugfix\" --remove-label \"Feature\"\n$ gitlab issue 12 16 21 --close\n```\n\n#### Options\n\n```\n  -i, --info                  List out all data for this issue as a JSON object\n  -c, --close                 Close issue\n  -s, --state [close|reopen]  Set issue state\n  -a, --assign \u003cid|username\u003e  Assign issue to user\n  -b, --board                 Show which board issue belongs to\n  -m, --move [board]          Move issue to board\n  --ls-labels                 List issue labels\n  --add-label \u003clabel\u003e         Add label\n  --remove-label \u003clabel\u003e      Remove label\n  --edit-title                Edit issue title\n  --md-description            Translate description from markdown to HTML\n```\n\n# `gitlab merge`\n\n```sh\n$ gitlab merge \u003cid\u003e [options]\n```\n\n## Basic\n\nEdit details or accept merge requests. Provide an ID to edit a single issue. Provide multiple IDs to batch edit.\n\n```\n$ gitlab merge 13 --merge\n$ gitlab merge 5 9 10 --add-label \"Staging\"\n```\n\n#### Options\n\n```\n-i, --info                  List out all data for this merge as a JSON object\n-c, --close                 Close merge request\n-s, --state \u003cclose|reopen\u003e  Set merge request state\n-a. --assign \u003cid|username\u003e  Assign merge request to user\n-m, --merge                 Accept merge request and merge into target branch\n--ls-labels                 List merge request labels\n--add-label \u003clabel\u003e         Add label to merge request\n--remove-label \u003clabel\u003e      Remove Label from merge request\n--edit-title                Edit merge request title\n--status                    Check merge request status\n--wip                       Toggle \"Work in Progress\" status\n```\n\n# `gitlab list`\n\nReturns a list of all open issues or merges\n\n```sh\n$ gitlab list merges\n$ gitlab list issues --filter labels \"Bugfix\"\n```\n\n#### Options\n\n```sh\n-f, --filter \u003ctype\u003e \u003cquery\u003e  Filter issues by parameter\n```\n\n# `gitlab new`\n\nCreates a new issue or merge.\n\n```sh\n$ gitlab new merge\n$ gitlab new issue --title \"Really important bug\" --labels \"Bugfix\"\n```\n\n#### Options\n\n```\n-t, --title \u003ctitle\u003e            Set title (required)\n-d, --desc \u003cdescription\u003e       Set description\n-m, --milestone \u003cmilestoneID\u003e  Set milestone\n-l, --label \u003clabel\u003e            Set label\n-u, --assignee \u003cid|username\u003e   Assign to user\n--target \u003cbranch\u003e              Target branch (required)\n--source \u003cbranch\u003e              Source branch (default: current branch)\n--remove-branch \u003cboolean\u003e      Remove source branch? (default: true)\n-P, --prompt                   Create via interactive prompt\n```\n\n# `gitlab branch`\n\nManage your project's branches\n\n```sh\n$ gitlab branch --list\n$ gitlab branch --new issue/123-new-feature-branch\n$ gitlab branch --delete bugfix/321-really-bad-idea\n```\n\n#### Options\n\n```\n--list                  List project branches\n--new \u003cbranch_name\u003e     Create a new branch from current\n--delete \u003cbranch_name\u003e  Delete a branch\n```\n\n\n# `gitlab close`\n\nClose a batch of issues. Basically a shortcut for `gitlab issue [ids] --close`\n\n```\n$ gitlab close 12 13 14\n```\n\n# `gitlab query`\n\nAllows you to query the GitLab API using a query string. It will return a JSON object with your results\n\n```\n$ gitlab query issues?state=closed\n$ gitlab query merge_requests?labels=Staging,Feature\n$ gitlab query \"issues?search=Really obscure bug\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitmap%2Fgitlab-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitmap%2Fgitlab-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitmap%2Fgitlab-cmd/lists"}