> 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, rerun the "create" commands you ran initially but this time with the "--force" flag. This will regenerate all scaffold files and scripts for the respective resource.

## Updating an App

To update the app, rerun the same command you used to create it (including any plugin flags), but with the `--force` flag:

```bash
# Example: Update app with Playwright plugin
stoobly-agent scaffold app create <APP-NAME> --plugin playwright --force

# Example: Update app with Cypress plugin
stoobly-agent scaffold app create <APP-NAME> --plugin cypress --force

# Example: Update app without plugins
stoobly-agent scaffold app create <APP-NAME> --force
```

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

## Updating a Service

To update a service, run:

```bash
stoobly-agent scaffold service create \
    --hostname <SERVICE-HOSTNAME> \
    --scheme <SERVICE-SCHEME> \
    --port <SERVICE-PORT> \
    --workflow mock \
    --workflow record \
    --workflow test \
    <SERVICE-NAME> \
    --force 
```
