yc config
The 'yc config' command group lets you set, view and unset properties used by Yandex Cloud CLI.
Core properties
|
Property |
Description |
|
|
string, Main Cloud API endpoint (host:port) |
|
|
string, OAuth token 'yc' should use for authentication. Can be overridden by using the global '--token' flag. |
|
|
object, IAM Key issued for service account that 'yc' should use for authentication. |
|
|
bool, indicating that 'yc' should use for authentication Service Account of Compute Instance where 'yc' is executed. |
|
|
string, ID of the organization to operate on by default. Will be used, for example, in 'yc resource-manager cloud list' command. |
|
|
string, ID of the cloud to operate on by default. Will be used, for example, in 'yc resource-manager folder list' command. |
|
|
ID of the folder to resolve names, list and create resources in by default. Can be overridden by using the global '--folder-id' flag. |
|
|
Name of the default folder to list and create resources in. Can be overridden by using the global '--folder-name' flag. |
|
|
string, default output format: text, yaml, json. Can be overridden by using the global '--format' flag. |
|
|
string, HTTP endpoint of storage service. By default cli takes endpoint from ApiEndpointService/Get handler |
Yandex Compute Cloud properties
|
Property |
Description |
|
|
Default availability zone to create instances, disks, or subnets in. |
Yandex S3 Storage properties
|
Property |
Description |
|
|
The maximum number of concurrent requests. |
|
|
The maximum number of tasks in the task queue. |
|
|
When using multipart transfers, this is the chunk size that the CLI uses for multipart transfers of individual files. |
|
|
The size threshold the CLI uses for multipart transfers of individual files. |
Command Usage
Syntax:
yc config <group|command>
Command Tree
-
yc config get — Get value for the specified configuration property
-
yc config list — List configuration values
-
yc config set — Set value for the specified configuration property
-
yc config unset — Unset value for the specified configuration property
-
yc config profile — Manage configuration profiles
-
yc config profile activate — Activate the specified configuration profile
-
yc config profile create — Create a configuration profile
-
yc config profile delete — Delete the specified configuration profile
-
yc config profile get — List values for the specified configuration profile
-
yc config profile list — List configuration profiles
-
-
yc config v0 — Manage Yandex Cloud CLI configuration
-
yc config v0 get — Get value for the specified configuration property
-
yc config v0 list — List configuration values
-
yc config v0 set — Set value for the specified configuration property
-
yc config v0 unset — Unset value for the specified configuration property
-
Global Flags
|
Flag |
Description |
|
|
Set the custom configuration file. |
|
|
Debug logging. |
|
|
Debug gRPC logging. Very verbose, used for debugging connection problems. |
|
|
Disable printing user intended output to stderr. |
|
|
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. |
|
|
CLI syntax: 1 (legacy) or 2 (current). Omit to use default-syntax in the profile or the product default. |
|
|
Set the ID of the cloud to use. |
|
|
Set the ID of the folder to use. |
|
|
Set the name of the folder to use (will be resolved to id). |
|
|
Set the Cloud API endpoint (host:port). |
|
|
Set the OAuth token to use. |
|
|
Set the ID of the service account to impersonate. |
|
|
Disable opening browser for authentication. |
|
|
Set the output format: text (default), yaml, json, json-rest. |
|
|
Query to select values from the response using jq syntax |
|
|
Display help for the command. |