# Projects

Separate VMs, databases, snapshots, secrets, profiles and schedules into namespaces, and choose the project of each request.

Source: https://slashinfra.com/docs/platform/projects
Last modified: 2026-11-30T16:36:19.000Z

A project is a namespace inside your organization for VMs, databases, snapshots, secrets, profiles and schedules. Names repeat across projects, and a request that names none uses `default`.

## Create a project

A new project starts empty. Its name has 1 to 32 lowercase letters, digits and hyphens, starts with a letter, and is unique in the organization.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select New project next to the Project menu in the top bar, or in the menu drawer on a narrow screen. 
- Enter `staging` in Name. 
- Select Create project. The dashboard switches to the new project and says `Project staging created`.

### CLI

```bash
si org project create staging
```

Output

```text
staging
```

### curl

```bash
curl -sS -X POST "https://api.slashinfra.com/projects" \
-H "Authorization: Bearer $SI_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"staging"}'
```

Output

```text
{"id":"proj_6f1c0f0e8a","name":"staging","created_ms":1795954614568}
```

### Python

```python
import os, requests

res = requests.post(
"https://api.slashinfra.com/projects",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
json={"name": "staging"},
)
res.raise_for_status()
print(res.json()["id"])
```

Output

```text
proj_6f1c0f0e8a
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/projects', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SI_API_KEY!}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'staging' }),
})
if (!res.ok) throw new Error(await res.text())
const project = (await res.json()) as { id: string }
console.log(project.id)
```

Output

```text
proj_6f1c0f0e8a
```

## Choose the project of a request

The project of a request is a name, or an id that starts with `proj_`. A request that names none uses `default`.

| Interface | How you name the project | When omitted |
| --- | --- | --- |   
| CLI | `--project <id-or-name>`, or the `SI_PROJECT` environment variable | `default` | 
| API | The `project` query parameter, or the `project` body field of a create | `default` |

`--project` wins when `SI_PROJECT` is also set.

