Create and manage projects
This guide covers creating, listing, renaming, deleting and restoring projects, and changing a project's workflow storage size, using the platform UI and the CLI. In an organization, everything here except listing projects needs the Admin or Owner role. Creating, renaming and deleting a project and changing its storage size also need a verified email.
Create a project
In the UI:
- Open Projects from the main navigation.
- Click New Project. In an organization, the button appears only for Admins and Owners.
- Enter a project name and click Create.
With the CLI:
swale project create my-project
List projects
In the UI: open Projects from the main navigation.
With the CLI:
swale project list
Rename a project
Renaming changes only the project's name: its runs, repositories, workflows, secrets and teams stay with it, including runs still in progress. The former name is free for another project straight away; Projects explains what a rename does to links and teams.
In the UI:
- Open the project and click Settings in the sidebar. In an organization, only Admins and Owners see Change project name.
- Click Change project name.
- Enter the new name and click Change project name.
The CLI has no rename command.
Delete a project
Deleting a project is soft — the project and all its repositories, workflows, and project secrets enter a 90-day grace period before permanent removal. The project is also removed from the allowed projects of every account secret straight away, so if you may restore it, first note which account secrets it can use; see List account secrets visible to the project. A project with a workflow run that has not yet ended cannot be deleted; cancel any run that is Pending, Starting or Running, and wait until each shows Complete, Failed or Canceled.
The deleted project's name stays reserved through the grace period, so no other project can take it until then. Its repositories stay billed as account storage, as Deleted content describes.
In the UI:
- Open Projects.
- Click the trash icon next to the project, or open the project, click Settings in the sidebar and click Delete project. In an organization, only Admins and Owners see either, and only they can delete a project.
- Click Delete to confirm.
With the CLI:
swale project delete my-project
Change the project's workflow storage size
Every run in a project gets a shared workspace of the account's workflow storage size, unless the project sets its own. In an organization, only Admins and Owners can change it.
- Open the project and click Settings in the sidebar.
- Under Workflow storage, click Change storage size. The badge beside the size says whether the project uses the account's size, Inherited, or its own, Overridden.
- To set the project's own size, clear Inherit from account and choose the size in New size. To go back to the account's size, check Inherit from account.
- Click Change size.
Runs started after the change get the new size; runs already started keep theirs. Each minute of a run's duration is billed as Workflow storage at the price of its workspace size; see Billed dimensions.
Restore a project
You can restore a soft-deleted project from the platform UI within the 90-day grace period. In an organization, listing deleted projects and restoring one need the Admin or Owner role:
- Open Projects and click Deleted Projects. In an organization, the button appears only for Admins and Owners.
- Find the project.
- Click Restore.
Restoring a project does not give back its access to account secrets. Add it to the allowed projects of each account secret it needs again; see Configure allowed projects.