> ## Documentation Index
> Fetch the complete documentation index at: https://flox.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# flox services stop

## NAME

flox-services-stop - stop running services

## SYNOPSIS

```text theme={null}
flox [<general-options>] services stop
     [-d=<path> | -r=<owner/name>]
     [<name>] ...
```

## DESCRIPTION

Stops the specified running services.

If no services are specified, then all services will be stopped. If any
of the specified services are not currently running, a warning will be
displayed and the remaining services will be stopped.

If any of the specified services do not exist, an error will be returned
and no services will be stopped. If an error is encountered while
stopping one of the specified services, the remaining services will
still be stopped, but a warning will be displayed for the services that
failed to stop, and a non-zero exit code will be returned.

## OPTIONS

`<name>`\
The name(s) of the services to stop.

### Environment Options

If no environment is specified for an environment command, the
environment in the current directory or the active environment that was
last activated is used.

`-d`, `--dir`\
Path containing a .flox/ directory.

`-r`, `--reference`\
A FloxHub environment, specified in the form `<owner>/<name>`.

`-D`, `--default`\
Use your default environment (`<your-user>/default`). When
unauthenticated in an interactive context, you will be prompted to log
in. In non-interactive contexts (e.g., scripts or CI), this flag will
fail with an error when authentication is missing.

### General Options

`-h`, `--help`\
Prints help information.

The following options can be passed when running any `flox` subcommand
but must be specified *before* the subcommand.

`-v`, `--verbose`\
Increase logging verbosity. Invoke multiple times for increasing detail.

`-q`, `--quiet`\
Silence logs except for errors.

## EXAMPLES

Stop a running service named ‘server’:

```bash theme={null}
flox services stop server
```

Stop all running services:

```bash theme={null}
flox services stop
```

Attempt to stop a service that doesn’t exist:

```console theme={null}
$ flox services stop myservice doesnt_exist
✘ ERROR: Service 'doesnt_exist' not found.
```

Attempt to stop a service that isn’t running:

```console theme={null}
$ flox services stop running not_running
⚠️  Service 'not_running' is not running
✔ Service 'running' stopped
```

## SEE ALSO

[`flox-activate`](/man/flox-activate)
