knap-cli

command module
v0.0.0-...-9910d8e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

knap-cli

This is the repo for knap command line:

knap_cli

Command Overview

✔ $ ./knap-cli
knap-cli is used to create and manage knap application easily

Usage:
  knap [command]

Available Commands:
  bindService [Not implemented] Bind a service to one application
  create      Create a new knap appengine
  delete      Delete a knap appengine
  edit        Edit a knap appengine
  get         Get a knap appengine detail
  help        Help about any command
  list        List all knap appengines
  logs        Get a knap appengine logs
  marketplace [Not implemented] Show service marketplace
  services    [Not implemented] Show all services
  spaces      [Not implemented] Show all spaces
  templates   List all knap templates
  version     Print the version number of knap cli

Flags:
      --config string   config file (default is $HOME/.knap.yaml)
  -h, --help            help for knap
  -v, --verbose         Print API request diagnostics to stdout

Use "knap [command] --help" for more information about a command.

Create a new application

✘-1 $ ./knap-cli create helloworld -r https://github.com/bluebosh/knap-example -v master -s 2 -t build-and-deploy-pipeline
Application engine helloworld is created successfully

List all applications

✔ $ ./knap-cli list
Application Name              Version             Ready               Instance            Domain
helloworld-appengine          1                   Running             1/2                 helloworld-default.knativepipeline.us-south.containers.appdomain.cloud
picalc-appengine              1                   Running             1/1                 picalc-default.knativepipeline.us-south.containers.appdomain.cloud

There are 2 application engine(s)

Get an application

✔ $ ./knap-cli get helloworld-appengine
Application Name:              helloworld-appengine
Application Version:           1
Application Git Repo:          https://github.com/bluebosh/knap-example
Application Git Revision:      master
Application Template:          build-and-deploy-pipeline
Application Ready:             Running
Application Status:            Succeeded
Application Instance:          1
Application Size:              2
Application Domain:            https://helloworld-default.knativepipeline.us-south.containers.appdomain.cloud

Show all application templates

✔ $ ./knap-cli templates
Template Name                           Template Flow
build-and-deploy-pipeline               source-to-image -> deploy-to-cluster
build-and-deploy-test-pipeline          source-to-image -> deploy-to-cluster -> test-on-cluster
more-complex-pipeline                   source-to-image -> deploy-to-cluster -> blue-green-upgrade

There are 3 template(s)

Documentation

Overview

Copyright © 2019 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL