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

# Create a project

> Create a project with the Node.js SDK.

`client.projects().create()` creates a project. The machine identity needs an [organization role](https://infisical.com/docs/documentation/platform/access-controls/role-based-access-controls.md#organization-level-access-controls) that allows it to create projects, such as **Member**.

## Parameters

**options** `CreateProjectOptions` *required*

**properties**

**projectName** `string` *required*

The name of the project.

**type** `string` *required*

The product the project is for: `secret-manager`, `kms`, or `agent-vault`.

**projectDescription** `string`

A description of the project.

**slug** `string`

The project's slug. Defaults to a slug that Infisical generates from the name.

**template** `string`

The name of the [project template](https://infisical.com/docs/documentation/platform/project-templates.md) to create the project from.

**kmsKeyId** `string`

The ID of the [KMS key](https://infisical.com/docs/documentation/platform/kms-configuration/overview.md) that encrypts the project's data. Defaults to Infisical's own KMS. To pass a KMS key, the machine identity needs an organization role that can read KMS keys, such as **Admin**.

## Returns

**project** `Project`

The new project, with its `id`, `name`, `slug`, `type`, and `environments`.

```typescript Basic theme={"dark"}
const project = await client.projects().create({
  projectName: "payments-api",
  type: "secret-manager",
});
```

```typescript From a template theme={"dark"}
const project = await client.projects().create({
  projectName: "payments-api",
  type: "secret-manager",
  projectDescription: "Secrets for the payments API",
  template: "<template-name>",
});
```

```json Response theme={"dark"}
{
  "id": "5e8d7c6b-4a3f-4e2d-9c1b-0a9f8e7d6c5b",
  "name": "payments-api",
  "slug": "payments-api-k3x9",
  "description": "Secrets for the payments API",
  "type": "secret-manager",
  "orgId": "2c1b0a9f-8e7d-4c6b-5a4f-3e2d1c0b9a8f",
  "environments": [
    { "id": "c4e2a1b9-7d3f-4a6e-9b8c-5f0e1d2c3b4a", "name": "Development", "slug": "dev" },
    { "id": "d5f3b2c0-8e4a-4b7f-0c9d-6a1f2e3d4c5b", "name": "Staging", "slug": "staging" },
    { "id": "e6a4c3d1-9f5b-4c8a-1d0e-7b2a3f4e5d6c", "name": "Production", "slug": "prod" }
  ],
  "createdAt": "2026-12-02T10:40:02.915Z",
  "updatedAt": "2026-12-02T10:40:02.915Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.