Getting profile information

Getting a list of profiles

Getting a list of profiles:

  1. ydb config profile list

Getting profile information - 图1

If there is a currently activated profile, it will be marked as (active) in the output list, for example:

  1. prod
  2. test (active)
  3. local

Getting profile information - 图2

Getting detailed profile information

Getting parameters saved in the specified profile:

  1. ydb config profile get <profile_name>

Getting profile information - 图3

For example:

  1. $ ydb config profile get local1
  2. endpoint: grpcs://ydb.serverless.yandexcloud.net:2135
  3. database: /rul1/b1g8skp/etn02099
  4. sa-key-file: /Users/username/secrets/sa_key_test.json

Getting profile information - 图4

Getting profiles with content

Full information on all profiles and parameters stored in them:

  1. ydb config profile list --with-content

Getting profile information - 图5

The output of this command combines the output of the command to get a list of profiles (with the active profile marked) and the parameters of each profile in the lines following its name.