From 6eb4d1719a0ba0df675899c9a70bc18bf286ff07 Mon Sep 17 00:00:00 2001 From: Navarone Feekery <13634519+navarone-feekery@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:24:35 +0100 Subject: [PATCH] Update docs (#3114) --- docs/CLI.md | 22 +++++++++++----------- docs/DEVELOPING.md | 2 +- scripts/testing/README.md | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/CLI.md b/docs/CLI.md index e6a0c7fdc..fc4022b03 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -16,23 +16,23 @@ Connectors CLI helps with Elastic Connectors managing connectors and running syn ## Installation 1. Clone the repository `git clone https://github.com/elastic/connectors.git` 2. Run `make clean install` to install dependencies and create executable files. -3. Connectors CLI is available via `./bin/connectors` +3. Connectors CLI is available via `.venv/bin/connectors` ## Configuration **Note:** Make sure your Elasticsearch instance is up and running. -1. Run `./bin/connectors login` to authenticate the CLI with an Elasticsearch instance. +1. Run `.venv/bin/connectors login` to authenticate the CLI with an Elasticsearch instance. 2. Provide credentials 3. The command will create or ask to rewrite an existing configuration file in `./cli/config.yml` By default, the CLI uses basic authentication method (username, password) however an API key can be used too. -Run `./bin/connectors login --method apikey` to authenticate the CLI via your API key. +Run `.venv/bin/connectors login --method apikey` to authenticate the CLI via your API key. When you run any command you can specify a configuration file using `-c` argument. Example: ```bash -./bin/connectors -c connector list +.venv/bin/connectors -c connector list ``` ## Available commands @@ -41,7 +41,7 @@ Connectors CLI provides a `--help`/`-h` argument that can be used with any comma For example: ```bash -./bin/connectors --help +.venv/bin/connectors --help Usage: connectors [OPTIONS] COMMAND [ARGS]... @@ -76,7 +76,7 @@ To bypass interactive mode you can use the `--from-file` argument, pointing to a Examples: ```console -./bin/connectors connector create \ +.venv/bin/connectors connector create \ --index-name my-index \ --service-type sharepoint_online \ --index-language en \ @@ -95,7 +95,7 @@ Lists all the existing connectors Examples: ```console -./bin/connectors connector list +.venv/bin/connectors connector list ``` This will display all existing connectors and the associated indices. @@ -105,7 +105,7 @@ Lists all jobs and their stats. Examples ```console -./bin/connectors job list -- +.venv/bin/connectors job list -- ``` This will display all sync jobs including information like job status, number of indexed documents and index data volume associated with `connector_id`. @@ -116,7 +116,7 @@ Marks the job as `cancelling` to let Connector services know that the job has to Examples: ```console -./bin/connectors job cancel -- +.venv/bin/connectors job cancel -- ``` #### `connectors job start` @@ -125,7 +125,7 @@ Schedules a new sync job and lets Connector service pick it up. Examples: ```console -./bin/connectors job start -- \ +.venv/bin/connectors job start -- \ -i \ -t \ -o @@ -139,7 +139,7 @@ Shows information about a sync job. Examples: ```console -./bin/connectors job view -- -o -o