> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Create Project

- Component: `appmixer.vercel.core.CreateProject`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.vercel 2.0.2](https://connectors.appmixer.com/connector/appmixer.vercel/2.0.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.vercel/2.0.2/component/appmixer.vercel.core.CreateProject>

Create a new project with the specified configuration details.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | text | Name of the project. |
| Account Id (`accountId`) | text | Account identifier associated with the project. |
| Framework (`framework`) | text | Framework to be used (e.g., blitzjs, nextjs, gatsby, remix, react-router, astro, etc.). |
| Dev Command (`devCommand`) | text | Command to start the development environment. |
| Build Command (`buildCommand`) | text | Command to build the project. |
| Output Directory (`outputDirectory`) | text | Directory where the build output will be placed. |
| Public Source (`publicSource`) | toggle | Flag to define if the project source should be public. |
| Team Id (`teamId`) | text | Optional team identifier if creating a project for a team. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Id (`id`) | string | - |
| Name (`name`) | string | - |
| Framework (`framework`) | string | - |
| Dev Command (`devCommand`) | string | - |
| Build Command (`buildCommand`) | string | - |
| Output Directory (`outputDirectory`) | string | - |
| Public Source (`publicSource`) | boolean | - |
| Created At (`createdAt`) | number | - |
| Updated At (`updatedAt`) | number | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.vercel.core.CreateProject",
  "label": "Create Project",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a new project with the specified configuration details.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:vercel"
  },
  "quota": {
    "manager": "appmixer:vercel",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          },
          "framework": {
            "type": "string"
          },
          "devCommand": {
            "type": "string"
          },
          "buildCommand": {
            "type": "string"
          },
          "outputDirectory": {
            "type": "string"
          },
          "publicSource": {
            "type": "boolean"
          },
          "teamId": {
            "type": "string"
          }
        }
      },
      "inspector": {
        "inputs": {
          "name": {
            "type": "text",
            "tooltip": "Name of the project.",
            "label": "Name",
            "index": 0
          },
          "accountId": {
            "type": "text",
            "tooltip": "Account identifier associated with the project.",
            "label": "Account Id",
            "index": 1
          },
          "framework": {
            "type": "text",
            "tooltip": "Framework to be used (e.g., blitzjs, nextjs, gatsby, remix, react-router, astro, etc.).",
            "label": "Framework",
            "index": 2
          },
          "devCommand": {
            "type": "text",
            "tooltip": "Command to start the development environment.",
            "label": "Dev Command",
            "index": 3
          },
          "buildCommand": {
            "type": "text",
            "tooltip": "Command to build the project.",
            "label": "Build Command",
            "index": 4
          },
          "outputDirectory": {
            "type": "text",
            "tooltip": "Directory where the build output will be placed.",
            "label": "Output Directory",
            "index": 5
          },
          "publicSource": {
            "type": "toggle",
            "tooltip": "Flag to define if the project source should be public.",
            "label": "Public Source",
            "index": 6,
            "defaultValue": false
          },
          "teamId": {
            "type": "text",
            "tooltip": "Optional team identifier if creating a project for a team.",
            "label": "Team Id",
            "index": 7
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Id",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "prj_abc123def456"
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "my-nextjs-app"
          }
        },
        {
          "label": "Framework",
          "value": "framework",
          "schema": {
            "type": "string",
            "example": "nextjs"
          }
        },
        {
          "label": "Dev Command",
          "value": "devCommand",
          "schema": {
            "type": "string",
            "example": "next dev"
          }
        },
        {
          "label": "Build Command",
          "value": "buildCommand",
          "schema": {
            "type": "string",
            "example": "next build"
          }
        },
        {
          "label": "Output Directory",
          "value": "outputDirectory",
          "schema": {
            "type": "string",
            "example": ".next"
          }
        },
        {
          "label": "Public Source",
          "value": "publicSource",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Created At",
          "value": "createdAt",
          "schema": {
            "type": "number",
            "example": 1672531200000
          }
        },
        {
          "label": "Updated At",
          "value": "updatedAt",
          "schema": {
            "type": "number",
            "example": 1672617600000
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
