<!-- WARNING: This documentation is auto-generated from the confluentinc/cli repository and should not be manually edited. -->

<a id="confluent-asyncapi-export"></a>

# confluent asyncapi export

## Description

Export an AsyncAPI specification for a Kafka cluster and Schema Registry.

```none
confluent asyncapi export [flags]
```

## Flags

```none
--file string                       Output file name. (default "asyncapi-spec.yaml")
--group string                      Consumer Group ID for getting messages. (default "consumerApplication")
--consume-examples                  Consume messages from topics for populating examples.
--spec-version string               Version number of the output file. (default "1.0.0")
--kafka-api-key string              Kafka cluster API key.
--schema-context string             Use a specific schema context. (default "default")
--topics strings                    A comma-separated list of topics to export. Supports prefixes ending with a wildcard (*).
--schema-registry-endpoint string   The URL of the Schema Registry cluster.
--value-format string               Format message value as "string", "avro", "double", "integer", "jsonschema", or "protobuf". Note that schema references are not supported for Avro. (default "string")
--kafka-endpoint string             Endpoint to be used for this Kafka cluster.
--cluster string                    Kafka cluster ID.
--environment string                Environment ID.
```

## Global Flags

```none
-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
```

## Examples

Export an AsyncAPI specification with topic “my-topic” and all topics starting with “prefix-“.

```none
confluent asyncapi export --topics "my-topic,prefix-*"
```

## See Also

* [confluent asyncapi](index.md#confluent-asyncapi) - Manage AsyncAPI document tooling.
