---
title: "Run a command across every host in a fleet"
method: POST
path: "/fleets/{id}/execute"
tags: ["Fleets"]
---

# Run a command across every host in a fleet

`POST /fleets/{id}/execute`

Fans out concurrently to every effective member host the caller has edit-level access to. $HOST/$USER/$PORT/$NAME/$INPUT_n substitution is applied per host, same grammar as snippet execution. One host failing does not stop the others.

## Path parameters

- `id` integer, required

## Request body

- object
  - `command` string
  - `inputValues` object

## Response `200`

Per-host execution results.

## Other responses

- `404` — Fleet not found.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
