# update-project

> Update an existing project

Update a project by ID or slug. The name, slug, and delete protection can be changed. Omitted fields remain unchanged. Changing the slug affects generated deployment domains.

## Usage
```bash
unkey api projects update-project [flags]
```
## Flags
<ParamField body="--project" type="string" required>Project ID or slug.</ParamField>
<ParamField body="--slug" type="string">New project slug. Omit to leave unchanged.</ParamField>
<ParamField body="--name" type="string">New human-readable project name. Omit to leave unchanged.</ParamField>
<ParamField body="--delete-protection" type="bool">Enable or disable delete protection. Omit to leave unchanged.</ParamField>
## Global Flags
| Flag | Type | Description |
|------|------|-------------|
| `--root-key` | string | Override root key (`$UNKEY_ROOT_KEY`) |
| `--api-url` | string | Override API base URL (default: `https://api.unkey.com`) |
| `--config` | string | Path to config file (default: `~/.unkey/config.toml`) |
| `--output` | string | Output format. Use `json` for raw JSON |
| `--body` | string | Send this JSON string as the request body. You cannot combine it with request-building flags. |
## Examples
```bash
unkey api projects update-project --project=proj_1234abcd --delete-protection=true
```
See the [API reference](https://www.unkey.com/docs/api-reference/v2/projects/update-project).
