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:ydb \
-e grpsc://some.host.in.some.domain:2136 \
-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 --profile db1 scheme ls
Profile management commands
- Creating a profile
- Using a profile
- Getting a list of profiles and profile parameters
- Deleting a profile
- Activating a profile and using the activated profile
Where profiles are stored
Profiles are stored locally in a file named ~/ydb/config/config.yaml
.