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

<a id="confluent-schema-registry-exporter-create"></a>

# confluent schema-registry exporter create

## Description

Create a new schema exporter.

```none
confluent schema-registry exporter create <name> [flags]
```

## Flags

### Cloud

```none
    --config strings                    A comma-separated list of "key=value" pairs, or path to a configuration file containing a newline-separated list of "key=value" pairs.
    --subjects strings                  A comma-separated list of exporter subjects. (default [*])
    --subject-format string             Exporter subject rename format. The format string can contain ${subject}, which will be replaced with the default subject name. (default "${subject}")
    --context-type string               Exporter context type. One of "auto", "custom", or "none". (default "auto")
    --context-name string               Exporter context name.
    --context string                    CLI context name.
    --environment string                Environment ID.
    --schema-registry-endpoint string   The URL of the Schema Registry cluster.
-o, --output string                     Specify the output format as "human", "json", or "yaml". (default "human")
```

### On-Premises

```none
    --config strings                      A comma-separated list of "key=value" pairs, or path to a configuration file containing a newline-separated list of "key=value" pairs.
    --subjects strings                    A comma-separated list of exporter subjects. (default [*])
    --subject-format string               Exporter subject rename format. The format string can contain ${subject}, which will be replaced with the default subject name. (default "${subject}")
    --context-type string                 Exporter context type. One of "auto", "custom", or "none". (default "auto")
    --context-name string                 Exporter context name.
    --context string                      CLI context name.
    --certificate-authority-path string   File or directory path to Certificate Authority certificates to authenticate the Schema Registry client.
    --client-cert-path string             File or directory path to client certificate to authenticate the Schema Registry client.
    --client-key-path string              File or directory path to client key to authenticate the Schema Registry client.
    --schema-registry-endpoint string     The URL of the Schema Registry cluster.
-o, --output string                       Specify the output format as "human", "json", or "yaml". (default "human")
```

## 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

### Cloud

Create a new schema exporter.

```none
confluent schema-registry exporter create my-exporter --config config.txt --subjects my-subject1,my-subject2 --subject-format my-\${subject} --context-type custom --context-name my-context
```

### On-Premises

Create a new schema exporter.

```none
confluent schema-registry exporter create my-exporter --config config.txt --subjects my-subject1,my-subject2 --subject-format my-\${subject} --context-type custom --context-name my-context --certificate-authority-path <certification-authority-location> --schema-registry-endpoint <schema-registry-endpoint>
```

## See Also

* [confluent schema-registry exporter](index.md#confluent-schema-registry-exporter) - Manage Schema Registry exporters.
