Released docs. You are viewing the documentation published with v0.48.0. Development docs are available at Latest.
messagingctl preview command reference
Render one template version with the given data, offline.
Contract status
Section titled “Contract status”This page is generated from the public Clap command tree for Registry Stack source version 0.48.0 and catalog SHA-256 a96331a48f2b131715c8f06aaf5784a9b96ec7cb1ed75b89d46e00051b50d3bc. Hidden implementation commands are omitted.
messagingctl preview [OPTIONS] --locale <LOCALE> --data <FILE> <--runtime-config <ABSOLUTE_FILE>|--package <DIRECTORY>|--project <DIRECTORY>> <TEMPLATE> <VERSION>Constraints
Section titled “Constraints”| Condition | Requirement |
|---|---|
| Command invocation | Exactly one of --runtime-config <ABSOLUTE_FILE>, --package <DIRECTORY>, --project <DIRECTORY> is required. |
| Command invocation | --package <DIRECTORY> and --project <DIRECTORY> cannot be used together. |
| Command invocation | --package <DIRECTORY> and --runtime-config <ABSOLUTE_FILE> cannot be used together. |
| Command invocation | --project <DIRECTORY> and --runtime-config <ABSOLUTE_FILE> cannot be used together. |
Arguments
Section titled “Arguments”| Argument | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
<TEMPLATE> | Yes | n/a | n/a | n/a | The template id |
<VERSION> | Yes | n/a | n/a | n/a | The template version |
Options
Section titled “Options”| Option | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
--runtime-config <ABSOLUTE_FILE> | No | n/a | n/a | n/a | Runtime configuration file |
--package <DIRECTORY> | No | n/a | n/a | n/a | The package directory holding messaging.yaml |
--project <DIRECTORY> | No | n/a | n/a | n/a | Editable authoring project holding messaging.yaml |
--locale <LOCALE> | Yes | n/a | n/a | n/a | A locale the template version declares |
--data <FILE> | Yes | n/a | n/a | n/a | A JSON file holding the template data |
--format <FORMAT> | No | human | human, json | n/a | Emit the selected command’s report in this format |
-h, --help | No | n/a | n/a | n/a | Print help |
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.