Downcity
CommandsService

city service restart

Restart a single service

city service restart

Restart a single service under a target agent.

Usage

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

Example

city service restart chat --agent my-agent

Example Output (Based on Current Implementation)

The examples below are aligned with current command implementations in package/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>"
}

Table of Contents