Skip to content
Skip to Content

Create a project

Create a project in the console, with the CLI or the API, then rename it, change who sees it, link a folder to it, or delete it.

A project is made with its production environment, and you get admin access to it. You need the role Owner, Admin or Can deploy in the organization. See Projects for what a project holds.

Create one

On the Projects page, click New project. Give it a Name, choose Who can see it, and click Create project. The project opens on its canvas, in production.

A name is 1 to 60 characters. Its slug is made from it, such as my-shop for My Shop!, with -2 added when the organization already has that slug.

Work in it from a folder

The CLI takes --project (the slug, the name or the id) on every command. To leave it out, link a folder once:

openpanel link --project shop --service web

This writes .openpanel.json in the folder, and commands run in it or below use that project and service. --service is optional.

Rename it

Open Project settings, change the Name under General, and click Save.

The slug follows the new name. Services' opnl.app addresses made before keep their names. Renaming needs admin on the project.

Change who sees it

A project is seen by the whole organization, each member at their role's level, or it is private and seen only by the members given access.

Open Project settings. Visibility chooses between everyone in the organization and Private: only the people you add. Access lists every member with their role and gives one of them their own level, or No access.

Both need admin on the project. Whoever makes a project private keeps admin on it. See Per-project access and Private projects.

Environments

Every project is made with one environment, production, and services are made in it unless you name another. A project admin adds more beside it, such as staging: each runs its own services with its own variables.

Open the project's Settings, then Environments, and choose Add environment. The environment menu in the project's bar switches between them; a service made there belongs to the environment shown.

  • A name is up to 32 lowercase letters, digits and hyphens, once per project.
  • Service names are used once in a project. Its environments share one private network on each server for now, so a service in staging cannot be called web while production has a web; call it web-staging.
  • Deleting an environment deletes its own variables. Production cannot be deleted, and an environment that still has services cannot either: delete its services first (openpanel environments delete staging --project shop, or DELETE /environments/{environmentId}).
  • New environments start empty: services and variables are not copied from production.

Delete a project

Deleting a project deletes its services with their volumes, variables, deployments and domains, and its servers stop its containers. It needs admin on the project and cannot be undone.

Open Project settings, click Delete project under Danger zone, and confirm.

The data in the project's volumes is not wiped from the servers. See Volumes.

What can go wrong

MessageWhat it means
"Give the project a name."The name is empty.
"A project name is at most 60 characters."Shorten the name.
"This needs admin access, and you have deploy."Renaming, changing access and deleting need admin on the project.
"The owner always has admin access to every project."The organization's owner's access cannot be changed.
"This API key is limited to some projects, so it cannot do this."A key limited to projects cannot create a project.