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

# Scale a deployment

> Set a new replica count for a deployment.

Use `idyl scale deployment` to change how many replicas IDYL should run.

## 1. Check the current deployment

```bash theme={null}
idyl get deployment web
```

## 2. Scale up

```bash theme={null}
idyl scale deployment web --replicas 3
```

## 3. Watch pods change

```bash theme={null}
idyl get pod --watch
```

## 4. Scale down

```bash theme={null}
idyl scale deployment web --replicas 1
```

To stop running replicas without deleting the deployment:

```bash theme={null}
idyl scale deployment web --replicas 0
```

## Namespace

If the deployment is not in the current namespace, pass `--namespace`:

```bash theme={null}
idyl scale deployment web --replicas 3 --namespace production
```
