{"id":20532472,"url":"https://github.com/joshdk/cci-trigger","last_synced_at":"2026-06-01T03:31:41.699Z","repository":{"id":57612297,"uuid":"114208915","full_name":"joshdk/cci-trigger","owner":"joshdk","description":"⚙️ Trigger CircleCI builds programmatically","archived":false,"fork":false,"pushed_at":"2018-03-18T01:31:55.000Z","size":715,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T02:49:07.976Z","etag":null,"topics":["circle-ci","circle-ci-2","circleci","circleci-api","circleci2","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/joshdk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-14T05:59:27.000Z","updated_at":"2018-03-18T01:31:52.000Z","dependencies_parsed_at":"2022-08-27T09:51:08.125Z","dependency_job_id":null,"html_url":"https://github.com/joshdk/cci-trigger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joshdk/cci-trigger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcci-trigger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcci-trigger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcci-trigger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcci-trigger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshdk","download_url":"https://codeload.github.com/joshdk/cci-trigger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcci-trigger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["circle-ci","circle-ci-2","circleci","circleci-api","circleci2","golang"],"created_at":"2024-11-16T00:15:06.892Z","updated_at":"2026-06-01T03:31:41.683Z","avatar_url":"https://github.com/joshdk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/joshdk/cci-trigger.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://godoc.org/github.com/joshdk/cci-trigger?status.svg)](https://godoc.org/github.com/joshdk/cci-trigger)\n[![Go Report Card](https://goreportcard.com/badge/github.com/joshdk/cci-trigger)](https://goreportcard.com/report/github.com/joshdk/cci-trigger)\n[![CircleCI](https://circleci.com/gh/joshdk/cci-trigger.svg?\u0026style=shield)](https://circleci.com/gh/joshdk/cci-trigger/tree/master)\n\n# CircleCI Trigger\n\n⚙️ Trigger CircleCI builds programmatically\n\n## Installing\n\nYou can fetch this tool by running the following\n\n```bash\ngo get -u github.com/joshdk/cci-trigger\n```\n\n## Usage\n\n### Setup\n\nYou must first obtain a API key by [going to your account's API page](https://circleci.com/account/api), and creating a new token. Export this API token as `CIRCLE_TOKEN` into your working environment.\n\n```bash\nexport CIRCLE_TOKEN='cf1...d7c'\n```\n\nIf you have an enterprise instance of CircleCI, you can export `CIRCLE_HOST` with the hostname of your internal instance.\n\n```bash\nexport CIRCLE_HOST='circleci.example.com'\n```\n\n### Build head of default branch\n\nStarts a build on the HEAD of the default branch. This branch is _typically_ master, and can usually be customized in your VCS platform.\n\n```\n$ cci-trigger username/project\nhttps://circleci.com/gh/username/project/123\n```\n\n### Build tag\n\nStarts a build on the given tag.\n\n```\n$ cci-trigger username/project --tag \u003cTAG\u003e\nhttps://circleci.com/gh/username/project/123\n```\n\n### Build ref\n\nStarts a build on the given VCS ref.\n\n```\n$ cci-trigger username/project --ref \u003cREF\u003e\nhttps://circleci.com/gh/username/project/123\n```\n\n### Build head of branch\n\nStarts a build on the HEAD of the given branch.\n\n```\n$ cci-trigger username/project --branch \u003cBRANCH\u003e\nhttps://circleci.com/gh/username/project/123\n```\n\n### Build branch at ref\n\nStarts a build on the given branch at the given ref.\n\n```\n$ cci-trigger username/project --branch \u003cBRANCH\u003e --ref \u003cREF\u003e\nhttps://circleci.com/gh/username/project/123\n```\n\n### Rebuild build number\n\nRestarts a build on the given build number.\n\n```\n$ cci-trigger username/project --build \u003cBUILD\u003e\nhttps://circleci.com/gh/username/project/123\n```\n\n### Rebuild build number with SSH\n\nRestarts a build on the given build number, and enables SSH.\n\n```\n$ cci-trigger username/project --build \u003cBUILD\u003e --ssh\nhttps://circleci.com/gh/username/project/123\n```\n\n## Issues\n\nIf you find a bug in `cci-trigger` or need additional features, please feel free to [open an issue](https://github.com/joshdk/cci-trigger/issues/new) or [submit a pull request](https://github.com/joshdk/cci-trigger/pulls).\n\n## License\n\nThis library is distributed under the [MIT License](https://opensource.org/licenses/MIT), see LICENSE.txt for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fcci-trigger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshdk%2Fcci-trigger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fcci-trigger/lists"}