Managing profiles

A profile is a saved and locally named configuration of DB connection parameters. With profiles, you can reuse data about DB location and authentication parameters, making a CLI call much shorter:

  • Calling the scheme ls command without a profile:

1. ydb \ 2. -e grpsc://some.host.in.some.domain:2136 \ 3. -d /some_long_identifier1/some_long_identifier2/database_name \ 4. --yc-token-file ~/secrets/token_database1 \ 5. scheme ls

Overview - 图1 - Calling the same scheme ls command using a profile:

1. ydb --profile db1 scheme ls

Overview - 图2

Profile management commands

Where profiles are stored

Profiles are stored locally in a file named ~/ydb/config/config.yaml.