Managing profile parameters
Written by
Updated at January 25, 2023
You can manage your profile parameters in the following ways:
- Add or change a profile parameter.
- Delete a profile parameter.
- Run a command with parameters from another profile.
Add or change a profile parameter
To add or change a profile parameter, use the command:
yc config set <parameter name> <parameter value>
For example, change the default folder:
-
Change the default folder (
folder-id
parameter):yc config set folder-id b1g68...
-
Make sure that the parameter changed:
yc config list token: AQAAAAAV6O... cloud-id: b1gvl... folder-id: b1g68...
View the full list of profile parameters. You can also change your profile parameters using the profile wizard.
Delete a profile parameter
To delete a profile parameter, use the command:
yc config unset <parameter name>
For example, delete the default folder:
-
Delete the default folder (
folder-id
parameter):yc config unset folder-id
-
Make sure that the parameter was deleted:
yc config list token: AQAAAAAV6O... cloud-id: b1gvl...
Run a command with parameters from another profile
To run a command using parameters from a different profile, add the --profile <profile name>
parameter to the command.
For example, view the test
profile parameters without activating it:
yc config list --profile test
token: AQAAAAAV6O...
cloud-id: aoegt...
folder-id: aoek4...