Skip to content

docs(cli-generator): document the --schema flag - #6660

Open
fern-api[bot] wants to merge 1 commit into
mainfrom
fern/document-schema-flag
Open

docs(cli-generator): document the --schema flag #6660
fern-api[bot] wants to merge 1 commit into
mainfrom
fern/document-schema-flag

Conversation

@fern-api

@fern-api fern-api Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a dedicated page documenting the --schema flag on generated Fern CLIs, which emits the CLI's command surface as JSON for AI agents.

The page covers the three scopes (<bin> --schema, <bin> <resource> --schema, <bin> <resource> <method> --schema), the root object (globalFlags, sdkVariables, operations), the per-operation contract (input, output, defaultSelection, paginable, binaryResponse, streaming), property metadata (including the default vs serverDefault distinction and binding for global flags / SDK variables / env vars), and jq recipes. Content was verified against real output from a generated CLI.

Also links to the new page from the Features page and the Overview "Runtime introspection" card, and adds it to CLI Generator navigation.

Requested by: Fern Support

@fern-api
fern-api Bot requested a review from devalog as a code owner August 17, 2026 18:10
@fern-api

fern-api Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Requested by: will.kendall
Slack thread: View conversation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants