> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/guideline-for-enterprise/cloudeka-api-list/command-reference/cldkctl-flexi/network/port/list.md).

# list

List all ports you have access to. This command displays a summary of the ports, including their IDs, names, IP addresses, MAC addresses, status, port security, and creation dates.

## Usage

```
cldkctl flexi network port list [flags]
```

## Aliases

```
list, ls
```

## Steps

Follow the steps below to run and view the result of this command:

#### Interactive Mode

1. Run the following command in your terminal:

```
cldkctl flexi network port list -i true
```

2. Select the VPC you want to inspect

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FOWr6zap9GbMTEFCM14se%2F1.png?alt=media&amp;token=f66787ba-65b7-4341-a9c3-67114ba49aa3" alt=""><figcaption></figcaption></figure>

3. The terminal displays a list of ports available in the selected VPC

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FsTp6p2rW3SH98TWvyrOU%2F2.png?alt=media&amp;token=9a5f6923-b878-47ef-ad41-569a72b9cf0b" alt=""><figcaption></figcaption></figure>

#### Non Interactive Mode

1. Provide all required values using command flags.
2. Run the command in your terminal.
3. The terminal displays the list of ports associated with the specified VPC.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FOUYl7EGfqKWYTTfxfwFm%2F3.png?alt=media&amp;token=ff0a1297-a0d8-49d6-bff0-13769492d6bd" alt=""><figcaption></figcaption></figure>

| Column        | Description                                                            |
| ------------- | ---------------------------------------------------------------------- |
| ID            | A unique identifier assigned to each port within the VPC.              |
| Name          | The name of the port used for identification purposes                  |
| IP Address    | The IP address associated with the port.                               |
| Mac Address   | The MAC (Media Access Control) address assigned to the port interface. |
| Status        | The current state of the port.                                         |
| Port Security | Indicates whether port security is enabled.                            |
| Created At    | The timestamp indicating when the port was created.                    |

## Flags

{% hint style="info" %}
This command supports [global flags](/guideline-for-enterprise/cloudeka-api-list/global-flags.md). Refer to the Global Flags section for details
{% endhint %}

| Flag          | Shorthand | Default | Description                           |
| ------------- | --------- | ------- | ------------------------------------- |
| --help        | -h        |         | Help for the list command.            |
| --interactive | -i        | false   | Force interactive TUI mode            |
| --vpc-id      |           |         | VPC ID (filter ports by specific VPC) |
