> 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/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 subnet 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:&#x20;

#### Interactive Mode

1. Run the following command in your terminal:

```
cldkctl flexi network port create -i
```

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

<figure><img src="/files/7lniNMguOF5i4cnJj2m3" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/lUXzvELu0iOCZLVDx1c8" 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="/files/png9hGtW2XZSmqzspaN8" alt=""><figcaption></figcaption></figure>

7. When prompted, confirm the action by selecting **y**, or cancel the process by selecting **n**.

<figure><img src="/files/9mprTHIrDlC7Q12qiVcW" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/N7Rg7KbTxrOJ51GmABKr" 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="/files/rSECZxQnW5VupjNIyVh3" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](/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 |
| --help          | -h        |         | Help for the create command                      |
| --interactive   | -i        | false   | Force interactive TUI mode                       |
| --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 (required in non-interactive mode)     |
| --type          |           |         | Port type: subnet or fixed ip                    |
| --vpc-id        |           |         | VPC ID (required in non-interactive mode)        |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-flexi/network/port/create.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
