> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage a project environment

Run env or its alias environment from a self-host sandbox project. Generate .agentkit/sandbox.yaml with sandbox init -t self-host and configure the environment and images for that project. Then env create requests a managed EnvironmentResource and records its ID in .agentkit/environment.yaml. Projects with older Tool/Runtime state can pass --resource-id to select a managed resource.

> [!WARNING]
>
> Creation provisions cloud resources, may use or create an IAM role and can incur charges. Check the project and resource ID before deletion.

The following patch.yaml changes only runtime capacity. Use the resource ID and revision returned by your environment.

```yaml theme={null}
runtime:
  resources:
    cpu_milli: 2000
    memory_mb: 4096
```

## env create

| Option | Description | Default |
| - | - | - |
| `--force-new` | create a new resource even when local environment state exists | Off |
| `--client-token <token>` | idempotency token (default: generated UUID) | — |
| `--no-wait` | return after the resource request is accepted | — |
| `--timeout <seconds>` | wait timeout in seconds | 900 |
| `-r, --region <region>` | cloud region | — |
| `--json` | output raw JSON | Off |

```bash theme={null}
agentkit env create --json
```

## env status

| Option | Description | Default |
| - | - | - |
| `--resource-id <id>` | override the resource id stored in .agentkit/environment.yaml | — |
| `-r, --region <region>` | cloud region | — |
| `--json` | output raw JSON | Off |

```bash theme={null}
agentkit env status --json
```

## env list

| Option | Description | Default |
| - | - | - |
| `--environment-id <id>` | filter by target environment id | — |
| `--status <status>` | filter by resource status | — |
| `--include-deleted` | include deleted tombstones | Off |
| `--limit <number>` | page size, from 1 to 100 | 20 |
| `--page <token>` | opaque page token | — |
| `--all` | fetch every page | Off |
| `-r, --region <region>` | cloud region | — |
| `--json` | output raw JSON | Off |

```bash theme={null}
agentkit env list --all --json
```

## env update

| Option | Description | Default |
| - | - | - |
| `--file <path>` | JSON or YAML patch | — |
| `--resource-id <id>` | override the locally stored resource id | — |
| `--client-token <token>` | idempotency token (default: generated UUID) | — |
| `--environment-key-env <name>` | environment variable containing the Ark Environment key | — |
| `--wait` | wait until the resource leaves its active state | Off |
| `--timeout <seconds>` | wait timeout in seconds | 900 |
| `-r, --region <region>` | cloud region | — |
| `--json` | output raw JSON | Off |

```bash theme={null}
agentkit env update --file patch.yaml --wait
```

## env delete

| Option | Description | Default |
| - | - | - |
| `--resource-id <id>` | override the locally stored resource id | — |
| `--client-token <token>` | idempotency token (default: generated UUID) | — |
| `-y, --yes` | skip the confirmation prompt | Off |
| `--wait` | wait until deletion reaches a terminal state | Off |
| `--timeout <seconds>` | wait timeout in seconds | 900 |
| `-r, --region <region>` | cloud region | — |
| `--json` | output raw JSON | Off |

```bash theme={null}
agentkit env delete --wait
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.