# Stop running package servers

The [`ffx repository server`](https://fuchsia.dev/reference/tools/sdk/ffx#ffx_repository_server) commands can identify and stop
[Fuchsia package servers](https://fuchsia.dev/docs/concepts/packages/fuchsia_package_server) on the host machine.

## Concepts

The package repository server is controlled by running the subcommands of
[`ffx repository server`](https://fuchsia.dev/reference/tools/sdk/ffx#ffx_repository_server). This server handles requests for
metadata about the available packages and delivers the file blobs that make
up the package contents.

There can be multiple package servers running on a single host machine. It is
useful to be able to stop one or all of these running servers.

There are two ways to stop running package servers on a host machine. You can
stop running a specific server by specifying the name, or stop all running
package servers with --all.

## Basic command

    ffx repository server stop

## Options

The options to `ffx repository server stop` specify which server instances are
stopped.

- No options - Running with no options will stop the running package server
  *if there is only one running server*. Otherwise, an error is returned.

- Positional arguments - Specific servers are stopped by specifying their name
  on the command line as positional arguments. Only servers that have matching
  names are stopped.

- `--all` option - This option stops all running servers.

## Examples

### Stop the one running server

    ffx repository server stop

### Stop a specific server

Stop the server named `workstation_bundle`:

    ffx repository server stop workstation_bundle

### Stop all servers

    ffx repository server stop --all

[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/development/tools/ffx/workflows/stop-package-servers.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/development/tools/ffx/workflows/stop-package-servers.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/development/tools/ffx/workflows/stop-package-servers.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/development/tools/ffx/workflows/stop-package-servers.md "Edit the source code of this page")