feat(cli): add and document headless command mode and API key/provider management#1883
Open
wauputr4 wants to merge 5 commits into
Open
feat(cli): add and document headless command mode and API key/provider management#1883wauputr4 wants to merge 5 commits into
wauputr4 wants to merge 5 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR completes and documents headless operation for 9Router so it can be used as an API-only service and automation-safe CLI client without opening the web/TUI screens.
Why
What changed
1) Headless mode behavior
--headlessnow has an explicit two-flow workflow.9router <resource> <action>against a running server.2) CLI command coverage
--host/--portin command mode.3) Usage reporting robustness
row.tokensstructure.4) Documentation
cli/README.mdandcli/CLI_HEADLESS.md.ECONNREFUSEDtroubleshooting.Headless vs Terminal UI (what changed)
Headless (
--headless)9router --headless --host 127.0.0.1 --port 20128Terminal UI / default mode
9router(then choose interface), usually opens web/TUI path.Functional impact
Acceptance criteria
9router --headless --host 127.0.0.1 --port 20128starts successfully.9router --host 127.0.0.1 --port 20128 api-keys list9router --host 127.0.0.1 --port 20128 providers list9router --host 127.0.0.1 --port 20128 usage key <key_id> --period 7dECONNREFUSED.Notes
wauputr4/9router#1.