---
title: "ezgh lb targets register"
description: "Register a target."
---

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

# ezgh lb targets register

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh lb targets register <target-group> (--network-interface <eni_…> | --private-ipv4 a) [--port p] [flags]
```

Register a target: a private network interface in the group's VPC, or a private address inside it. `--port` overrides the group's. It starts initial, until health checks say otherwise.

Part of [`ezgh lb targets`](/cli/reference/lb-targets).

## Examples

```sh
ezgh lb targets register tgp_7t3n1v8c2wzd --network-interface eni_7hq2m0x9ka3c
ezgh lb targets register tgp_7t3n1v8c2wzd --private-ipv4 10.0.2.40 --port 9000
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--network-interface` | string |  | a private network interface (eni\_…) |
| `--port` | int |  | its port (default the group's) |
| `--private-ipv4` | string |  | a private address in the VPC |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/lb-targets-register/index.mdx
