﻿---
title: Upload an integration to Kibana
description: Fleet supports integration installation through direct upload as a means to support integration developers or users who have created custom integrations...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/extend/integrations/upload-new-integration
products:
  - Elastic integrations
---

# Upload an integration to Kibana
Fleet supports integration installation through direct upload as a means to support integration developers or users who have created custom integrations that they don’t want to commit upstream back to the [Elastic Integrations repository](https://github.com/elastic/integrations).
Direct upload can also be useful in air-gapped environments, by providing a way to update integrations without needing to update a self-hosted package registry.

## Local development

If you’ve followed the local development steps in [*Build an integration*](https://www.elastic.co/elastic/docs-builder/docs/3028/extend/integrations/build-new-integration), upload your integration to Kibana with the following command:
```bash
elastic-package install --zip /path/to/my/custom-integration
```

For more information, see [`elastic-package install`](/elastic/docs-builder/docs/3028/extend/integrations/elastic-package#elastic-package-install).

## Remote deployment

For development and testing on a remote Elastic instance, either an Elastic Cloud or on-prem deployment, you can use the `elastic-package` tool with environment variables set to specify the remote instance. This allows you to install, test and release your custom integration directly to your Elastic Cloud or on-prem instance.
First create an API key or username/password in Kibana on the remote instance, then use those credentials with `elastic-package install` to upload and install the package.
```bash
cd /path/to/my/custom/integration
export ELASTIC_PACKAGE_KIBANA_HOST=https://your.kibana.host

// Export either API_KEY or USERNAME/PASSWORD
export ELASTIC_PACKAGE_ELASTICSEARCH_API_KEY=<elastic_api_key>
export ELASTIC_PACKAGE_ELASTICSEARCH_USERNAME=<elastic_username>
export ELASTIC_PACKAGE_ELASTICSEARCH_PASSWORD=<elastic_password>
elastic-package install
```

For more details, see [`elastic-package install`](/elastic/docs-builder/docs/3028/extend/integrations/elastic-package#elastic-package-install), [Elastic Cloud documentation](https://www.elastic.co/guide/en/cloud/current/ec-api-authentication.html), and [elastic-package documentation](https://github.com/elastic/elastic-package/blob/main/docs/howto/install_package.md).

## Production deployment

To upload your integration to a production deployment, first zip the package:
```bash
$ cd /path/to/my/custom-integration
$ elastic-package build
```

You can now use the Kibana API to upload your integration:
```bash
$ curl -XPOST \
  -H 'content-type: application/zip' \
  -H 'kbn-xsrf: true' \
  https://your.kibana.host/api/fleet/epm/packages \
  -u {username}:{password} \
  --data-binary @my-custom-integration.zip
```

More information on this endpoint is available in the [Fleet API Reference](https://www.elastic.co/guide/en/fleet/current/fleet-apis.html).