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

<a id="confluent-connect-plugin-install"></a>

# confluent connect plugin install

#### IMPORTANT
To use the [confluent connect plugin install](https://docs.confluent.io/confluent-cli/current/command-reference/connect/plugin/confluent_connect_plugin_install.html) command, you must be **logged out** of Confluent Cloud at the command line.
If you are logged in to Confluent Cloud on the Confluent CLI, `confluent connect plugin install` will not work.

## Description

Install a Connect plugin.

```none
confluent connect plugin install <plugin> [flags]
```

## Flags

```none
--plugin-directory string         The plugin installation directory. If not specified, a default will be selected based on your Confluent Platform installation.
--worker-configurations strings   A comma-separated list of paths to one or more Kafka Connect worker configuration files. Each worker file will be updated to load plugins from the plugin directory in addition to any prior directories.
--confluent-platform string       The path to a Confluent Platform archive installation. By default, this command will search for Confluent Platform installations in common locations.
--dry-run                         Run the command without committing changes.
--force                           Proceed without user input.
```

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

Install the latest version of the Datagen connector into your local Confluent Platform environment.

```none
confluent connect plugin install confluentinc/kafka-connect-datagen:latest
```

Install the latest version of the Datagen connector in a user-specified directory and update a worker configuration file.

```none
confluent connect plugin install confluentinc/kafka-connect-datagen:latest --plugin-directory $CONFLUENT_HOME/plugins --worker-configurations $CONFLUENT_HOME/etc/kafka/connect-distributed.properties
```

## See Also

* [confluent connect plugin](index.md#confluent-connect-plugin) - Manage plugins for managed connectors.
