gocd

0.3.0 • Public • Published

GoCD CLI Build Status npm version Coverage Status License

a fluent CLI-based access to GoCD API for managing your CI.

Installation

$ npm install -g gocd

Quick Start

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.

Interact with Agents

gocd get agent --uuid="ee9f822b-eb66-4c1b-996b-c9e62a9e4241"
gocd list agents
gocd list agents --state='Missing'

Interact with Templates

gocd get template --name="Dev"
gocd list templates

Interact with Environments

gocd get environment -n 'dev'
gocd list environments

Interact with Pipelines

gocd get pipeline --name='up42' 

Trigger

gocd trigger pipeline --name='up42'

Status

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"

help

gocd --help

Readme

Keywords

Package Sidebar

Install

npm i gocd

Weekly Downloads

4

Version

0.3.0

License

ISC

Last publish

Collaborators

  • ganeshpl