# Create and manage repositories

> **About this page**
>
> - Kind: How-to guide
> - Summary: Create, list, delete and restore the repositories that keep a project's files.
> - Last changed: 2026-11-17
> - Page: https://docs.swale.io/how-to-guides/create-and-manage-repositories
> - CLI reference for its commands: [`swale repo create`](https://docs.swale.io/reference/cli-reference.md#repo-create), [`swale repo list`](https://docs.swale.io/reference/cli-reference.md#repo-list), [`swale repo delete`](https://docs.swale.io/reference/cli-reference.md#repo-delete)
> - 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 guide covers creating, listing, deleting, and restoring repositories using the platform UI and the CLI. Creating and deleting a repository need a verified email; any member who can open the project can do both, Contributors included.

## Create a repository

**In the UI:**

1. Open your project.
2. In the sidebar, click **Repositories**.
3. Click **New Repository**.
4. Enter a repository name and click **Create**.

**With the CLI:**

```bash
swale repo create --project-name <project-name> --repository-name my-repo
```

You can also skip this step: `swale push` to a repository that does not exist yet creates it.

## List repositories

**In the UI:** open the project and click **Repositories** in the sidebar.

**With the CLI:**

```bash
swale repo list --project-name <project-name>
```

## Delete a repository

Deleting a repository is **soft**: it enters a 90-day grace period, during which you can restore it, and its name stays reserved, so no other repository in the project can take it until then. It stays billed as account storage, as [Deleted content](https://docs.swale.io/reference/billing.md#deleted-content) describes.

**In the UI:**

1. Open the project.
2. Open **Repositories**.
3. Click the trash icon next to the repository, then click **Delete** to confirm.

**With the CLI:**

```bash
swale repo delete --project-name <project-name> --repository-name my-repo
```

## Restore a repository

You can restore a soft-deleted repository within the 90-day grace period from the platform UI. The CLI has no restore command.

1. Open **Repositories** in the project and click **Deleted Repositories**.
2. Find the repository.
3. Click **Restore**.

## Next steps

- [Push and pull files](https://docs.swale.io/how-to-guides/push-and-pull-files.md)
- [Manage tags](https://docs.swale.io/how-to-guides/manage-tags.md)
- [Repositories and storage](https://docs.swale.io/explanation/repositories-and-storage.md)
