Using a profile
For example:
In this case, all DB connection parameters are taken from the profile. At the same time, if the authentication parameters are not specified in the profile, the YDB CLI will try to define them based on environment variables, as described in .
Apart from the option, there may be other connection parameters specified in the command line. For example:
In this case, the connection parameters specified in the command line have priority over those stored in the profile. This format lets you reuse profiles to connect to different databases or under different accounts. In addition, specifying the authentication parameter in the command line (such as in the example above) disables environment variable checks regardless of their presence in the profile.
Implicit use of the activated profile may cause errors, so we recommend that you read the Activated profile article before using this mode.