Managing profiles

A profile is a named set of DB connection parameters stored in a configuration file in the local file system. 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:

    ydb \
    -e grpsc:// \
    -d /some_long_identifier1/some_long_identifier2/database_name \
    --yc-token-file ~/secrets/token_database1 \
    scheme ls
  • Calling the same scheme ls command using a profile:

    ydb -p db1 scheme ls

Profile management commands

Where profiles are stored

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