CommandsAgent
city agent restart
Restart target agent process
city agent restart
Restart the process for a target agent.
This page remains as a command entry point. For the fuller explanation, see CLI / restart and Restart an Agent Safely.
Usage
city agent restart [path] [options]Key options
-h, --host <host>: service host
Behavior
pathdefaults 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
Related commands
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 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>