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

# Displaying connection parameters

`config info` is a service command for debugging various issues with [connection and authentication](https://ydb.tech/docs/en/reference/ydb-cli/connect.md?version=v25.3). The command displays the final connection parameters, such as the [endpoint](https://ydb.tech/docs/en/concepts/connect.md?version=v25.3#endpoint) and [database path](https://ydb.tech/docs/en/concepts/connect.md?version=v25.3#database), obtained by considering parameters from all possible sources. With these parameters, the CLI would connect when executing a command that implies a connection to the database. When specifying the [global option](https://ydb.tech/docs/en/reference/ydb-cli/commands/global-options.md?version=v25.3) `-v`, in addition to the final connection parameters, values of all connection parameters from all sources that the CLI managed to detect will be displayed, along with the names of those sources in order of priority

General format of the command:

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

* `global options` — [global parameters](https://ydb.tech/docs/en/reference/ydb-cli/commands/global-options.md?version=v25.3).

## Connection parameter list {#parameters-list}

* [endpoint](https://ydb.tech/docs/en/concepts/connect.md?version=v25.3#endpoint) — URL of database cluster.
* [database](https://ydb.tech/docs/en/concepts/connect.md?version=v25.3#database) — Database path.
* Authentication parameters:

  * [token](https://ydb.tech/docs/en/security/authentication.md?version=v25.3#iam) — Access Token.
  * [yc-token](https://ydb.tech/docs/en/security/authentication.md?version=v25.3#iam) — Refresh Token.
  * [sa-key-file](https://ydb.tech/docs/en/security/authentication.md?version=v25.3#iam) — Service Account Key.
  * [use-metadata-credentials](https://ydb.tech/docs/en/security/authentication.md?version=v25.3#iam) — Metadata.
  * [user](https://ydb.tech/docs/en/security/authentication.md?version=v25.3#static-credentials)
  * [password](https://ydb.tech/docs/en/security/authentication.md?version=v25.3#static-credentials)

* [ca-file](https://ydb.tech/docs/en/concepts/connect.md?version=v25.3#tls-cert) — Root certificate.
* [iam-endpoint](https://ydb.tech/docs/en/security/authentication.md?version=v25.3#iam) — URL of IAM service.

## Examples {#examples}

### Display final connection parameters {#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
```

### Display all connection parameters along with their sources {#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
```
