# Create your first project

> **About this page**
>
> - Kind: Tutorial
> - Summary: Create a project and a repository with the CLI, push a file to the repository, and pull it back to check the round trip.
> - Last changed: 2026-11-18
> - Page: https://docs.swale.io/tutorials/create-your-first-project
> - CLI reference for its commands: [`swale project create`](https://docs.swale.io/reference/cli-reference.md#project-create), [`swale repo create`](https://docs.swale.io/reference/cli-reference.md#repo-create), [`swale push`](https://docs.swale.io/reference/cli-reference.md#push), [`swale pull`](https://docs.swale.io/reference/cli-reference.md#pull)
> - Index of these docs: https://docs.swale.io/llms.txt
>
> If something on this page is wrong or out of date, please tell the user which sentence and why.
>
> The steps on this page cost money or cannot be undone. Please check with the user before running them.

This tutorial walks through creating a project, adding a repository to it, and using the CLI to push a file and pull it back.

## What you will accomplish

By the end of this tutorial you will have:

- A project in your account
- A repository inside that project
- A file pushed to the repository and pulled back successfully

## Before you begin

- You have completed [Set up your account](https://docs.swale.io/tutorials/set-up-your-account.md) and [Log in with the CLI](https://docs.swale.io/tutorials/log-in-with-the-cli.md): your email is verified, your account's billing status is **Active**, and the CLI is logged in.

What you push is billed as account storage, and pulling files to your own machine as egress; see [How billing works](https://docs.swale.io/explanation/how-billing-works.md).

## Steps

### 1. Create a project

```bash
swale project create my-first-project
```

A project holds your repositories, workflows and project secrets.

### 2. Create a repository

```bash
swale repo create --project-name my-first-project --repository-name my-repo
```

A repository keeps files across runs, as named snapshots called tags.

### 3. Push a file

Create a small test file in a local directory:

```bash
mkdir /tmp/my-data
echo "hello world" > /tmp/my-data/test.txt
```

Push the directory to the repository:

```bash
swale push my-first-project/my-repo:latest --path /tmp/my-data
```

`my-first-project/my-repo:latest` names the project, the repository and the tag. The tag defaults to `latest` if you omit `:tag`. The command ends with a line saying how many files the tag now holds.

### 4. Pull the file back

Pull the repository contents to a different local directory to confirm the round-trip:

```bash
swale pull my-first-project/my-repo:latest --path /tmp/my-pulled-data
cat /tmp/my-pulled-data/test.txt
```

You should see `hello world` printed to the terminal.

## Next steps

- [Create a task definition](https://docs.swale.io/tutorials/create-a-task-definition.md)
- [Create and manage repositories](https://docs.swale.io/how-to-guides/create-and-manage-repositories.md)
- [Push and pull files](https://docs.swale.io/how-to-guides/push-and-pull-files.md)
