Skip to content

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.

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.

  1. Open the dashboard.
  2. Select New project next to the Project menu in the top bar, or in the menu drawer on a narrow screen.
  3. Enter staging in Name.
  4. Select Create project. The dashboard switches to the new project and says Project staging created.

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

Scroll horizontally to see all columns.

--project wins when SI_PROJECT is also set.

Most API requests take project in the query. POST /svms, /profiles, /secrets and /databases 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.

Terminal window
si ls --project staging
Output
no SVMs; run si create

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

  1. Open the dashboard.
  2. 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.
  3. Choose a project to switch every project-scoped page to it.

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

Terminal window
curl -sS "https://api.slashinfra.com/projects/staging" \
-H "Authorization: Bearer $SI_API_KEY"
Output
{"id":"proj_6f1c0f0e8a","name":"staging","created_ms":1795954614568}

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.

Terminal window
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
{"id":"proj_6f1c0f0e8a","name":"preview","created_ms":1795954614568}

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.

Terminal window
si org project rm preview
Output
deleted project preview
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.

Scroll horizontally to see all columns.

Code When Fix
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 Create or rename uses a name another project has. Choose another name.
project_limit Create would exceed the plan’s max_projects. Delete a project, or ask about your plan.
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 Rename or delete names default. Use another project.
project_not_empty Delete names a project that still holds a resource. Delete its VMs, databases, snapshots, secrets, profiles, schedules and scoped keys first.

Scroll horizontally to see all columns.

Errors that any request can return are in the error catalog.

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

Scroll horizontally to see all columns.

  • 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.