# Feature Specification: CLI: down **Feature Branch**: `001-current-state-specs` **Created**: 2026-05-30 **Status**: Current State (reverse-specified from docs, hammerkit 1.6.0) **Input**: Existing behavior documented in `website/content/docs/cli/down.mdx` ## User Scenarios & Testing *(mandatory)* ### User Story 1 - Stopping all running services (Priority: P1) A developer has finished their work session and wants to free the resources held by services that were started with `hammerkit up` (foreground or daemon). They run `hammerkit down` and all services defined in the build file are stopped. **Why this priority**: `down` is the natural complement to `up` and the primary way to cleanly release containerized service resources. **Independent Test**: Start services with `hammerkit up --daemon`, then run `hammerkit down` and verify that all service containers are no longer running. **Acceptance Scenarios**: 1. **Given** services started with `hammerkit up --daemon`, **When** the user runs `hammerkit down`, **Then** all services defined in the build file are stopped and exit cleanly. 2. **Given** services started with `hammerkit up` (foreground, now interrupted), **When** the user runs `hammerkit down`, **Then** any remaining service containers are stopped. 3. **Given** no services currently running, **When** the user runs `hammerkit down`, **Then** the command exits with code 0 without error. ### User Story 2 - Stopping a subset of services by label (Priority: P2) A developer is running multiple services and wants to stop only a specific subset without affecting others. They use `--filter` or `--exclude` to target the relevant services. **Why this priority**: Label filtering is consistent across all service-related commands and supports fine-grained lifecycle control in complex builds. **Independent Test**: Start two labeled services, run `hammerkit down -f