Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Command line interface
  • Getting started with the CLI
  • Step-by-step instructions
    • All instructions
    • CLI installation
    • Authentication
      • Authenticating as a user
      • Authenticating as a service account
      • Authenticating as a federated user
    • Profile management
      • Creating a profile
      • Managing profile parameters
      • Getting profile information
      • Activating a profile
      • Deleting a profile
  • Concepts
    • Running commands
    • CLI configuration
    • Synchronous and asynchronous command execution modes
  • CLI releases
  • Troubleshooting
  • CLI reference
    • Overview
    • YC CLI management
      • yc operation
      • yc config
      • yc components
    • Service management
      • yc iam
      • yc resource-manager
      • yc compute
      • yc vpc
      • yc managed-clickhouse
      • yc managed-mongodb
      • yc managed-postgresql
  1. Step-by-step instructions
  2. Profile management
  3. Managing profile parameters

Managing profile parameters

  • Add or change a profile parameter
  • Delete a profile parameter
  • Run a command with parameters from another profile.

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:

  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...
In this article:
  • Add or change a profile parameter
  • Delete a profile parameter
  • Run a command with parameters from another profile.
Language
Careers
Privacy policy
Terms of use
© 2021 Yandex.Cloud LLC