Managing profile parameters

You can manage your profile parameters in the following ways:

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:

  1. Get information about the current profile parameters.

  2. Change the default folder (folder-id parameter):

    $ yc config set folder-id b1g68...
    
  3. Make sure that the parameter changed:

    $ yc config list
    token: AQAAAAAV6O...
    cloud-id: b1gvl...
    folder-id: b1g68...
    

View the full list of parameters for the profile. 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:

  1. Get information about the current profile parameters.

  2. Delete the default folder (folder-id parameter):

    $ yc config unset folder-id
    
  3. 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...