> For the complete documentation index, see [llms.txt](https://docs.stoobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoobly.com/guides/how-to-integrate-e2e-testing/how-to-update-a-scaffold.md).

# How to Update a Scaffold

## Why Update

In newer versions of stoobly-agent, there are usually improvements and bug fixes. This can improve the Scaffold setup in various ways.

To update, re-apply the same `.stoobly/scaffold.yml` you used to create the scaffold. `app create` and `service create` regenerate their scaffold files and scripts every time they run, so re-applying is enough — no extra option is needed.

{% content-ref url="/pages/vNbSv8Y3FUGMz3PL3GyX" %}
[Apply](/faq/scaffold/apply.md)
{% endcontent-ref %}

## Updating an App

Re-apply the app step in `.stoobly/scaffold.yml`:

```yaml
# .stoobly/scaffold.yml
version: 1
commands:
  - resource: app
    action: create
    options:
      app_name: <APP-NAME>
      plugin: [playwright]  # keep the same plugins you used initially
```

```bash
stoobly-agent scaffold apply .stoobly/scaffold.yml
```

{% hint style="info" %}
**Important:** Keep the same `plugin` values you used when initially creating the app. This ensures plugin-specific configurations are preserved when updating.
{% endhint %}

## Updating a Service

Re-apply the service step:

```yaml
  - resource: service
    action: create
    options:
      service_name: <SERVICE-NAME>
      hostname: <SERVICE-HOSTNAME>
      scheme: <SERVICE-SCHEME>
      port: <SERVICE-PORT>
      workflow: [mock, record, test]
```

```bash
stoobly-agent scaffold apply .stoobly/scaffold.yml
```
