---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/reference/ydb-cli/commands/config-info.md?version=v25.4
  - https://ydb.tech/docs/ru/reference/ydb-cli/commands/config-info.md?version=v25.4
  - href: ru/reference/ydb-cli/commands/config-info.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: ru/core/reference/ydb-cli/commands/config-info.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/ru/llms.txt

# Просмотр параметров соединения

`config info` — это сервисная команда для отладки различных проблем с [соединением и аутентификацей](https://ydb.tech/docs/ru/reference/ydb-cli/connect.md?version=v25.4). Команда выводит итоговые параметры соединения, вроде [эндпоинта](https://ydb.tech/docs/ru/concepts/connect.md?version=v25.4#endpoint) и [пути базы данных](https://ydb.tech/docs/ru/concepts/connect.md?version=v25.4#database), полученные рассмотрением параметров из всевозможных источников. С этими параметрами CLI подключилась бы при выполнении команды, подразумевающей соединение с базой данных. При указании [глобальной опции](https://ydb.tech/docs/ru/reference/ydb-cli/commands/global-options.md?version=v25.4) `-v`, помимо итоговых параметров соединения, будут выведены значения всех параметров соединения из всех источников, которые CLI смог обнаружить, вместе с названиями этих источников, в порядке приоритета.

Общий вид команды:

```bash
ydb [global options...] config info
```

* `global options` — [глобальные параметры](https://ydb.tech/docs/ru/reference/ydb-cli/commands/global-options.md?version=v25.4).

## Список параметров соединения {#parameters-list}

* [endpoint](https://ydb.tech/docs/ru/concepts/connect.md?version=v25.4#endpoint) — URL кластера базы данных.
* [database](https://ydb.tech/docs/ru/concepts/connect.md?version=v25.4#database) — Путь к базе данных.
* **Параметры аутентификации:**
  * [token](https://ydb.tech/docs/ru/security/authentication.md?version=v25.4#iam) — Access Token.
  * [yc-token](https://ydb.tech/docs/ru/security/authentication.md?version=v25.4#iam) — Refresh Token.
  * [sa-key-file](https://ydb.tech/docs/ru/security/authentication.md?version=v25.4#iam) — Service Account Key.
  * [use-metadata-credentials](https://ydb.tech/docs/ru/security/authentication.md?version=v25.4#iam) — Metadata.
  * [user](https://ydb.tech/docs/ru/security/authentication.md?version=v25.4#static-credentials)
  * [password](https://ydb.tech/docs/ru/security/authentication.md?version=v25.4#static-credentials)
* [ca-file](https://ydb.tech/docs/ru/concepts/connect.md?version=v25.4#tls-cert) — Корневой сертификат.
* [iam-endpoint](https://ydb.tech/docs/ru/security/authentication.md?version=v25.4#iam) — URL IAM сервиса.

## Примеры {#examples}

### Вывод итоговых параметров соединения {#basic-example}

```bash
$ ydb -e grpcs://another.endpoint:2135 --ca-file some_certs.crt -p db123 config info
endpoint: another.endpoint:2135
yc-token: SOME_A12****************21_TOKEN
iam-endpoint: iam.api.cloud.yandex.net
ca-file: some_certs.crt
```

### Вывод всех параметров соединения вместе с источниками {#verbose-example}

```bash
$ ydb -e grpcs://another.endpoint:2135 --ca-file some_certs.crt -p db123 -v config info
Using Yandex.Cloud Passport token from YC_TOKEN env variable

endpoint: another.endpoint:2135
yc-token: SOME_A12****************21_TOKEN
iam-endpoint: iam.api.cloud.yandex.net
ca-file: some_certs.crt
current auth method: yc-token

"ca-file" sources:
  1. Value: some_certs.crt. Got from: explicit --ca-file option

"database" sources:
  1. Value: /some/path. Got from: active profile "test_config_info"

"endpoint" sources:
  1. Value: another.endpoint:2135. Got from: explicit --endpoint option
  2. Value: db123.endpoint:2135. Got from: profile "db123" from explicit --profile option
  3. Value: some.endpoint:2135. Got from: active profile "test_config_info"

"iam-endpoint" sources:
  1. Value: iam.api.cloud.yandex.net. Got from: default value

"sa-key-file" sources:
  1. Value: /Users/username/some-sa-key-file. Got from: active profile "test_config_info"

"yc-token" sources:
  1. Value: SOME_A12****************21_TOKEN. Got from: YC_TOKEN enviroment variable
```
