Create and manage repositories
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:
- Open your project.
- In the sidebar, click Repositories.
- Click New Repository.
- Enter a repository name and click Create.
With the CLI:
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:
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 describes.
In the UI:
- Open the project.
- Open Repositories.
- Click the trash icon next to the repository, then click Delete to confirm.
With the CLI:
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.
- Open Repositories in the project and click Deleted Repositories.
- Find the repository.
- Click Restore.