{"id":22127570,"url":"https://github.com/capjavert/gitlab-cli","last_synced_at":"2026-05-11T05:55:39.420Z","repository":{"id":40712070,"uuid":"283568107","full_name":"capJavert/gitlab-cli","owner":"capJavert","description":"Simple cli tool for using GitLab API","archived":false,"fork":false,"pushed_at":"2023-01-07T20:37:00.000Z","size":456,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T06:05:15.839Z","etag":null,"topics":["api","cli","gitlab","hacktoberfest","helper","manage","node"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@kickass-dev/gitlab-cli","language":"JavaScript","has_issues":true,"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/capJavert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"capJavert"}},"created_at":"2020-07-29T18:01:30.000Z","updated_at":"2022-08-08T09:26:40.000Z","dependencies_parsed_at":"2023-02-08T01:00:57.102Z","dependency_job_id":null,"html_url":"https://github.com/capJavert/gitlab-cli","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capJavert%2Fgitlab-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capJavert%2Fgitlab-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capJavert%2Fgitlab-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capJavert%2Fgitlab-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capJavert","download_url":"https://codeload.github.com/capJavert/gitlab-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245233857,"owners_count":20581911,"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":["api","cli","gitlab","hacktoberfest","helper","manage","node"],"created_at":"2024-12-01T17:19:49.092Z","updated_at":"2026-05-11T05:55:39.342Z","avatar_url":"https://github.com/capJavert.png","language":"JavaScript","funding_links":["https://github.com/sponsors/capJavert"],"categories":[],"sub_categories":[],"readme":"# Gitlab CLI\n\n[![npm](https://img.shields.io/npm/v/@kickass-dev/gitlab-cli)](https://www.npmjs.com/package/@kickass-dev/gitlab-cli)\n\nSimple cli tool for using gitlab api through command line.\n\n## Setup\n\n```\nnpm install -g @kickass-dev/gitlab-cli\n```\n\nConfigure CLI\n```\ngitlab-cli init YOUR_GITLAB_ACCESS_TOKEN https://gitlab.com\n```\n\nYou can check [Creating a personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token) for information on how to generate your GitLab access token.\n\nYou can find your Project ID inside your GitLab repository:\n![Where is my Project ID](https://github.com/capJavert/gitlab-cli/raw/master/images/where-is-my-project-id.jpg \"Where is my Project ID\")\n\nThis will create configuration file at `~/.gitlabcli/config` and use it for all other commands.\n\nConfiguration can be overwritten by calling init command again.\n\n## Usage\n\n### Create variable\n\n```\ngitlab-cli variable-create PROJECT_ID HOMEPAGE_URL https://kickass.website\n```\n\nInstead of value you can also provide relative file path. In that case contents of the file\nwill be used as variable value.\n```\ngitlab-cli variable-create PROJECT_ID HOMEPAGE_URL ../path/to/my/env/file\n```\n\n### Get variable\n\nWith this you can easily pull for example .env that you store inside your gitlab project for local development:\n```\ngitlab-cli variable-get PROJECT_ID ENV_FILE \u003e .env\n```\n\nor value by value:\n```\ngitlab-cli variable-get PROJECT_ID HOMEPAGE_URL \u003e\u003e .env\ngitlab-cli variable-get PROJECT_ID API_BASE \u003e\u003e .env\n```\n\n### Create pipeline\n\n```\n\u003e gitlab-cli pipeline-create 646 feature/cache\nPipeline #21807 created and running...\n```\n\n### Cancel or retry pipeline\n\n```\ngitlab-cli pipeline-update 646 21807 retry\ngitlab-cli pipeline-update 646 21807 cancel\n```\n\n### List runners for project\n\n```\n\u003e gitlab-cli runner-list 646\n33 frontend ONLINE 255.255.32.197\n738 macosrunner ONLINE 255.255.14.247\n1655 azure-runner ONLINE 255.255.154.234\n1798 k6-runner PAUSED 255.255.255.152\n```\n\n### Enable or disable runner for project\n\n```\ngitlab-cli runner-enable 646 33\ngitlab-cli runner-disable 646 33\n```\n\n### List issues for project\n\n```\n\u003e gitlab-cli issue-list 646\n108473084 OPENED 2022-05-12T19:50:29.097Z https://gitlab.com/capJavert/test/-/issues/13\n108470014 OPENED 2022-05-12T18:47:53.820Z https://gitlab.com/capJavert/test/-/issues/12\n108469767 OPENED 2022-05-12T18:41:40.416Z https://gitlab.com/capJavert/test/-/issues/11\n108469728 CLOSED 2022-05-12T18:40:29.520Z https://gitlab.com/capJavert/test/-/issues/10\n```\n\n**You can find other commands with examples and usages in the Help section below.***\n\n## Help\n\nGet full list of commands:\n\n```\ngitlab-cli --help\n```\n\nGet help for specific command:\n\n```\ngitlab-cli [command] --help\n```\n\n### Options:\n  --help     Show help                                                 [boolean]  \n  --version  Show version number                                       [boolean]  \n\n## FAQ\n* How do I create a variable with multiline content?\n\nJust wrap variable value in quotation marks like:\n```\ngitlab-cli variable-update 646 EDITOR_CONFIG \"root = true\n\n[*]\nend_of_line = lf\ninsert_final_newline = true\nindent_style = space\nindent_size = 4\"\n``` \nor load your variable value from file by providing file path instead of value.\n\n* I wish to output original (JSON) response from Gitlab API, how can I do that?\n\nEvery command supports global `--raw` option, use it like:\n```\ngitlab-cli pipeline-list 646 --raw\n```\n\nThis will output original JSON string received from Gitlab API. You can use it to parse it\nby yourself or pipe to some other command for processing (for example inside CI/CD job).\n\n## Support\n\n### Currently supported\n- [x] Variables\n- [x] Pipelines\n- [x] Runners\n- [x] Issues (partial)\n\n### Next\n- [ ] Releases\n\n\nThere are plans to support other resources available on [API Docs | GitLab](https://docs.gitlab.com/ee/api/README.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapjavert%2Fgitlab-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapjavert%2Fgitlab-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapjavert%2Fgitlab-cli/lists"}