Downcity
CommandsService

city service restart

Advanced command to restart a service for a specific agent target

city service restart

Restart a service for a specific agent target.

Prefer concrete roots like city chat restart or city memory restart for day-to-day use.

Usage

city service restart <serviceName> [--agent <name> | --path <path>] [--host <host>] [--port <port>]

Example

city service restart chat --agent my-agent
city chat restart --path /abs/path/to/agent

Example Output (Based on Current Implementation)

The examples below are aligned with current command implementations in packages/downcity/src (including default output mode and field structure). Placeholder values are used for environment-specific fields.

$ city service restart task
{
  "success": true,
  "service": "task"
}
$ city service restart unknown
{
  "success": false,
  "error": "<service error>"
}