# 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
```
