> 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/create.md).

# create

Create a new port network in your project. This command allows you to add a new port with the specified details.

## Usage

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

## Aliases

```
create, create, add
```

## 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 create -i true
```

2. The terminal displays a list of available **VPCs**. Select the VPC where the port will be created.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FtwGdm93M7Pp5wiJjrLJg%2Fimage.png?alt=media&amp;token=b2a1c5f1-c108-49fd-a1c1-afab07644bef" alt=""><figcaption></figcaption></figure>

3. Select the **Subnet** associated with the selected VPC.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F2tW1cSCu9beOPpcLdwxK%2F2.png?alt=media&amp;token=71304372-657a-4e0f-9791-d1cba54ac43c" alt=""><figcaption></figcaption></figure>

4. Enter the **Port Name**, then select the **Port Type**.
5. Enter the **IP Address** and **MAC Address** for the port.
6. Select the **Port Security** option.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FARdpk4BH9yOk272W1m90%2F3.png?alt=media&amp;token=0228d7f9-2924-409d-960c-9a5c3fd2481c" alt=""><figcaption></figcaption></figure>

7. When prompted, confirm the action by selecting *Confirm*, or cancel the process by selecting *Cancel*.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FYD78xtGj9c6kw3DrDxHz%2F4.png?alt=media&amp;token=1aa2bcba-644e-4a5d-9b42-9b43cd6ff91b" alt=""><figcaption></figcaption></figure>

8. Once completed successfully, the terminal displays the success message.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FEp8dp0Us2bSQ7QM3f04b%2F5.png?alt=media&amp;token=abbbcf64-f9a5-436d-ba3d-9fd4bd34236c" alt=""><figcaption></figcaption></figure>

#### Non Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm` or `-y` to skip confirmation prompts in non-interactive mode.
3. Run the command in your terminal.
4. Once completed successfully, the terminal displays the success message.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FVVWA4fOn5O0ph3smcEGD%2F6.png?alt=media&amp;token=8c98c6b3-c6a4-47f2-b004-2acea10218bf" alt=""><figcaption></figcaption></figure>

## 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                                                   |
| --------------- | --------- | ------- | ------------------------------------------------------------- |
| --auto-confirm  | -y        | false   | Skip confirmation prompt in non-interactive mode (true/false) |
| --help          | -h        |         | Help for create                                               |
| --interactive   | -i        | false   | Run in interactive/TUI mode (true/false)                      |
| --ip-address    |           |         | IP address (required in non-interactive mode)                 |
| --mac-address   |           |         | MAC address (required in non-interactive mode)                |
| --name          | -n        |         | Port name (required in non-interactive mode)                  |
| --port-security |           |         | Port security: enabled or disabled                            |
| --subnet-id     |           |         | Subnet ID or name (required in non-interactive mode)          |
| --type          |           |         | Port type: subnet or fixed ip                                 |
| --vpc-id        |           |         | VPC ID or name (required in non-interactive mode)             |
