---
title: "ktm agents maintenance"
description: "Use the ktm agents maintenance command to enable or disable maintenance mode and pause or resume test execution on an agent."
sidebarTitle: "maintenance"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Toggle maintenance mode for an agent

## Usage

```bash
ktm agents maintenance [flags]
```

## Examples

```bash
ktm agents maintenance --agent phone-hub-01 --enable --confirm
ktm agents maintenance --agent phone-hub-01 --disable --confirm
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--agent` | string |  | Agent hostname or UUID (required) |
| `--confirm` | boolean |  | Execute the toggle (without this, shows preview) |
| `--disable` | boolean |  | Disable maintenance mode |
| `--enable` | boolean |  | Enable maintenance mode |

## Details

Stop or resume test execution on an agent.

--agent takes either identifier: the agent's hostname or its UUID. Maintenance applies
to every agent type, so no --type is needed.

## Related

- [`ktm agents`](/cli/commands/agents)

<Note>
  Global flags (`--output`, `--debug`, `--host`, …) apply to every command. See the [command reference overview](/cli/commands/overview).
</Note>

## What's next?

<Columns cols={2}>
  <Card title="All commands" icon="terminal" href="/cli/commands/overview">
    Browse the full CLI reference.
  </Card>
  <Card title="Get started" icon="rocket" href="/cli/getting-started">
    Install the CLI and authenticate.
  </Card>
</Columns>
