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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stoobly.com/guides/how-to-integrate-e2e-testing/how-to-stop-a-workflow/stopping-with-cli-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
