---
title: "Clusters.Create"
description: "Create a cluster."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

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

# Clusters.Create

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

```go
func (*ClusterClient) Create(
    ctx context.Context,
    name string,
    options ...cluster.CreateOption,
) (*workflows.Cluster, error)
```

Create a cluster.

## Parameters

**name**

type: string

A display name for the cluster.
**cluster.WithDescription(description string)**

type: cluster.CreateOption

Optional cluster description.
**cluster.WithSlug(slug string)**

type: cluster.CreateOption

Optional cluster slug. If omitted, Tilebox generates a slug from the cluster name.

## Returns

The created cluster object, including its slug, name, description, whether it can be deleted, and deployed workflows.

<h2 id="request-example">Usage example</h2>

```go
createdCluster, err := client.Clusters.Create(ctx,
    "My cluster",
    cluster.WithDescription("Development workloads"),
    cluster.WithSlug("dev"),
)
```

Source: https://tilebox.com/docs/api-reference/go/workflows/Clusters.Create/index.mdx
