{"id":16629087,"url":"https://github.com/bradgarropy/labman-cli","last_synced_at":"2025-03-21T15:31:19.417Z","repository":{"id":44836374,"uuid":"228625287","full_name":"bradgarropy/labman-cli","owner":"bradgarropy","description":"👨🏼‍🔬 github label manager cli","archived":false,"fork":false,"pushed_at":"2023-01-05T04:51:33.000Z","size":4569,"stargazers_count":16,"open_issues_count":19,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T07:23:27.187Z","etag":null,"topics":["cli","github","issues","javascript","labels","node","nodejs","octokit"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/labman","language":"JavaScript","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/bradgarropy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-17T13:42:21.000Z","updated_at":"2025-01-14T05:44:41.000Z","dependencies_parsed_at":"2023-02-03T10:31:44.586Z","dependency_job_id":null,"html_url":"https://github.com/bradgarropy/labman-cli","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Flabman-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Flabman-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Flabman-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Flabman-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradgarropy","download_url":"https://codeload.github.com/bradgarropy/labman-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244822638,"owners_count":20516144,"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":["cli","github","issues","javascript","labels","node","nodejs","octokit"],"created_at":"2024-10-12T04:39:29.672Z","updated_at":"2025-03-21T15:31:19.022Z","avatar_url":"https://github.com/bradgarropy.png","language":"JavaScript","readme":"# 👨🏼‍🔬 github label manager cli\n\n\u003ca href=\"https://www.npmjs.com/package/labman\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/labman.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/labman\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/labman?style=flat-square\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://coveralls.io/github/bradgarropy/labman-cli\"\u003e\n    \u003cimg alt=\"coveralls\" src=\"https://img.shields.io/coveralls/github/bradgarropy/labman-cli?style=flat-square\"\u003e\n\u003c/a\u003e\n\n_Command line tool for managing issue labels across GitHub repositories._\n\n![usage][gif]\n\n## 📦 Installation\n\nInstallation is optional, as you can run this package with [`npx`][npx].\n\n```\nnpm install labman --global\n```\n\n## 🥑 Usage\n\nIf you have `labman` installed globally you can run it as shown below.\n\n```\nlabman --help\n```\n\nAlternatively, you can run it with [`npx`][npx].\n\n```\nnpx labman --help\n```\n\n## 👨🏼‍🏫 Commands\n\n### `login`\n\nValidates and stores your GitHub [personal access token][token].\n\n#### Options\n\n| Name            | Description                                              | Default |\n| --------------- | -------------------------------------------------------- | ------- |\n| `username`      | GitHub username.                                         |         |\n| `token`         | GitHub [personal access token][token] with `repo` scope. |         |\n| `--force`, `-f` | Overwrite existing login.                                | `false` |\n\n#### Examples\n\nLogin as `bradgarropy` with a [personal access token][token].\n\n```\nlabman login bradgarropy 123456\n```\n\nLogin as `gabygarropy`, overwriting the `bradgarropy` login.\n\n```\nlabman login gabygarropy 456789\n```\n\n### `labman`\n\nCopies labels from one repository to another.\n\nThe `source` and `destination` can be provided in two ways.\n\n-   `owner/repo`, like `bradgarropy/labman-cli`\n-   `repo`, like `labman-cli`\n\nIf an `owner` is not specified, `labman` will assume the `username` you provided during `login`.\n\nIf `labels` is not provided, `labman` will copy all labels from `source` to `destination`.\n\n#### Options\n\n| Name              | Description                                                          | Default |\n| ----------------- | -------------------------------------------------------------------- | ------- |\n| `source`          | GitHub repository.                                                   |         |\n| `destination`     | GitHub repository.                                                   |         |\n| `labels`          | Space separated list of label names to copy.                         | `[]`    |\n| `--clobber`, `-c` | Remove all labels from `destination` before copying `source` labels. | `false` |\n\n#### Examples\n\nCopy all labels from `bradgarropy/label-source` to `bradgarropy/label-destination`.\n\n```\nlabman bradgarropy/label-source bradgarropy/label-destination\n```\n\nDelete all labels from `bradgarropy/label-destionation`, then copy all labels from `bradgarropy/label-source` to `bradgarropy/label-destination`.\n\n```\nlabman bradgarropy/label-source bradgarropy/label-destination --clobber\n```\n\nCopy only the `bug` and `todo` labels from `bradgarropy/label-source` to `bradgarropy/label-destination`.\n\n```\nlabman bradgarropy/label-source bradgarropy/label-destination bug todo\n```\n\nUse the shorthand method for providing `source` and `destination` repositories.\n\n```\nlabman login bradgarropy 123456\nlabman label-source label-destination\n```\n\n### `logout`\n\nRemoves your GitHub [personal access token][token].\n\n#### Examples\n\n```\nlabman logout\n```\n\n## ❔ Questions\n\nIf you have any trouble, definitely [open an issue][issue] and I'll take a look.\n\nIf all else fails, you can ask me directly on [Twitter][twitter] or my [AMA][ama].\n\n[gif]: https://raw.githubusercontent.com/bradgarropy/labman-cli/master/usage.gif\n[npx]: https://www.npmjs.com/package/npx\n[token]: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line\n[issue]: https://github.com/bradgarropy/labman-cli/issues\n[twitter]: https://twitter.com/bradgarropy\n[ama]: https://github.com/bradgarropy/ama\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradgarropy%2Flabman-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradgarropy%2Flabman-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradgarropy%2Flabman-cli/lists"}