---
schema_version: "1"
id: fb472ff1a30dacbe8e2c64006ad35c9eb309d837b026e9353f1d7c4c11e1861d
title: Create a Load Balancer with the Anypoint Platform CLI
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/cloudhub/lb-create-cli.md
canonical_url: https://docs.mulesoft.com/cloudhub/lb-create-cli
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 581971d1a5ac71ac1d1460f0634658c0cfe18e270547f44fd31da0b50914fd22
description: MuleSoft Documentation Site
latest: true
---
---
product: CloudHub
---

# Create a Load Balancer with the Anypoint Platform CLI

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You can create a dedicated load balancer (DLB) using the Anypoint Platform CLI.

## Prerequisites

Before you create a load balancer:

- Ensure that you are an administrator in the organization where you are creating the DLB.

- Create an Anypoint Virtual Private Cloud (Anypoint VPC) instance in the organization where you
  want to create a DLB.

- Create at least one certificate and private key for your certificate.

## Create a Load Balancer Using the CLI

Use this command to create a DLB from the CLI:

```linenums
cloudhub load-balancer create myVPC myLB_name certificateName privateKey
```

This command specifies the Anypoint VPC instance _myVPC_ in which to create the DLB and the
_certificateName_ and _privateKey_ that the DLB uses.

> [!IMPORTANT] You cannot change the name of a DLB after you create it. To change the name, delete
> and re-create it using the new name.

The CloudHub DLB name cannot start with `internal-`.

## See Also

- [cloudhub load-balancer create](https://docs.mulesoft.com/cloudhub/cloudhub-cli#cloudhub-load-balancer-create)

- [cloudhub load-balancer ssl-endpoint add](https://docs.mulesoft.com/cloudhub/cloudhub-cli#cloudhub-load-balancer-ssl-endpoint-add)

- [cloudhub load-balancer ssl-endpoint set-default](https://docs.mulesoft.com/cloudhub/cloudhub-cli#cloudhub-load-balancer-ssl-endpoint-set-default)

- [Add Certificates to a Dedicated Load Balancer](https://docs.mulesoft.com/cloudhub/lb-cert-upload)

- [Access Management](https://docs.mulesoft.com/access-management/)
