Skip to content
Permalink
Browse files
Merge apache-brooklyn/master as at commit 42aa827
  • Loading branch information
richardcloudsoft committed Feb 25, 2021
2 parents c08d9b8 + 42aa827 commit dae7d770cc00c47a6cc1865506183c9f851a6f08
Showing 2 changed files with 9 additions and 3 deletions.
@@ -115,10 +115,16 @@ policy pol
### Login

- `br login <URL> [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.
Login to Brooklyn using basic authorization (implicit --authorization=Basic). 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 login <URL> --authorization=Bearer:<JWT-token>`
Login to Brooklyn using oauth. The CLI will try to use the provided token for login in the Brooklyn server.
On successful login, the version of the connected Brooklyn server is shown. If not, it will show the server error
response

- `br version`
Show the version of the connected Brooklyn server.

@@ -24,7 +24,7 @@ conjunction with a shell pipeline like `some_command | cut -f 1 -d '|' | xargs -

## Login
First, login to the running Brooklyn server. This example assumes that the Brooklyn server
is running on `localhost`; change the URL and credentials as necessary.
is running on `localhost` configured to use basic authorization; change the URL and credentials as necessary.

{% highlight text %}
$ br login http://localhost:8081 admin

0 comments on commit dae7d77

Please sign in to comment.