diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-29 22:58:18 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-29 22:58:34 +0300 |
| commit | 6703413fc7ef864f102aa2de5840bf874b589101 (patch) | |
| tree | dc4314024f4627e41fd009efb22fb013e0836de6 /docs/next/website/src | |
| parent | 09bac7f274a2944ca5a5ed83d11845ca6b0ce960 (diff) | |
feat: expose api schema from cli
Diffstat (limited to 'docs/next/website/src')
| -rw-r--r-- | docs/next/website/src/content/docs/cli-reference.mdx | 12 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/socket-api.mdx | 16 |
2 files changed, 28 insertions, 0 deletions
diff --git a/docs/next/website/src/content/docs/cli-reference.mdx b/docs/next/website/src/content/docs/cli-reference.mdx index d841e564..361d09ac 100644 --- a/docs/next/website/src/content/docs/cli-reference.mdx +++ b/docs/next/website/src/content/docs/cli-reference.mdx @@ -33,6 +33,18 @@ herdr status server herdr status client ``` +API schema commands: + +```bash +herdr api schema +herdr api schema --json +herdr api schema --output herdr-api.schema.json +``` + +`herdr api schema` prints a short summary of the socket protocol schema bundled +with the installed binary. Use `--json` for the full JSON Schema document, or +`--output PATH` to write that document to a file. + ## Server ```bash diff --git a/docs/next/website/src/content/docs/socket-api.mdx b/docs/next/website/src/content/docs/socket-api.mdx index 08cd2107..f84bd5e6 100644 --- a/docs/next/website/src/content/docs/socket-api.mdx +++ b/docs/next/website/src/content/docs/socket-api.mdx @@ -17,6 +17,22 @@ Most automation should start with the CLI wrappers. Use the raw socket API only The layers share the same control surface. +## Schema + +The installed CLI can print the socket protocol schema bundled with that Herdr +binary: + +```bash +herdr api schema +herdr api schema --json +herdr api schema --output herdr-api.schema.json +``` + +Plain `herdr api schema` prints a short summary. `--json` prints the full JSON +Schema document for tools, and `--output PATH` writes that document to a file. +The schema covers raw requests, success responses, error responses, emitted +events, and subscription events. + ## What you can control The socket API can: |
