> ## 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.

# idyl scale

> Change the replica count of a workload

Change the replica count of a deployment or replicaset.

## Usage

```bash theme={null}
idyl scale
```

## Commands

| Command                 | Description        |
| ----------------------- | ------------------ |
| `idyl scale deployment` | Scale a deployment |
| `idyl scale replicaset` | Scale a replicaset |

## Inherited flags

| Flag                                 | Description                                                        |
| ------------------------------------ | ------------------------------------------------------------------ |
| `-a <string>, --account-id <string>` | Account ID to use, overriding the current context.                 |
| `-c <string>, --context <string>`    | Use the named context for this command.                            |
| `--homedir <string>`                 | Override the configuration directory. Defaults to \~/.config/idyl. |
| `-n <string>, --namespace <string>`  | Namespace to use for this command.                                 |
| `-o <string>, --output <string>`     | Output format (json\|yaml).                                        |
| `-p <string>, --profile <string>`    | Override the access profile for this command.                      |
| `--realm <string>`                   | Override the realm for this command.                               |
| `--subnet <string>`                  | Override the context subnet for this command.                      |

## Examples

```bash theme={null}
# Scale a deployment to 3 replicas
idyl scale deployment frontend --replicas 3

# Scale a replicaset to 2 replicas
idyl scale replicaset frontend --replicas 2

# Scale down to zero
idyl scale deployment batch-processor --replicas 0
idyl scale replicaset batch-processor --replicas 0

# Scale in a specific namespace
idyl scale deployment frontend --replicas 5 -n production
idyl scale replicaset frontend --replicas 5 -n production
```

## Subcommand reference

### `idyl scale deployment`

Scale a deployment

#### Usage

```bash theme={null}
idyl scale deployment <name> [flags]
```

#### Aliases

* `deployments`
* `deploy`

#### Flags

| Flag                                | Description                                     |
| ----------------------------------- | ----------------------------------------------- |
| `-n <string>, --namespace <string>` | Namespace name, overriding the current context. |
| `--replicas <uint64>`               | Required. Number of replicas. Default: `1`.     |

### `idyl scale replicaset`

Scale a replicaset

#### Usage

```bash theme={null}
idyl scale replicaset <name> [flags]
```

#### Aliases

* `replicasets`
* `rs`

#### Flags

| Flag                                | Description                                     |
| ----------------------------------- | ----------------------------------------------- |
| `-n <string>, --namespace <string>` | Namespace name, overriding the current context. |
| `--replicas <uint64>`               | Required. Number of replicas. Default: `1`.     |
