CLI
CLI
The Downcity CLI suite — downcity for local agents and downfed for Federation
CLI
Downcity provides two CLI binaries:
downcity(aliascity) — manages local agents, global config, and City state.downfed— manages Federation deployment, City entities, and service resources.
Both share the same global flags (--verbose, --quiet, --lang) and help system.
Local storage
downcitystores local City state, encrypted credentials, environment variables, channel accounts, and registered Agent project paths in~/.downcity/downcity.db.downfedstores Federation admin profiles, admin keys, Cloudflare account selection, and CLI preferences in~/.downcity/federation.db.- Agent runtime status is resolved from each project daemon's local meta/pid files under
<project>/.downcity/.debug/.
downcity
downcity is the local management CLI. It handles agent lifecycle, plugins, environment variables, tokens, and Federation connections.
Global commands
| Command | Description |
|---|---|
downcity init | Initialize City global state (~/.downcity/downcity.db) |
downcity update | Update the downcity CLI to the latest version |
downcity env | Manage platform environment variables |
downcity config | Manage City configuration |
downcity token | Manage API tokens |
downcity federation | Manage Federation connections |
Agent commands
| Command | Description |
|---|---|
downcity agent create [path] | Create and initialize an Agent project |
downcity agent list | List registered Agent projects |
downcity agent start [path] | Start an Agent (background or foreground) |
downcity agent stop [path] | Stop the background Agent daemon |
downcity agent restart [path] | Restart the background Agent daemon |
downcity agent status [path] | Show background Agent daemon status |
downcity agent doctor [path] | Diagnose daemon state files |
downcity agent chat | Chat with an Agent in the terminal |
downcity agent history | Manage Agent conversation history |
Plugin commands
| Command | Description |
|---|---|
downcity plugins | Manage plugins (interactive or list actions) |
downcity plugins schedule | Manage plugin scheduling |
Chat commands
| Command | Description |
|---|---|
downcity chat | Manage chat plugin resources (interactive) |
downcity chat auth | Manage chat authorization |
downfed
downfed is the Federation management CLI. It handles deployment, project scaffolding, and admin operations.
| Command | Description |
|---|---|
downfed | Open the interactive Federation management interface |
downfed manage | Open the admin management interface |
downfed server manage | Enter the admin workspace for a Federation |
downfed server add | Add a deployed Federation URL |
downfed query <method> <path> | Query the active Federation HTTP API |
downfed create [dir] | Scaffold a new Federation project |
downfed deploy [source] | Deploy a Federation project |
Global flags
--verbose— print detailed progress output--quiet— only print error output--lang <locale>— set CLI language (zh/en)--help— show help for any command
Continue with: