[Yandex Cloud documentation](../../../index.md) > [Yandex MetaData Hub](../../index.md) > Apache Hive™ Metastore > [CLI reference](../index.md) > [cluster](index.md) > create

# yc managed-metastore cluster create

Create Metastore cluster

#### Command Usage

Syntax:

`yc managed-metastore cluster create <CLUSTER-NAME> [Flags...] [Global Flags...]`

#### Flags

#|
||Flag | Description ||
|| `--name` | `string`

Name of the Metastore cluster. ||
|| `--description` | `string`

Description of the cluster. ||
|| `--labels` | `key=value[,key=value...]`

A list of Metastore cluster labels as key-value pairs. ||
|| `--service-account-id` | `string`

A service account id used to access Cloud resources. ||
|| `--version` | `string`

A Metastore server version. ||
|| `--subnet-ids` | `value[,value]`

List of IDs of VPC network subnets where instances of the cluster are attached. ||
|| `--security-group-ids` | `value[,value]`

A list of security groups for the Metastore cluster. ||
|| `--resource-preset-id` | `string`

ID of the preset for computational resources available to the cluster (CPU, memory etc.). ||
|| `--warehouse-bucket` | `string`

S3 bucket name for the warehouse. ||
|| `--warehouse-path` | `string`

Path within the S3 bucket for the warehouse. ||
|| `--log-enabled` | Whether logs generated by the Airflow components are delivered to Cloud Logging. ||
|| `--log-folder-id` | `string`

Logs will be written to default log group in specified folder. ||
|| `--log-group-id` | `string`

Logs will be written to log group resolved by ID. ||
|| `--log-min-level` | `string`

Minimum log entry level. Possible values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL ||
|| `--maintenance-window` | `PROPERTY=VALUE[,PROPERTY=VALUE...]`

Maintenance window settings.

Possible property names:

- `type`: Type of maintenance window, it can be 'anytime' or 'weekly'. A day and hour of window need to be specified with weekly window.

- `hour`: Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.

- `day`: Day of week for maintenance window if window type is weekly. One of MON, TUE, WED, THU, FRI, SAT, SUN. Values: 'mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun' ||
|| `--deletion-protection` | Deletion Protection inhibits deletion of the cluster. ||
|| `--async` | Display information about the operation in progress, without waiting for the operation to complete. ||
|#

#### Global Flags

#|
||Flag | Description ||
|| `--profile` | `string`

Set the custom configuration file. ||
|| `--debug` | Debug logging. ||
|| `--debug-grpc` | Debug gRPC logging. Very verbose, used for debugging connection problems. ||
|| `--no-user-output` | Disable printing user intended output to stderr. ||
|| `--retry` | `int`

Enable gRPC retries. By default, retries are enabled with maximum 5 attempts.
Pass 0 to disable retries. Pass any negative value for infinite retries.
Even infinite retries are capped with 2 minutes timeout. ||
|| `--cloud-id` | `string`

Set the ID of the cloud to use. ||
|| `--folder-id` | `string`

Set the ID of the folder to use. ||
|| `--folder-name` | `string`

Set the name of the folder to use (will be resolved to id). ||
|| `--endpoint` | `string`

Set the Cloud API endpoint (host:port). ||
|| `--token` | `string`

Set the OAuth token to use. ||
|| `--impersonate-service-account-id` | `string`

Set the ID of the service account to impersonate. ||
|| `--no-browser` | Disable opening browser for authentication. ||
|| `--format` | `string`

Set the output format: text (default), yaml, json, json-rest. ||
|| `--jq` | `string`

Query to select values from the response using jq syntax ||
|| `-h`, `--help` | Display help for the command. ||
|#
#### Examples

 * [Creating a cluster](../../operations/metastore/cluster-create.md#cli_1)
 * [Transferring data to the default log group](../../operations/metastore/logging.md#cli_1)