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

# 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

<Steps titleSize="h4">
  <Step title="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
    ```
  </Step>

  <Step title="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
    ```
  </Step>
</Steps>

## Options

<h3 id="--duration-duration">
  \--duration \<duration>
</h3>

Extend the duration of the target instance by this duration.

<h3 id="--ensure_minimum-duration">
  \--ensure\_minimum \<duration>
</h3>

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