Diego-Beta CLI Plugin

November 21, 2015 ยท View on GitHub

This plugin is for CLI v6.12.4 and older. It has been replaced by CLI v6.13.0+, which incorporates some of the commands from this plugin, and the Diego-Enabler plugin, which includes the enable-diego and disable-diego commands.

This plugin enable Diego-specific features, and also allows pushing docker image. For more detail information of running apps on Diego, see here

##Installation

#####Install from Url (v.6.8.0+) OSX

cf install-plugin https://github.com/cloudfoundry-incubator/diego-cli-plugin/raw/master/bin/osx/diego-beta.osx

linux64:

cf install-plugin https://github.com/cloudfoundry-incubator/diego-cli-plugin/raw/master/bin/linux64/diego-beta.linux64

windows64:

cf install-plugin https://github.com/cloudfoundry-incubator/diego-cli-plugin/raw/master/bin/win64/diego-beta.win64

#####Install from Binary file (v.6.7.0)

  • Download the binary win64 linux64 osx
  • Install plugin $ cf install-plugin <binary_name>

##Full Command List

commandusagedescription
enable-diegocf enable-diego App_Nameenable diego for an app
disable-diegocf disable-diego App_Namedisable diego for an app
has-diego-enabledcf has-diego-enabled App_Namecheck if diego is enabled for an app
set-health-checkcf set-health-check App_Name portset health_check_type flag to either port or none
get-health-checkcf get-health-check App_Nameget value of health_check_type flag for an app
docker-pushcf docker-push APP_NAME DOCKER_IMAGE [Options]

Usage:
cf docker-push test-app user/docker_path -c run.sh
push a docker image as an app

Options:
-c: set start command
--no-start: Do not start app after push
--no-route: Do not create route for app