> ## Documentation Index
> Fetch the complete documentation index at: https://www.aptible.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# aptible endpoints:renew

This command triggers an initial renewal of a [Managed TLS](https://www.aptible.com/docs/core-concepts/apps/connecting-to-apps/app-endpoints/managed-tls.md) Endpoint after creating it using [`aptible endpoints:https:create`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-endpoints-https-create) or [`aptible endpoints:tls:create`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-endpoints-tls-create) and having set up the required [Managed HTTPS Validation Records](https://www.aptible.com/docs/core-concepts/apps/connecting-to-apps/app-endpoints/managed-tls.md#managed-https-validation-records).

> [!WARNING]
>
> We recommend reviewing the documentation on [rate limits](https://www.aptible.com/docs/core-concepts/apps/connecting-to-apps/app-endpoints/managed-tls.md#rate-limits) before using this command automatically.

> [!NOTE]
>
> You only need to do this once! After initial provisioning, Aptible automatically renews your Managed TLS certificates on a periodic basis.

# Synopsis

> [!NOTE]
>
> Use the [`aptible endpoints:list`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-endpoints-list) command to easily locate the [Endpoint Hostname](https://www.aptible.com/docs/core-concepts/apps/connecting-to-apps/app-endpoints/custom-domain.md#endpoint-hostname) for a given Endpoint.

```
Usage:
  aptible endpoints:renew HOSTNAME [flags]

Flags:
      --app string           App handle
  -e, --env string           Environment handle (alias)
      --environment string   Environment handle
```
