---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/reference/ydb-cli/commands/configuration/cluster/generate.md?version=v25.4
  - https://ydb.tech/docs/ru/reference/ydb-cli/commands/configuration/cluster/generate.md?version=v25.4
  - href: en/reference/ydb-cli/commands/configuration/cluster/generate.md
    type: text/markdown
    title: Markdown version
  - href: ../../../../../llms.txt
    type: text/markdown
    title: llms.txt
sourcePath: en/core/reference/ydb-cli/commands/configuration/cluster/generate.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# admin cluster config generate

With the `admin cluster config generate` command, you can generate a [dynamic configuration](https://ydb.tech/docs/en/devops/configuration-management/configuration-v1/dynamic-config.md?version=v25.4) file based on the [static configuration](https://ydb.tech/docs/en/reference/configuration/index.md?version=v25.4) file on the YDB cluster.
The dynamic configuration uses the format of an extended static configuration; the command automates the conversion process.

General command syntax:

```bash
ydb [global options...] admin cluster config generate
```

* `global options` — Global parameters.

View the description of the dynamic configuration generation command:

```bash
ydb admin cluster config generate --help
```

## Examples {#examples}

Generate the dynamic configuration based on the static configuration:

```bash
ydb admin cluster config generate > config.yaml
```

After executing this command, the `config.yaml` file will contain a YAML document in the following format:

```yaml
metadata:
  kind: MainConfig
  cluster: ""
  version: 0
config:
  <static cluster configuration>
```

## Using the Generated Dynamic Configuration

After generating the dynamic configuration, you can perform the following steps:

1. Add configuration parameters to the dynamic configuration file.
2. Apply the dynamic configuration to the cluster using the [`admin cluster config replace`](https://ydb.tech/docs/en/reference/ydb-cli/commands/configuration/cluster/replace.md?version=v25.4) command.
