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

# stackkit service

> Control services declared by the active StackKits plan

Control services declared by the active StackKits plan.

```bash theme={null}
stackkit service [flags]
```

Subcommands: [`stackkit service logs`](#stackkit-service-logs), [`stackkit service restart`](#stackkit-service-restart), [`stackkit service start`](#stackkit-service-start), [`stackkit service stop`](#stackkit-service-stop)

## stackkit service logs

Read bounded, redacted service logs.

```bash theme={null}
stackkit service logs <service-key> [flags]
```

| Flag       | Type   | Default | Description                                       |
| ---------- | ------ | ------- | ------------------------------------------------- |
| `--cursor` | string | —       | Opaque cursor from a previous result              |
| `--json`   | bool   | —       | Write the versioned service log page as JSON      |
| `--tail`   | int    | `100`   | Number of redacted log entries to return (1..200) |

**Examples**

```bash theme={null}
# Read the last 50 redacted log entries of the TinyAuth login gateway
stackkit service logs auth --tail 50

# Read PocketID logs as JSON
stackkit service logs id --json

# Read the next page with the cursor the previous JSON result returned
stackkit service logs id --json --cursor <cursor>
```

## stackkit service restart

Restart one managed service.

```bash theme={null}
stackkit service restart <service-key> [flags]
```

| Flag              | Type | Default | Description                                         |
| ----------------- | ---- | ------- | --------------------------------------------------- |
| `--json`          | bool | —       | Write the versioned service action result as JSON   |
| `--owner-approve` | bool | —       | Explicitly approve the owner-bound service mutation |

**Examples**

```bash theme={null}
# Restart the PocketID identity service
stackkit service restart id --owner-approve

# Restart the TinyAuth login gateway and print the result as JSON
stackkit service restart auth --owner-approve --json
```

## stackkit service start

Start one managed service.

```bash theme={null}
stackkit service start <service-key> [flags]
```

| Flag              | Type | Default | Description                                         |
| ----------------- | ---- | ------- | --------------------------------------------------- |
| `--json`          | bool | —       | Write the versioned service action result as JSON   |
| `--owner-approve` | bool | —       | Explicitly approve the owner-bound service mutation |

**Examples**

```bash theme={null}
# Start a stopped service again
stackkit service start coolify --owner-approve
```

## stackkit service stop

Stop one managed service.

```bash theme={null}
stackkit service stop <service-key> [flags]
```

| Flag              | Type | Default | Description                                         |
| ----------------- | ---- | ------- | --------------------------------------------------- |
| `--json`          | bool | —       | Write the versioned service action result as JSON   |
| `--owner-approve` | bool | —       | Explicitly approve the owner-bound service mutation |

**Examples**

```bash theme={null}
# Stop a non-critical service; base, id and auth cannot be stopped
stackkit service stop coolify --owner-approve
```
