{"id":19662377,"url":"https://github.com/axeldotdev/gitlab-cli","last_synced_at":"2025-02-27T03:20:57.655Z","repository":{"id":38109893,"uuid":"443779230","full_name":"axeldotdev/gitlab-cli","owner":"axeldotdev","description":"This is a CLI that helps you use the Gitlab GraphQL API.","archived":false,"fork":false,"pushed_at":"2023-04-19T18:57:36.000Z","size":243,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T01:52:06.433Z","etag":null,"topics":["api","cli","gitlab","laravel-zero"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axeldotdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"axeldotdev"}},"created_at":"2022-01-02T13:57:21.000Z","updated_at":"2022-01-02T14:27:33.000Z","dependencies_parsed_at":"2024-11-11T16:10:58.535Z","dependency_job_id":"782aa489-0aca-4e75-ba56-a5bd8ce7b17f","html_url":"https://github.com/axeldotdev/gitlab-cli","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/axeldotdev%2Fgitlab-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axeldotdev%2Fgitlab-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axeldotdev%2Fgitlab-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axeldotdev%2Fgitlab-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axeldotdev","download_url":"https://codeload.github.com/axeldotdev/gitlab-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240971240,"owners_count":19886707,"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","laravel-zero"],"created_at":"2024-11-11T16:10:55.353Z","updated_at":"2025-02-27T03:20:57.637Z","avatar_url":"https://github.com/axeldotdev.png","language":"PHP","readme":"# Gitlab CLI\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/axeldotdev/gitlab-cli.svg?style=flat-square)](https://packagist.org/packages/axeldotdev/gitlab-cli)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/axeldotdev/gitlab-cli/run-tests?label=tests)](https://github.com/axeldotdev/gitlab-cli/actions?query=workflow%3ATests+branch%3Amaster)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/axeldotdev/gitlab-cli/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/axeldotdev/gitlab-cli/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amaster)\n[![Total Downloads](https://img.shields.io/packagist/dt/axeldotdev/gitlab-cli.svg?style=flat-square)](https://packagist.org/packages/axeldotdev/gitlab-cli)\n\nThis is a CLI that helps you use the Gitlab API.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer create-project --prefer-dist axeldotdev/gitlab-cli gitlab-cli\n```\n\n## Gitlab API Resource\n\n[https://docs.gitlab.com/ee/api/api_resources.html](https://docs.gitlab.com/ee/api/api_resources.html)\n\n## Usage\n\nYou need to run the commands below in a Git repository.\n\n### Authentication\n\nYou need to generate an access token on Gitlab to use the API.\n\nTo create a new access token, go to your [access tokens section on GitLab](https://gitlab.com/-/profile/personal_access_tokens) (or the equivalent URL on your private instance) and create a new token. See also [the GitLab access token documentation](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token) for more informations.\n\nWhen you have your personal access token, add it to your composer global `auth.json`. See also [The Composer authentification documentation](https://getcomposer.org/doc/articles/authentication-for-private-packages.md#gitlab-token) for more informations.\n\n**Currently this package only works with Gitlab cloud. If you have a self-hosted Gitlab instance, you need to wait next release, I'm sorry.**\n\n**WORK IN PROGRESS**\n\nThen you can register it with the command: `gitlab-cli register:token {personal_token}`\n\nIf you have a self-hosted Gitlab, you can register it with the command: `gitlab-cli register:host {host_uri}`\n\n\n### Issues\n\n#### Create\n\nTODO\n\n#### Update\n\nTODO\n\n#### Delete\n\nTODO\n\n#### Reopen\n\n```\ngitlab-cli issue:reopen {issue_iid}\n\n# gitlab-cli issue:reopen 345\n```\n\n#### Close\n\n```\ngitlab-cli issue:close {issue_iid}\n\n# gitlab-cli issue:close 345\n```\n\n#### Browse\n\n```\ngitlab-cli issue:browse {issue_iid}\n\n# gitlab-cli issue:browse 345\n```\n\n*Only works on macOS*\n\n#### Add Labels\n\n```\ngitlab-cli issue:label:add {issue_iid} {label_names}\n\n# gitlab-cli issue:label:add 345 todo,bug,auth\n```\n\n#### Remove Labels\n\n```\ngitlab-cli issue:label:remove {issue_iid} {label_names}\n\n# gitlab-cli issue:label:remove 345 todo,bug,auth\n```\n\n#### Replace Labels\n\n```\ngitlab-cli issue:label:add {issue_iid} {old_label_names} {new_label_names}\n\n# gitlab-cli issue:label:add 345 todo testing\n```\n\n#### Link Milestone\n\n```\ngitlab-cli issue:milestone:link {issue_iid} {milestone_iid}\n\n# gitlab-cli issue:milestone:link 345 25\n```\n\n#### Unlink Milestone\n\n```\ngitlab-cli issue:milestone:unlink {issue_iid} {milestone_iid}\n\n# gitlab-cli issue:milestone:unlink 345 25\n```\n\n#### Link Epic\n\n```\ngitlab-cli issue:epic:link {issue_iid} {milestone_iid}\n\n# gitlab-cli issue:epic:link 345 25\n```\n\n#### Unlink Epic\n\n```\ngitlab-cli issue:epic:unlink {issue_iid} {milestone_iid}\n\n# gitlab-cli issue:epic:unlink 345 25\n```\n\n### Milestones\n\n#### Create\n\nTODO\n\n#### Update\n\nTODO\n\n#### Delete\n\nTODO\n\n### Releases\n\n#### Create\n\nTODO\n\n#### Update\n\nTODO\n\n#### Delete\n\nTODO\n\n### Epics\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Axel Charpentier](https://github.com/axeldotdev)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":["https://github.com/sponsors/axeldotdev"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxeldotdev%2Fgitlab-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxeldotdev%2Fgitlab-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxeldotdev%2Fgitlab-cli/lists"}