summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralextarazanov <[email protected]>2022-11-08 17:25:59 +0300
committeralextarazanov <[email protected]>2022-11-08 17:25:59 +0300
commit9e7da59d8ee6574244def13568865416e89a5a07 (patch)
tree9615a118c4ee2cc3029d093197c7e7ec3a0e5092
parent7edf3feae8880fd08afb5d90ca4de2f557dba5ab (diff)
[review] [YDB] Check "ydb docs cli profile create non-interactive" translate
Лог локальной сборки без ошибок.
-rw-r--r--ydb/docs/en/core/getting_started/_includes/cli.md8
-rw-r--r--ydb/docs/en/core/reference/ydb-cli/profile/_includes/index.md2
2 files changed, 7 insertions, 3 deletions
diff --git a/ydb/docs/en/core/getting_started/_includes/cli.md b/ydb/docs/en/core/getting_started/_includes/cli.md
index 1b247c8a051..d04430b561d 100644
--- a/ydb/docs/en/core/getting_started/_includes/cli.md
+++ b/ydb/docs/en/core/getting_started/_includes/cli.md
@@ -55,10 +55,14 @@ To avoid specifying connection parameters every time you call the YDB CLI, use t
[Create the profile](../../reference/ydb-cli/profile/create.md) `db1` using the following command:
```bash
-{{ ydb-cli }} config profile create db1
+{{ ydb-cli }} config profile create db1 -e <endpoint> -d <database>
```
-You will be interactively prompted for connection parameters to be linked with the profile. Use for them the values verified in the [previous step](#ping).
+Use the values checked at the [previous step](#ping) as parameters. For example, to create a connection profile to a local YDB database created using the self-hosted deployment scenario [in Docker](../self_hosted/ydb_docker.md), run the following command:
+
+```bash
+{{ ydb-cli }} config profile create db1 -e grpc://localhost:2136 -d /local
+```
Check that the profile is OK with the `scheme ls` command:
diff --git a/ydb/docs/en/core/reference/ydb-cli/profile/_includes/index.md b/ydb/docs/en/core/reference/ydb-cli/profile/_includes/index.md
index 7c5f9e51fe0..033fa4939b4 100644
--- a/ydb/docs/en/core/reference/ydb-cli/profile/_includes/index.md
+++ b/ydb/docs/en/core/reference/ydb-cli/profile/_includes/index.md
@@ -15,7 +15,7 @@ A profile is a saved and locally named configuration of DB connection parameters
- Calling the same `scheme ls` command using a profile:
```bash
- {{ ydb-cli }} --profile db1 scheme ls
+ {{ ydb-cli }} -p db1 scheme ls
```
## Profile management commands {#commands}