Most API requests take `project` in the query. [`POST /svms`](https://slashinfra.com/docs/api-reference/control/svms#postSvms), [`/profiles`](https://slashinfra.com/docs/api-reference/control/profiles#getProfiles), [`/secrets`](https://slashinfra.com/docs/api-reference/control/secrets#getSecrets) and [`/databases`](https://slashinfra.com/docs/api-reference/control/databases#getDatabases) take it in the body.

An unknown project, or one outside the key’s scope, answers 404 `project_not_found`.

Names repeat across projects, but a reference cannot cross. A VM that names a profile, snapshot or secret of another project is refused as if it did not exist, for example with 404 `profile_not_found` or 404 `secret_not_found`.

An organization key can be limited to one or more projects. Such a key can name only its projects. See [Who can reach your VM](https://slashinfra.com/docs/how/access).

```bash
si ls --project staging
```

Output

```text
no SVMs; run si create
```

## List projects

Every organization has `default`, so the list is never empty. Projects are oldest first, and a key limited to projects sees only those.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select the Project menu in the top bar, or in the menu drawer on a narrow screen. The menu lists every project and marks the one in use. 
- Choose a project to switch every project-scoped page to it.

### CLI

```bash
si org project ls
```

Output

```text
id               name     created
proj_0a1b2c3d4e  default  2026-11-25 00:30:49Z
proj_6f1c0f0e8a  staging  2026-11-29 12:27:13Z
```

### curl

```bash
curl -sS "https://api.slashinfra.com/projects" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
[{"id":"proj_0a1b2c3d4e","name":"default","created_ms":1795566649094},{"id":"proj_6f1c0f0e8a","name":"staging","created_ms":1795954614568}]
```

### Python

```python
import os, requests

res = requests.get(
"https://api.slashinfra.com/projects",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
for project in res.json():
print(project["id"], project["name"])
```

Output

```text
proj_0a1b2c3d4e default
proj_6f1c0f0e8a staging
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/projects', {
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
const projects = (await res.json()) as { id: string; name: string }[]
for (const project of projects) console.log(project.id, project.name)
```

Output

```text
proj_0a1b2c3d4e default
proj_6f1c0f0e8a staging
```

## Get a project

Get returns one project by name or id. An unknown name, or one outside the key’s scope, answers 404 `project_not_found`.

### curl

```bash
curl -sS "https://api.slashinfra.com/projects/staging" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
{"id":"proj_6f1c0f0e8a","name":"staging","created_ms":1795954614568}
```

### Python

```python
import os, requests

res = requests.get(
"https://api.slashinfra.com/projects/staging",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
project = res.json()
print(project["id"], project["name"])
```

Output

```text
proj_6f1c0f0e8a staging
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/projects/staging', {
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
const project = (await res.json()) as { id: string; name: string }
console.log(project.id, project.name)
```

Output

```text
proj_6f1c0f0e8a staging
```

## Rename a project

Rename changes the name and keeps the id and every resource. A request that uses the old name answers 404 `project_not_found`. The `default` project cannot be renamed.

### curl

```bash
curl -sS -X PATCH "https://api.slashinfra.com/projects/staging" \
-H "Authorization: Bearer $SI_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"preview"}'
```

Output

```text
{"id":"proj_6f1c0f0e8a","name":"preview","created_ms":1795954614568}
```

### Python

```python
import os, requests

res = requests.patch(
"https://api.slashinfra.com/projects/staging",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
json={"name": "preview"},
)
res.raise_for_status()
print(res.json()["name"])
```

Output

```text
preview
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/projects/staging', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.SI_API_KEY!}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'preview' }),
})
if (!res.ok) throw new Error(await res.text())
console.log(((await res.json()) as { name: string }).name)
```

Output

```text
preview
```

## Delete a project

Delete removes an empty project and its usage history, and it cannot be undone. A project that still holds a VM, database, snapshot, secret, profile, schedule or scoped organization key answers 409 `project_not_empty`; delete those first. The `default` project cannot be deleted.

### CLI

```bash
si org project rm preview
```

Output

```text
deleted project preview
```

### curl

```bash
curl -sS -i -X DELETE "https://api.slashinfra.com/projects/preview" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
HTTP/2 204
...
```

### Python

```python
import os, requests

res = requests.delete(
"https://api.slashinfra.com/projects/preview",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
print(res.status_code)
```

Output

```text
204
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/projects/preview', {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
console.log(res.status)
```

Output

```text
204
```

## Options

| Field | Type | Default | Allowed values | What it changes |
| --- | --- | --- | --- | --- |   
| `name` | string | Required | `^[a-z][a-z0-9-]{0,31}$`, and not an id (`^[0-9a-hjkmnp-tv-z]{10}$`) | The project name. It must be unique in the organization. | 
| `ref` (path) | string | Required | A project name, or its id | The project that get, rename and delete act on. |

## Errors

| Code | When | Fix |
| --- | --- | --- |   
| [`invalid_name`](https://slashinfra.com/docs/reference/errors#invalid_name) | Create or rename sends a name that breaks the rule in Options. | Send 1 to 32 lowercase letters, digits or hyphens, with a letter first. | 
| [`name_taken`](https://slashinfra.com/docs/reference/errors#name_taken) | Create or rename uses a name another project has. | Choose another name. | 
| [`project_limit`](https://slashinfra.com/docs/reference/errors#project_limit) | Create would exceed the plan’s `max_projects`. | Delete a project, or ask about your plan. | 
| [`project_not_found`](https://slashinfra.com/docs/reference/errors#project_not_found) | The ref names no project in your organization or key scope. | Check the name or id, and the key’s project scope. | 
| [`default_project`](https://slashinfra.com/docs/reference/errors#default_project) | Rename or delete names `default`. | Use another project. | 
| [`project_not_empty`](https://slashinfra.com/docs/reference/errors#project_not_empty) | Delete names a project that still holds a resource. | Delete its VMs, databases, snapshots, secrets, profiles, schedules and scoped keys first. |

Errors that any request can return are in the [error catalog](https://slashinfra.com/docs/reference/errors).

## Permissions

| Operation | Who can | Key action |
| --- | --- | --- |   
| List projects | Any member | `project:read` | 
| Get a project | Any member | `project:read` | 
| Create a project | Owner or admin | `project:write` | 
| Rename a project | Owner or admin | `project:write` | 
| Delete a project | Owner or admin | `project:delete` |

## Limits

- The plans allow 10 projects, `default` included. An 11th create answers 409 `project_limit`. 
- A name has 1 to 32 lowercase letters, digits and hyphens and starts with a letter. A name that could be an id (10 letters and digits) is refused, so a name is never mistaken for an id. 
- A project name is unique in its organization. A duplicate answers 409 `name_taken`. 
- Only an empty project can be deleted. A remaining VM, database, snapshot, secret, profile, schedule or scoped key answers 409 `project_not_empty`. 
- Every organization has one `default` project, and it cannot be renamed or deleted. 
- A project id is `proj_` and 10 letters and digits, and it never changes.

The full list is in [Limits](https://slashinfra.com/docs/reference/limits).

## Next

- [Who can reach your VM](https://slashinfra.com/docs/how/access): member roles and the project scope of a key. 
- [Snapshots](https://slashinfra.com/docs/platform/snapshots): snapshots stay inside the project of their VM. 
- [Control API projects](https://slashinfra.com/docs/api-reference/control/projects): every operation, field and status code.
