

<a id="confluent-flink-artifact-version-download"></a>

# confluent flink artifact version download

## Description

Download the binary content of a Flink artifact in Confluent Platform. Defaults to the latest version unless `--version` is specified.

```none
confluent flink artifact version download <name> [flags]
```

## Flags

```none
--environment string                  REQUIRED: Name of the Flink environment.
--output-file string                  REQUIRED: Path to write the downloaded artifact file.
--version string                      Version of the artifact to download. Defaults to the latest version.
--url string                          Base URL of the Confluent Manager for Apache Flink (CMF). Environment variable "CONFLUENT_CMF_URL" may be set in place of this flag.
--client-key-path string              Path to client private key for mTLS authentication. Environment variable "CONFLUENT_CMF_CLIENT_KEY_PATH" may be set in place of this flag.
--client-cert-path string             Path to client cert to be verified by Confluent Manager for Apache Flink. Include for mTLS authentication. Environment variable "CONFLUENT_CMF_CLIENT_CERT_PATH" may be set in place of this flag.
--certificate-authority-path string   Path to a PEM-encoded Certificate Authority to verify the Confluent Manager for Apache Flink connection. Environment variable "CONFLUENT_CMF_CERTIFICATE_AUTHORITY_PATH" may be set in place of this flag.
```

## 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, and -vvvv for trace).
```

## Examples

Download the latest version of Flink artifact “my-udf.jar” in the environment “my-environment”.

```none
confluent flink artifact version download my-udf.jar --output-file my-udf.jar --environment my-environment
```

## See Also

* [confluent flink artifact version](index.md#confluent-flink-artifact-version) - Manage versions of a Flink artifact in Confluent Platform.
