# nsc extend

Extends the duration of an instance.

`extend` prolongs the duration of an existing instance.

## Usage

```bash theme={null}
nsc extend [--duration <duration>] [--ensure_minimum <duration>]
```

### Example

#### 1. Create an ephemeral instance

Create an ephemeral instance and note its ID:

```bash theme={null}
nsc create
```

```text nocopy Output theme={null}
  Created new ephemeral environment! ID: s6h6i70uk2nqe
```

#### 2. Extend the instance duration

Ensure that the instance remains available for at least eight hours:

```bash theme={null}
nsc extend s6h6i70uk2nqe --ensure_minimum 8h
```

```text nocopy Output theme={null}
New deadline: 2024-08-09T19:29:09.296810204Z
```

## Options

### --duration <duration>

Extend the duration of the target instance by this duration.

### --ensure_minimum <duration>

Ensure that the target instance has a minimum of the specified duration.
