Skip to content
Registry StackDocsDevelopment (unreleased)

evidencectl source suggest command reference

View as Markdown

Suggest source configuration from an OpenAPI document.

This page is generated from the public Clap command tree for Registry Stack source version 0.46.1 and catalog SHA-256 61bebbb88fe15e4da92e2b0adbca0cd5b1a47b8eac38f4b91a15095011368a43. Hidden implementation commands are omitted.

evidencectl source suggest [OPTIONS] <--openapi <OPENAPI>|PROJECT>
ConditionRequirement
Command invocationExactly one of --openapi <OPENAPI>, [PROJECT] is required.
--list-pointers is present--operation <OPERATION> is required.
Command invocation--openapi <OPENAPI> and [PROJECT] cannot be used together.
ArgumentAlways requiredDefaultValuesEnvironmentDescription
[PROJECT]Non/an/an/aEvidence project directory; the draft is printed when this is absent. This command needs an editable project containing evidence.yaml and its named Function assets.
OptionAlways requiredRepeatableDefaultValuesEnvironmentDescription
--openapi <OPENAPI>NoNon/an/an/aOpenAPI 3.0 or 3.1 document for a print-only draft. With a project, the retained source.openapi.yaml is used instead
--operation <OPERATION>NoNon/an/an/aOperation as “METHOD /path/template”; interactive selection if absent
--status <STATUS>NoNo200n/an/aResponse status code to read the schema from
--media-type <MEDIA_TYPE>NoNoapplication/jsonn/an/aResponse media type to read the schema from
--select <SELECTION>NoYesn/an/an/aProjection pointer to select; repeat once per leaf. Interactive selection if absent
--list-pointersNoNon/an/an/aPrint the candidate pointers the selected operation and response offer for —select, then stop without drafting
--sample <SAMPLE>NoNon/an/an/aSample response JSON file used to suggest bounds. Read only; nothing from it is copied into any artifact except derived bounds
--source-id <SOURCE_ID>NoNon/an/an/aSource identifier for the generated artifacts
--base-url <BASE_URL>NoNon/an/an/aReviewed source origin to write into a newly created source draft
--map-selector <SELECTOR=TARGET>NoYesn/an/an/aExplicit selector-to-request mapping as ROLE.PROFILE.FIELD=path:NAME, query:NAME, or body:/JSON/POINTER. Repeat for each distinct request target. Requires an authoring project
--format <FORMAT>NoNohumanhuman, json, junitn/aEmit the selected command’s report in this format. junit is accepted only by test and fixtures run
-h, --helpNoNon/an/an/aPrint help (see a summary with ‘-h’)

After changing a public command, argument, option, default, environment binding, or help description, run cargo run --locked -p registry-cli-docs -- --write, commit crates/registry-cli-docs/catalog.json, then run npm run generate from docs/site.