# Creating a new workspace

You create Caplin Trader 5 applications under a development workspace. You can create as many workspaces as you want, and create as many applications under a single workspace as you want.

## Requirements

To create a new Caplin Trader 5 development workspace, you require the following:

* The Caplin CLI tool (see [Installing Caplin CLI](installing-caplin-cli.md))
* Caplin Trader 5 ZIP file, `caplintrader-5.0.0-<version>.zip`, downloadable from the [Caplin Downloads](https://account.caplin.com/account/downloads) page.

## Creating a new development workspace

To create a new Caplin Trader 5 development workspace, follow the steps below:

1. Create a directory to hold the workspace:

   ```
   $ mkdir -p ~/dev/ct-workspace
   ```
2. Navigate to the new `ct-workspace` directory:

   ```
   $ cd ~/dev/ct-workspace
   ```
3. Initialise the workspace:

   ```
   $ caplin-cli init
   ```

   After initialisation, your new workspace has the following directory structure:

   ```plantuml
   @startsalt
   scale 1.25
   {
   {T
    + <color:goldenrod><&folder></color> ct-workspace
    ++ <color:goldenrod><&folder></color> apps
    ++ <color:goldenrod><&folder></color> packages
    ++ <color:goldenrod><&folder></color> packages-caplin
    ++ <color:cornflowerblue><&file></color> README.md
   }
   }
   @endsalt
   ```

   | Directory | Contents |
   | --- | --- |
   | `apps` | The root directory for applications developed within this workspace. Each application has its own subdirectory under the `apps` directory. |
   | `packages` | Local packages common to all applications in the workspace. To create your own packages, see [Creating a new local package](creating-a-new-local-package.md). |
   | `packages-caplin` | Caplin Trader 5 packages. The Caplin Trader 5 packages are distributed in a ZIP file downloadable from the [Caplin Downloads](https://account.caplin.com/account/downloads) site. To install the packages, see step 4 below. |
4. In the `ct-workspace` directory, extract the Caplin Trader 5 ZIP file.

   After extracting the ZIP file, your development workspace has the following directory structure:

   ```plantuml
   @startsalt
   scale 1.25
   {
   {T
    + <color:goldenrod><&folder></color> ct-workspace
    ++ <color:goldenrod><&folder></color> apps
    +++ <color:goldenrod><&folder></color> demo
    ++ <color:goldenrod><&folder></color> packages
    ++ <color:goldenrod><&folder></color> packages-caplin
    +++ <color:goldenrod><&folder></color> br
    +++ <color:goldenrod><&folder></color> br-component
    +++ <color:goldenrod><&folder></color> br-core
    +++ <color:goldenrod><&folder></color> ...
    ++ <color:cornflowerblue><&file></color> README.md
   }
   }
   @endsalt
   ```

---

**See also**:

* [Installing a Caplin Trader package](installing-a-caplin-trader-package.md)
