Skip to main content

create

client.projects.create(data: Record<string, unknown>): Promise<Project>

Creates a new project in a specified workspace.

Initializes a new project with the given configuration. The project will be created in the specified workspace directory with its own configuration and history.

Parameters

ParameterTypeRequiredDescription
dataRecord<string, unknown>YesThe project creation payload including name and workspace details

Returns

Promise<Project> — A promise that resolves to the newly created project

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.projects.create(/* Record<string, unknown> */);
console.log(result);