a fluent CLI-based access to GoCD API for managing your CI.
$ npm install -g gocd
First you need to configure GoCD CLI to access your GoCD server application.
gocd configure --location='https://build.gocd.org' --username='admin' --password='badger'
Now you are able to use the various commands.
gocd get agent --uuid="ee9f822b-eb66-4c1b-996b-c9e62a9e4241"
gocd list agents
gocd list agents --state='Missing'
gocd get template --name="Dev"
gocd list templates
gocd get environment -n 'dev'
gocd list environments
gocd get pipeline --name='up42'
gocd trigger pipeline --name='up42'
gocd status pipeline --name='up42'
gocd status stage --pipeline_name="up42" --stage_name="up42_stage"
gocd status job --pipeline_name="up42" --stage_name="up42_stage" --job_name="up42_job"
gocd --help