{"id":43088394,"url":"https://github.com/nikhilsbhat/gocd-cli","last_synced_at":"2026-01-31T15:38:24.263Z","repository":{"id":137359581,"uuid":"600440169","full_name":"nikhilsbhat/gocd-cli","owner":"nikhilsbhat","description":"A command-line tool for interacting with GoCD","archived":false,"fork":false,"pushed_at":"2025-07-31T14:34:46.000Z","size":1421,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T17:53:58.200Z","etag":null,"topics":["cd","ci","ci-server","cicd","command-line","continuous-delivery","continuous-integration","create","delete","diff","go-cont","gocd","gocd-cli","golang","update"],"latest_commit_sha":null,"homepage":"https://github.com/nikhilsbhat/gocd-cli/blob/main/docs/doc/gocd-cli.md","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/nikhilsbhat.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T13:59:39.000Z","updated_at":"2025-07-07T13:18:46.000Z","dependencies_parsed_at":"2024-01-02T04:26:54.064Z","dependency_job_id":"70047257-c3a2-4aae-87ef-ae26ead6d706","html_url":"https://github.com/nikhilsbhat/gocd-cli","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/nikhilsbhat/gocd-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilsbhat%2Fgocd-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilsbhat%2Fgocd-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilsbhat%2Fgocd-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilsbhat%2Fgocd-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikhilsbhat","download_url":"https://codeload.github.com/nikhilsbhat/gocd-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikhilsbhat%2Fgocd-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28946780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cd","ci","ci-server","cicd","command-line","continuous-delivery","continuous-integration","create","delete","diff","go-cont","gocd","gocd-cli","golang","update"],"created_at":"2026-01-31T15:38:21.786Z","updated_at":"2026-01-31T15:38:24.257Z","avatar_url":"https://github.com/nikhilsbhat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoCD commandline interface\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/nikhilsbhat/gocd-cli)](https://goreportcard.com/report/github.com/nikhilsbhat/gocd-cli)\n[![shields](https://img.shields.io/badge/license-MIT-blue)](https://github.com/nikhilsbhat/gocd-cli/blob/main/LICENSE)\n[![shields](https://godoc.org/github.com/nikhilsbhat/gocd-cli?status.svg)](https://godoc.org/github.com/nikhilsbhat/gocd-cli)\n[![shields](https://img.shields.io/github/v/tag/nikhilsbhat/gocd-cli.svg)](https://github.com/nikhilsbhat/gocd-cli/tags)\n[![shields](https://img.shields.io/github/downloads/nikhilsbhat/gocd-cli/total.svg)](https://github.com/nikhilsbhat/gocd-cli/releases)\n\ncommand-line interface for `GoCD` that helps in interacting with [GoCD](https://www.gocd.org/) server.\n\n## Introduction\n\nWhile GoCD offers a user interface for performing various tasks, this CLI is designed for administrators responsible for managing GoCD.\nIt aims to provide CLI-based functionality equivalent to the UI.\n\nThis tool communicates with the `GoCD` server's API to perform tasks such as encrypting and decrypting secrets, retrieving lists of pipelines, creating configuration repositories, and more.\n\nThis CLI utilizes the GoCD Golang [SDK](https://github.com/nikhilsbhat/gocd-sdk-go). If you encounter a bug with the CLI, it likely originates from the SDK.\n\n## Requirements\n\n* [Go](https://golang.org/dl/) 1.17 or above . Installing go can be found [here](https://golang.org/doc/install).\n* Basic understanding of CI/CD server [GoCD](https://www.gocd.org/) and GoCD golang [sdk](https://github.com/nikhilsbhat/gocd-sdk-go).\n\n## Authorization\n\nThe authorization configuration for GoCD can be locally cached for future use, streamlining subsequent operations.\n\nThe command `auth-config` will do the work.\n\n```shell\n# Running the below command should cache configurations under $HOME/.gocd/auth_config.default.yaml.\n# Here 'default' is the profile of GoCD. And profile would help in handling multiple GoCD server with same CLI.\n# If no profile is set, it defaults to 'default'. The profile can be set using flag '--profile'.\ngocd-cli auth-config store --server-url \u003cgocd-url\u003e --username \u003cusername\u003e --password \u003cpassword\u003e\n\n# Running below command by setting --profile would save cache under $HOME/.gocd/auth_config.central.yaml.\ngocd-cli auth-config store --server-url \u003cgocd-url\u003e --username \u003cusername\u003e --password \u003cpassword\u003e --profile central\n\n# User creds cached can be validated using below command.\ngocd-cli who-am-i\n# The response to the above command should be:\n# user: admin\n\n# Once we have authorization configurations cached, we do not need to pass the credentials every time we invoke the cli.\ngocd-cli environment list\n```\n\n## Update\n\nThe `gocd-cli` will display any pending updates in a diff format, similar to how it is commonly done in other CLI tools such as Terraform.\n\n![update](assets/gocd-cli-update-feature.gif)\n\n## Documentation\n\nUpdated documentation on all available commands and flags can be found [here](https://github.com/nikhilsbhat/gocd-cli/blob/main/docs/doc/gocd-cli.md).\n\n## Installation\n\n* Recommend installing released versions. Release binaries are available on the [releases](https://github.com/nikhilsbhat/gocd-cli/releases) page.\n\n#### Homebrew\n\nInstall `gocd-cli` on `macOS`\n\n```shell\nbrew tap nikshilsbhat/stable git@github.com:nikhilsbhat/homebrew-stable.git\n# for latest version\nbrew install nikshilsbhat/stable/gocd-cli\n# for specific version\nbrew install nikshilsbhat/stable/gocd-cli@0.2.5\n```\n\nCheck [repo](https://github.com/nikhilsbhat/homebrew-stable) for all available versions of the formula.\n\n#### Docker\n\nLatest version of docker images are published to [ghcr.io](https://github.com/nikhilsbhat/gocd-cli/pkgs/container/gocd-cli), all available images can be found there. \u003c/br\u003e\n\n```bash\ndocker pull ghcr.io/nikhilsbhat/gocd-cli:latest\ndocker pull ghcr.io/nikhilsbhat/gocd-cli:\u003cgithub-release-tag\u003e\n```\n\n#### Build from Source\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/nikhilsbhat/gocd-cli.git\n    cd gocd-cli\n    ```\n2. Build the project:\n    ```sh\n    make local.build\n    ```\n\n### Note\n\n* The `gocd-cli pipeline validate-syntax` command uses the GoCD plugin binary to validate the pipeline's syntax.\n* Since the plugins are in JAR format, Java must be installed on the machine where the command will be executed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhilsbhat%2Fgocd-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikhilsbhat%2Fgocd-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikhilsbhat%2Fgocd-cli/lists"}