> 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-stop-a-workflow/stopping-with-cli-command.md).

# Stopping with CLI command

## Steps to Stop a Workflow

1. Run the workflow stop command in the root of the app directory

```bash
stoobly-agent scaffold workflow down <WORKFLOW-NAME>
```

For example:

```bash
stoobly-agent scaffold workflow down mock
```

2. After running the command, all containers will be stopped and removed:

```bash
$ docker ps -a
# All removed!
```

3\. To remove service hostnames from `/etc/hosts`, run the following command:

<pre class="language-bash"><code class="lang-bash"><strong>stoobly-agent scaffold hostname uninstall --workflow &#x3C;WORKFLOW-NAME>
</strong></code></pre>

## Options

To see what options are available:

```bash
stoobly-agent scaffold workflow down -h
```
