Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Update README.md #222

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,36 @@ Users can run this CLI from MacOS, Windows, Linux and connect to any valid Elast

Launch your local Elasticsearch instance and make sure you have the Open Distro for Elasticsearch AD plugin installed.

To install the AD CLI:
To install and set-up AD CLI:


1. Install from source:
1. Download and extract esad Binaries

```
$ go get github.com/opendistro-for-elasticsearch/anomaly-detection/cli
Download esad binaries suitable for your system from https://github.com/opendistro-for-elasticsearch/anomaly-detection/actions/runs/224422434
```

2. Make esad executable

```
chmod +x ./esad

```
3. Move the binary in to your PATH for sudo users.
```
sudo mv ./esad /usr/local/bin/esad
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requires user have enough permission to move esad to local bin folder. How about add another option for user who has no sudo permission? Will be a blocker for some user if AD CLI must need sudo permission.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack


```
or, add current path to your PATH
```
export PATH=$PATH:$(pwd)
```
4. Verify that you've installed esad by typing the following command
```
esad --version
```

5. Confirm that the command prints the installed version of esad.

## Configure

Expand Down