GithubHelp home page GithubHelp logo

isabella232 / v3-cli-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry-attic/v3-cli-plugin

0.0 0.0 0.0 64.86 MB

CF CLI plugin for v3 of the CF Cloud Controller API

License: Apache License 2.0

Go 100.00%

v3-cli-plugin's Introduction

V3_beta

This is a Cloud Foundry CLI plugin for v3 of the CF Cloud Controller API. Both it and the V3 api are currently under active development, so stability isn't guaranteed. Please use caution when using this plugin and the V3 api in general.

Commands

v3-push

Syntax: cf v3-push APPNAME /path/to/app.zip

Pushes, maps a route, and starts the zipped app as a V3 app and associated V3 processes. Currently tries to push to the default domain of your currently targeted Cloud Foundry.

Syntax: cf v3-push APPNAME -di "path/to/docker/image"

Pushes, maps a route, and starts the provided docker image as a V3 app and associated V3 processes. Currently tries to push to the default domain of your currently targeted Cloud Foundry.

Other Options:

-b : Custom buildpack by name (e.g. my-buildpack) or Git URL

v3-delete

Syntax: cf v3-delete APPNAME

Deletes the specified V3 app

v3-apps

Syntax: cf v3-apps

Shows v3 apps running in the currently targeted space.

v3-processes

Syntax: cf v3-processes

Shows all v3 processes and v2 apps running in the currently targeted space.

v3-logs

Syntax: cf v3-logs APPNAME

Tails logs for all processes of the specified V3 app.

v3-tasks

Syntax: cf v3-tasks APPNAME

Shows tasks for the specified V3 app.

v3-run-task

Syntax: cf v3-run-task APPNAME TASKNAME COMMAND

Run a task for an app.

v3-cancel-task

Syntax: cf v3-cancel-task APPNAME TASKNAME

Cancel a task for an app.

v3-bind-service

Syntax: cf v3-bind-service APPNAME SERVICEINSTANCE [-c PARAMETERS_AS_JSON]

Binds a service instance to a v3 app.

Installing

Examples are for Mac, replace the URL extension with the appropriate (windows, linux) one.

cf install-plugin https://github.com/cloudfoundry/v3-cli-plugin/releases/download/0.6.8/v3-cli-plugin.osx

If you have already installed the plugin, you must uninstall it before installing an updated version

cf uninstall-plugin v3_beta

If you love copy-pasting and want all the things

cf uninstall-plugin v3_beta; cf install-plugin https://github.com/cloudfoundry/v3-cli-plugin/releases/download/0.6.8/v3-cli-plugin.osx -f

Contributing

Members of the CF CAPI team should have access. If you do end up making changes, please follow these steps:

  1. Make your changes
  2. Bump the version number in v3.go
  3. Commit your changes

Releases are made by the team and uploaded to https://github.com/cloudfoundry/v3-cli-plugin/releases when necessary.

Running tests

  1. Install Ginkgo
  2. Run ginkgo -r in the root directory

Creating a Release

Build the plugin using the following commands.

GOOS=linux GOARCH=amd64 go build -o v3-cli-plugin.linux &&
GOOS=windows GOARCH=amd64 go build -o v3-cli-plugin.exe &&
GOOS=darwin GOARCH=amd64 go build -o v3-cli-plugin.osx

Draft a new release in github using the compiled plugins.

v3-cli-plugin's People

Contributors

ardnaxelarak avatar ericpromislow avatar fkotsian avatar gerg avatar jberkhahn avatar ljfranklin avatar luan avatar mikexuu avatar rainmaker avatar rizwanreza avatar socalnick avatar utako avatar wendorf avatar zrob avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.