Released docs. You are viewing the documentation published with v0.46.0. Development docs are available at Latest.
evidencectl source mock serve command reference
Serve schema-valid synthetic responses from OpenAPI or exact edited cases.
Contract status
Section titled “Contract status”This page is generated from the public Clap command tree for Registry Stack source version 0.46.0 and catalog SHA-256 d43b1bf418e0b00fac52311fa3a106fa124512dbc88cf511475713af2d73aa47. Hidden implementation commands are omitted.
evidencectl source mock serve [OPTIONS] [PROJECT]Constraints
Section titled “Constraints”| Condition | Requirement |
|---|---|
| Command invocation | --as-of <AS_OF> and --config <CONFIG> cannot be used together. |
| Command invocation | --config <CONFIG> and --explain cannot be used together. |
| Command invocation | --config <CONFIG> and --openapi <OPENAPI> cannot be used together. |
| Command invocation | --config <CONFIG> and --operation <OPERATION> cannot be used together. |
| Command invocation | --config <CONFIG> and --seed <SEED> cannot be used together. |
| Command invocation | --config <CONFIG> and [PROJECT] cannot be used together. |
| Command invocation | --openapi <OPENAPI> and [PROJECT] cannot be used together. |
Arguments
Section titled “Arguments”| Argument | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
[PROJECT] | No | n/a | n/a | n/a | Evidence project directory; defaults to the current directory. This command needs an editable project containing evidence.yaml and its named Function assets. |
Options
Section titled “Options”| Option | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
--openapi <OPENAPI> | No | n/a | n/a | n/a | OpenAPI 3.0 or 3.1 document for an ephemeral, write-free preview |
--config <CONFIG> | No | n/a | n/a | n/a | Materialized mock configuration whose checked body bytes are authoritative |
--operation <OPERATION> | No | n/a | n/a | n/a | Narrow ephemeral discovery to one METHOD /path/template operation |
--http-addr <HTTP_ADDR> | No | n/a | n/a | n/a | Numeric loopback listener address. Standalone mode defaults to 127.0.0.1:4010 |
--seed <SEED> | No | n/a | n/a | n/a | Deterministic unsigned generation seed. Ephemeral mode defaults to zero |
--as-of <AS_OF> | No | n/a | n/a | n/a | Calendar date used only by explicit or inferred age generation |
--explain | No | n/a | n/a | n/a | Explain generator choices without printing generated or authored values |
--format <FORMAT> | No | human | human | n/a | Select human-readable output; this command provides no JSON report |
-h, --help | No | n/a | n/a | n/a | Print help (see a summary with ‘-h’) |
Generation contract
Section titled “Generation contract”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.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.