Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B2BE18B8B for ; Mon, 21 Dec 2015 21:14:11 +0000 (UTC) Received: (qmail 61771 invoked by uid 500); 21 Dec 2015 21:14:11 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 61738 invoked by uid 500); 21 Dec 2015 21:14:11 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 61727 invoked by uid 99); 21 Dec 2015 21:14:10 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2015 21:14:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 56FF5C089E for ; Mon, 21 Dec 2015 21:14:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id j-HWSeFD29PN for ; Mon, 21 Dec 2015 21:13:58 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 2383E439AA for ; Mon, 21 Dec 2015 21:13:58 +0000 (UTC) Received: (qmail 61630 invoked by uid 99); 21 Dec 2015 21:13:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2015 21:13:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7A966E0946; Mon, 21 Dec 2015 21:13:57 +0000 (UTC) From: shartzel To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: Add CLI documentation to the Oper... Content-Type: text/plain Message-Id: <20151221211357.7A966E0946@git1-us-west.apache.org> Date: Mon, 21 Dec 2015 21:13:57 +0000 (UTC) Github user shartzel commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/1118#discussion_r48192788 --- Diff: docs/guide/ops/cli/cli-ref-guide.md --- @@ -0,0 +1,310 @@ +--- +title: CLI Reference Guide +layout: website-normal +menu_parent: index.md +children: +- { section: List of Commands } +- { section: Scopes } +- { section: Abbreviations} +- { section: Command Reference } +- { section: Login} +- { section: Applications} +- { section: Entities} +- { section: Sensors} +- { section: Effectors} +- { section: Policies} +- { section: Activities} +- { section: Miscellaneous} +--- + +## Usage +{% highlight text %} +NAME: + br - A Brooklyn command line client application + +USAGE: + br [global options] command [command options] [arguments...] +{% endhighlight %} + +## List of Commands +Commands whose description begins with a `*` character are particularly experimental +and likely to change in upcoming releases. + +{% highlight text %} +COMMANDS: + + access Show access control + activity Show the activity for an application / entity + add-catalog * Add a new catalog item from the supplied YAML + add-children * Add a child or children to this entity from the supplied YAML + application Show the status and location of running applications + catalog * List the available catalog applications + config Show the config for an application or entity + delete * Delete (expunge) a brooklyn application + deploy Deploy a new application from the given YAML (read from file or stdin) + destroy-policy Destroy a policy + effector Show the effectors for an application or entity + entity Show the entities of an application or entity + env Show the ENV stream for a given activity + invoke Invoke an effector of an application and entity + locations * List the available locations + login Login to brooklyn + policy Show the policies for an application or entity + rename Rename an application or entity + restart Invoke restart effector on an application and entity + sensor Show values of all sensors or named sensor for an application or entity + set Set config for an entity + spec Get the YAML spec used to create the entity, if available + start Invoke start effector on an application and entity + start-policy Start or resume a policy + stderr Show the STDERR stream for a given activity + stdin Show the STDIN stream for a given activity + stdout Show the STDOUT stream for a given activity + stop Invoke stop effector on an application and entity + stop-policy Suspends a policy + tree * Show the tree of all applications + version Display the version of the connected Brooklyn + help + +GLOBAL OPTIONS: + --help, -h show help + --version, -v print the version +{% endhighlight %} + + +## Scopes +Many commands require a "scope" expression to indicate the target on which they operate. +Where this +is required the usage statements below will use the shorthand nomenclature of ``. +The various scopes should be replaced on the command line as: + +- `` + `application ` + +- `` + `application entity ` + +- `` + `application effector ` + `application entity effector ` + +- `` + `application entity config ` + +- `` + `activity ` + `application entity activity ` + +## Abbreviations +Many of the commands and scopes have shortened aliases: + +{% highlight text %} +activity act +application app +entity ent +policy pol +{% endhighlight %} + +## Command Reference + +### Login + +- `br login [username [password]]` + Login to Brooklyn. The CLI will prompt for a password if it is not provided. If the Brooklyn server is running on localhost with no security enabled, the username and password may be omitted. + On successful login, the version of the connected Brooklyn server is shown. + +- `br version` + Show the version of the connected Brooklyn server. + +### Applications + +- `br deploy ( | - )` + Deploy an application based on the supplied YAML file or read from STDIN when `-` is given instead of a file name. + +- `br application` + List the running applications. + +- `br application ` + Show the detail for an application. + +- `br config` + Show the configuration details for an application. + +- `br config ` + Show the value for a configuration item. + +- `br spec` + Show the YAML specification used to create the application. + +- `br rename ` + Rename the application to . + +- `br stop` + Stop an application. See below for further information on the `stop` effector. + +- `br start` + Start an application. See below for further information on the `start` effector. + +- `br restart` + Restart an application. See below for further information on the `restart` effector. + +- `br delete` + Delete an application from Brooklyn. + **NOTE:** Use this command with care. Even if the application / entities are still running, Brooklyn will drop all knowledge of them and they will be left running in an 'orphaned' state. + +### Entities + +- `br entity` + List the child entities for an application. + +- `br entity` + List the child entities for an entity. + +- `br entity ` + Show the detail of an entity --- End diff -- End line with period. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---