Olares/docs/zh/developer/install
Peng Peng 61d793e4c6
cli, daemon: add olares-cli status backed by olaresd /system/status (#2917)
* cli, daemon: add `olares-cli status` backed by olaresd /system/status

Adds a new top-level `olares-cli status` command that calls the local
olaresd daemon's `/system/status` HTTP endpoint and prints either a
grouped, annotated human-readable report or raw JSON.

To avoid duplicating the response schema, the daemon's `state` struct
and related enums are extracted into a new shared package
`cli/pkg/daemon/state`. The daemon now type-aliases those types so all
existing daemon call sites keep compiling unchanged.

Made-with: Cursor

* cli: drop unused state.APIResponse envelope type

The HTTP client in cli/pkg/daemon/api/client.go intentionally uses an
inline anonymous envelope with json.RawMessage for the data field so
that --json mode can passthrough the bytes verbatim, so the public
APIResponse{Data State} type defined here had zero references. Remove
it; if a strongly-typed consumer ever shows up, re-add then.

Addresses Cursor Bugbot feedback on PR #2917.

Made-with: Cursor
2026-04-21 00:29:50 +08:00
..
cli cli, daemon: add olares-cli status backed by olaresd /system/status (#2917) 2026-04-21 00:29:50 +08:00
activate-olares.md feat: add docs to main (#1559) 2025-07-17 11:58:59 +08:00
environment-variables.md docs: add application environment variables (#2577) 2026-03-05 17:52:22 +08:00
index.md fix deadlinks 2025-10-16 20:40:35 +08:00
install-and-activate-olares.md feat: add docs to main (#1559) 2025-07-17 11:58:59 +08:00
installation-overview.md feat: add docs to main (#1559) 2025-07-17 11:58:59 +08:00
installation-process.md feat: add docs to main (#1559) 2025-07-17 11:58:59 +08:00
log-in-to-olares.md feat: add docs to main (#1559) 2025-07-17 11:58:59 +08:00
olares-home.md feat: add docs to main (#1559) 2025-07-17 11:58:59 +08:00
reusables.md docs: expose other installation methods (#1685) 2025-08-06 14:59:05 +08:00
versioning.md feat: add docs to main (#1559) 2025-07-17 11:58:59 +08:00