Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8f7a240
feat(docs): add elastic docs api commands
akira28 Nov 17, 2026
d4ed0a5
test(docs): capture docs api output through the shared helper
akira28 Nov 17, 2026
2f3cc0c
docs(docs): keep the version flag help from reading as a default
akira28 Nov 17, 2026
96010a6
feat(docs): call the docs API's api-operations resource
akira28 Nov 17, 2026
da78372
feat(docs): use the docs API's apis and api-operations resources
akira28 Nov 17, 2026
71ef7b7
fix(docs): read docs API errors as RFC 9457 problems
akira28 Nov 17, 2026
057f895
fix(docs): validate docs api arguments before any request or dry run
akira28 Nov 17, 2026
bee18db
feat(docs): address docs api operations inside their API
akira28 Nov 17, 2026
0e7d11c
fix(docs): send no cookie on docs api requests
akira28 Nov 18, 2026
1e6f52c
Merge branch 'main' into feature/text-inside-external-tags
akira28 Nov 20, 2026
559848a
fix(docs): align long api keys and name the status of a non-problem e…
akira28 Nov 20, 2026
7661cef
fix(docs): rename --version to --api-version and reject a blank list api
akira28 Nov 23, 2026
cafb60b
ci: retrigger checks
akira28 Nov 23, 2026
68eff1b
Merge branch 'main' into feature/text-inside-external-tags
akira28 Dec 1, 2026
8d85427
fix(docs): reject non-object JSON roots and blank group and api-version
akira28 Dec 1, 2026
b022072
fix: keep non-object JSON roots when merging flags
akira28 Dec 1, 2026
b178091
fix(docs): reject . and .. as an api key or operation id
akira28 Dec 1, 2026
53ba4ee
Merge branch 'main' into feature/text-inside-external-tags
akira28 Dec 2, 2026
11b2052
fix: error on a positional and its flag, and scope strict JSON roots
akira28 Dec 2, 2026
b445312
ci: retrigger checks
akira28 Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
270 changes: 269 additions & 1 deletion docs/cli/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -123217,7 +123217,275 @@
}
}
],
"namespaces": [],
"namespaces": [
{
"segment": "api",
"commands": [
{
"path": [
"docs",
"api"
],
"name": "search",
"parameters": [
{
"role": "positional",
"name": "query",
"type": "string",
"required": false,
"summary": "Words, an endpoint, or a field path"
},
{
"role": "flag",
"name": "query",
"type": "string",
"required": true,
"summary": "Words, an endpoint such as 'GET /_cluster/health', or a field path; end a field with '.' to list its children",
"validations": [
{
"kind": "regex",
"pattern": "\\S"
}
]
},
{
"role": "flag",
"name": "api",
"type": "string",
"required": true,
"summary": "API key, e.g. 'elasticsearch' or 'kibana'. `elastic docs api list` lists the keys.",
"validations": [
{
"kind": "regex",
"pattern": "^(?!\\.\\.?$)[\\s\\S]*\\S"
}
]
},
{
"role": "flag",
"name": "api-version",
"type": "string",
"required": false,
"summary": "API version: 'main' or a major such as '9'. Without it, the current version is used.",
"validations": [
{
"kind": "regex",
"pattern": "\\S"
}
]
},
{
"role": "flag",
"name": "include-deprecated",
"type": "boolean",
"required": false,
"summary": "Include deprecated operations"
},
{
"role": "flag",
"name": "page",
"type": "number",
"required": false,
"summary": "Page number",
"defaultValue": "1",
"validations": [
{
"kind": "range",
"min": "1"
}
]
},
{
"role": "flag",
"name": "size",
"type": "number",
"required": false,
"summary": "Results per page",
"defaultValue": "10",
"validations": [
{
"kind": "range",
"min": "1",
"max": "50"
}
]
}
],
"summary": "Search the Elastic REST API reference for operations",
"intent": {
"requiresAuth": false
}
},
{
"path": [
"docs",
"api"
],
"name": "get",
"parameters": [
{
"role": "positional",
"name": "operation",
"type": "string",
"required": false,
"summary": "An endpoint such as 'GET /_cluster/health', or an operation id"
},
{
"role": "flag",
"name": "endpoint",
"type": "string",
"required": false,
"summary": "A route as you would call it, e.g. 'GET /my-index/_search'",
"validations": [
{
"kind": "regex",
"pattern": "\\S"
}
]
},
{
"role": "flag",
"name": "operation-id",
"type": "string",
"required": false,
"summary": "The OpenAPI operation id, e.g. 'cluster-health'",
"validations": [
{
"kind": "regex",
"pattern": "^(?!\\.\\.?$)[\\s\\S]*\\S"
}
]
},
{
"role": "flag",
"name": "api",
"type": "string",
"required": true,
"summary": "API key, e.g. 'elasticsearch' or 'kibana'. `elastic docs api list` lists the keys.",
"validations": [
{
"kind": "regex",
"pattern": "^(?!\\.\\.?$)[\\s\\S]*\\S"
}
]
},
{
"role": "flag",
"name": "api-version",
"type": "string",
"required": false,
"summary": "API version: 'main' or a major such as '9'. Without it, the current version is used.",
"validations": [
{
"kind": "regex",
"pattern": "\\S"
}
]
},
{
"role": "flag",
"name": "include-body",
"type": "boolean",
"required": false,
"summary": "Include the page body"
}
],
"summary": "Get one operation from the Elastic REST API reference, with its parameters and fields",
"intent": {
"requiresAuth": false
}
},
{
"path": [
"docs",
"api"
],
"name": "list",
"parameters": [
{
"role": "positional",
"name": "api",
"type": "string",
"required": false,
"summary": "API key; omit to list every API"
},
{
"role": "flag",
"name": "api",
"type": "string",
"required": false,
"summary": "API key, e.g. 'elasticsearch'. Omit to list every API.",
"validations": [
{
"kind": "regex",
"pattern": "^(?!\\.\\.?$)[\\s\\S]*\\S"
}
]
},
{
"role": "flag",
"name": "api-version",
"type": "string",
"required": false,
"summary": "API version: 'main' or a major such as '9'. Without it, the current version is used.",
"validations": [
{
"kind": "regex",
"pattern": "\\S"
}
]
},
{
"role": "flag",
"name": "group",
"type": "string",
"required": false,
"summary": "List the operations of this group, e.g. 'cluster'. Without it, the API's groups are counted.",
"validations": [
{
"kind": "regex",
"pattern": "\\S"
}
]
},
{
"role": "flag",
"name": "page",
"type": "number",
"required": false,
"summary": "Page of a group listing",
"validations": [
{
"kind": "range",
"min": "1"
}
]
},
{
"role": "flag",
"name": "size",
"type": "number",
"required": false,
"summary": "Operations per page of a group listing (default 10)",
"validations": [
{
"kind": "range",
"min": "1",
"max": "50"
}
]
}
],
"summary": "List the Elastic REST APIs, the groups of one API, or the operations of one group",
"intent": {
"requiresAuth": false
}
}
],
"namespaces": [],
"summary": "Search, read, and list operations in the Elastic REST API reference"
}
],
"summary": "Search, read, and ask questions about Elastic documentation",
"options": [
{
Expand Down
Loading