Downcity
CommandsAgent

city agent restart

Restart target agent runtime

city agent restart

Restart runtime for a target agent.

Usage

city agent restart [path] [options]

Key options

  • -h, --host <host>: service host

Behavior

  • path defaults to current directory .
  • Target agent must be registered in console registry
  • Restart flow is stop first, then start again with a new console-assigned port

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 agent restart .
city version: 1.0.0
✅ Downcity daemon restarted
   pid: <pid>
   log: <daemonLogPath>
$ city agent restart .
city version: 1.0.0
❌ Failed to restart daemon: <error>

Table of Contents