GithubHelp home page GithubHelp logo

cli's Introduction

                                  _
                                 | |
         _           ___ ___   __| | ___ _ ____   ___   _
 {    ('   )    }   / __/ _ \ / _` |/ _ \ '_ \ \ / / | | |
{{  ('       )  }} | (_| (_) | (_| |  __/ | | \ V /| |_| |
 { (__,__,__,_) }   \___\___/ \__,_|\___|_| |_|\_/  \__, |
                                                     __/ |
                                                    |___/

Codenvy command line interface V2

CLI

Documentation for the CLI can be found on http://docs.codenvy.com/cli

CLI Syntax documentation: http://docs.codenvy.com/cli/cli-syntax/

Quick Start for the developer


Building

  1. Checkout of the project: git clone https://github.com/codenvy/cli
  2. Build: mvn clean install

Running

  1. Launch from the root directory of the project:

./codenvy

./codenvy command-name

(if no command is entered (like help) cli will use interactive mode)

Developing a new command

Apache Karaf is used for providing the Codenvy CLI.

New command

When adding a new builtin command, the following files need to be modified :

  • command/src/main/resources/OSGI-INF/blueprint/shell-log.xml
  • command/src/main/resources/META-INF/services/org/apache/karaf/shell/commands

The first one is for providing the command to Interactive/OSGi mode and the next one is for providing the command to the default CLI shell in non-interactive mode.

Advanced help

The guide to develop karaf command is available at http://karaf.apache.org/manual/latest/developers-guide/extending.html

There is also codenvy command stack-traces-print to enable printing stacktraces.

Timeouts

With system properties you can increase timeout, else it's default timeout of the JVM

http://docs.oracle.com/javase/8/docs/technotes/guides/net/properties.html sun.net.client.defaultConnectTimeout sun.net.client.defaultReadTimeout

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.