Creating and managing projects
The project is the application: it is what has a public address, version history, and configuration.
Before you start
- A repository on GitHub, GitLab, or Bitbucket, with a
Dockerfilein the folder that will be deployed — or none: the project can use Zero Git, and the platform creates the repository for you. See The project source. - If you want to publish under your company's domain, activate the zone before creating the project: the zone is the base of the address, and choosing it later would mean changing the address.
Creating the project
Under Projects → Create project, the form has four blocks.
Identity
| Field | What it decides |
|---|---|
| Project name | Appears in the public address. Lowercase letters, numbers, and hyphens, 3 to 40 characters |
| Domain | Which domain the address is composed under: the platform's or an already active zone of your own |
| Address | The label before the domain. Left blank, the platform composes it from the name |
The form checks the final address's availability as you type, and suggests free alternatives. A name available in your organization can still produce an address that is taken — the address decides.
Project source
| Field | What it decides |
|---|---|
| Provider | GitHub, GitLab, Bitbucket, or Zero (Zero's repository). When the address names the host, the provider is inferred from it |
| Repository address | The full URL, the SSH address, or owner/repo. See the accepted forms. With the Zero provider, there is no address to type: the platform creates the repository |
| Branch or tag | Where the first version is deployed from |
| Folder inside the repository | Optional. Left blank, the root. In a monorepo, the folder holding the Dockerfile |
This repository becomes the project source: every service in the project deploys from it. A public repository needs no credentials; a private repository needs an access token, entered afterwards under Settings → Source.
The reference is checked before the deployment starts: if the repository or branch does not resolve, you find out in the form rather than minutes later.
Without naming the folder, the platform looks for the Dockerfile at the repository root. In a monorepo, that makes every deployment fail at Building, after the form said yes.
Size
The Size of each replica of the web service created with the project, chosen from the instance size catalog — Micro comes preselected. The size is required, and can be changed later.
Where it will run
The Production environment is created with the project. There is nothing to fill in — the block exists to explain why there is no field.
Confirming
Create and deploy creates the project, the web service, and starts the first deployment. The console takes you to the project page, where the deployment is under way.
A double click, or a reconnection in the middle of the request, does not create two projects: the operation is protected against repetition.
The project source
The repository belongs to the project: one source per project. Services only choose the folder inside it and the reference — branch or tag. To deploy from another repository, create another project.
The source lives under Settings → Source, in the project. It can be an external provider — GitHub, GitLab, or Bitbucket — or Zero Git.
External provider
The repository field accepts three forms:
| Form | Example |
|---|---|
| Full URL | https://github.com/owner/repo |
| SSH address | git@github.com:owner/repo.git |
owner/repo, with the chosen provider | owner/repo |
- Providers: GitHub, GitLab, and Bitbucket. GitLab accepts subgroups —
group/subgroup/project. - The host decides the provider. When the address carries the host, the provider is inferred from it. With no host, choosing the provider is required.
- Whatever does not match is refused, with the reason. A host outside the list is refused by name; a chosen provider that disagrees with the host is refused too.
The Save source button is only enabled with a complete address, and says next to it what is missing — for example, "The repository name is missing after “owner”. Use owner/repository.".
Access token
A public repository needs no token. For a private repository, enter an access token from the provider.
Once saved, the token never comes back to the screen: it shows Credential configured, with the option to replace it.
From the CLI: zero source set prj_… --provider github --repo owner/repo --ref main, with --token to read the token from standard input.
Zero Git
Instead of an external provider, the project can deploy from Zero Git: a private repository, derived from the project (<organization>/<project>) and created by the platform. There is no address, account or token to provide.
In the console, choose the Zero provider when creating the project or under Settings → Source. From the CLI:
zero source set prj_… --zero --ref main # creates the repository and follows the provisioning
zero source get prj_… # the state and the clone_url
Provisioning is asynchronous. The API answers 202 with an operation (PUT /projects/{id}/source with {"kind": "git", "provider": "zero", "ref": "main"}); while it runs, the source stays in provisioning, and when it finishes it moves to connected, with the clone_url — the address you clone from and push to. The CLI follows the operation; --detach prints the operation and exits. The address always comes from clone_url, never from what someone types: --repo together with --zero is refused.
Once connected, configure git and clone:
zero git setup # the CLI becomes git's credential helper (global, ~/.gitconfig)
zero git setup --local # only the current repository
git clone <clone_url>
zero git setup makes git use the same credential as your Zero session, without copying a token to a file; in CI, ZERO_TOKEN applies. The Source screen shows the clone_url and both commands. With Zero Git, the project's pull requests are opened and merged through Zero — under Settings → Pull requests or with zero pr (see CLI).
Switching between an external provider and Zero Git follows the source-switching rule: the previous one is revoked. Zero's repository is not deleted on the switch — only together with the project. On an installation without Zero Git, the choice is refused with INTERNAL_GIT_NOT_ENABLED, and the source stays with GitHub, GitLab, or Bitbucket.
Changing it later
- Name and description — under Settings → General; what appears in lists.
- Public address — under Domains. Changing it releases the previous one as soon as the new one is live; the confirmation says what that affects. See Changing the address.
- Source — under Settings → Source: repository, branch or tag, and token, used in later deployments.
Deleting the project
Under Settings → General, click Delete project. The confirmation shows the impact and asks you to type the project's name — the defense against deleting the wrong project — and a reason (optional), which is recorded in the audit trail. The deletion is followed to the end; closing the window does not interrupt it.
When it finishes:
- The project disappears from the list and from every read: direct URL, API, and CLI answer "not found".
- The project name becomes free for a new project.
- Deployments that were queued are cancelled.
- Environments and services are shut down: the applications go offline.
- The source is revoked, and its credentials destroyed.
- The public address stops serving this project and stays reserved to your organization. No other organization can use it, and a new project in your organization can — just choose the same address. Links, sign-in callbacks, and webhooks that pointed to it stop responding, and never start responding for another organization.
- The history stays recorded: audit, operations, deployments, and versions.
From the CLI: zero projects delete prj_… --reason "..." --yes — with the project's identifier, not its name. See CLI.
If the project uses a custom domain zone, the zone refuses to be deleted while the project exists. Delete the project first.
Common errors
| Message | Meaning | What to do |
|---|---|---|
| "Use lowercase letters, numbers, and hyphens" | The name is part of the public address | Adjust the name |
| "This address is already in use" | The final address is reserved | Choose another or take a suggestion |
| "Zero deploys from GitHub, GitLab, or Bitbucket, and “…” is not one of them." | Another code provider | Mirror the repository to one of the three |
| "The address is from GitLab, but the chosen provider is GitHub." | The chosen provider disagrees with the address's host | Fix the provider, or the address |
| "The repository name is missing after “owner”. Use owner/repository." | Incomplete address | Complete the address |
| "Enter the folder without a leading slash" | A path starting with / | Write apps/api, not /apps/api |
Next steps
Was this page helpful?
Report a problem on this pageDo not send passwords, keys, tokens, or customer data.