@goreal-ai/echo-pdk-cli
v0.3.2
Published
Echo PDK command-line interface
Readme
@goreal-ai/echo-pdk-cli
Echo PDK CLI - Command-line interface for Echo, a Domain Specific Language for dynamic prompt templating.
Installation
npm install -g @goreal-ai/echo-pdk-cli
# or
npx @goreal-ai/echo-pdk-cli <command>Commands
Render a Template
echopdk render template.echo --context context.jsonRenders an Echo template with the provided context and outputs the result.
Options:
--context, -c- Path to JSON file with context variables--output, -o- Output file (defaults to stdout)
Validate Syntax
echopdk validate template.echoValidates the syntax of an Echo template without rendering it.
Example
template.echo:
Hello {{name}}!
[#IF {{role}} #equals(admin)]
You have full access.
[ELSE]
Welcome to our platform.
[END IF]context.json:
{
"name": "Alice",
"role": "admin"
}Run:
echopdk render template.echo -c context.jsonOutput:
Hello Alice!
You have full access.Related Packages
| Package | Description | |---------|-------------| | @goreal-ai/echo-pdk | Core rendering engine | | @goreal-ai/echo-pdk-language | Language definition and schema |
Documentation
Full documentation available at GitHub
License
MIT
