> For the complete documentation index, see [llms.txt](https://discord-swift.gitbook.io/discord.swift/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discord-swift.gitbook.io/discord.swift/overview/creating-a-project.md).

# Creating a Project

How to create your bot project in Xcode.

Now that you've added your bot to Discord, it's time to make it go online and ready for use.

## Step 1a

Open Xcode and click on the **Create a new Xcode project**.

<figure><img src="https://1224259333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhOdpU5WcynHJiIjTeb9%2Fuploads%2F34Aihu88uo67WG9n8ut7%2FScreenshot%202023-06-18%20at%201.31.40%20PM.png?alt=media&amp;token=4f1ccdc4-6edb-4286-93ed-f0ee68dc0ade" alt=""><figcaption></figcaption></figure>

## Step 1b

Under the macOS tab, select **Command Line Tool**.&#x20;

<figure><img src="https://1224259333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhOdpU5WcynHJiIjTeb9%2Fuploads%2FeMNsKZ0V0zfqM3dWdBwG%2FScreenshot%202023-06-18%20at%201.35.07%20PM.png?alt=media&amp;token=f9cbc8fb-ea39-46bc-b0e0-f1d4b275eebb" alt=""><figcaption></figcaption></figure>

Afterwards, type a product name and create your project in the directory of your choosing.

## Step 2a

Alternatively, you create an executable project. This should be used if you intend to have your bot run on various operating systems (such as Linux). You can create an executable project by creating a new folder. For this example, the folders name is "DiscordBot". Open a new terminal at that folder and run the following:

{% code fullWidth="false" %}

```
$ swift package init --type executable
```

{% endcode %}

When you open the folder in Xcode, this will be the layout:

<figure><img src="https://1224259333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhOdpU5WcynHJiIjTeb9%2Fuploads%2FGoyxFXBfioMg7M7vG62O%2Fmain%20exec.png?alt=media&amp;token=40273659-b6eb-4ec4-a088-a7bf3dbaf471" alt=""><figcaption></figcaption></figure>
