We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 229eada commit 918ab51Copy full SHA for 918ab51
1 file changed
README.md
@@ -91,6 +91,24 @@ echo "John is 30" | ./runprompt extract.prompt | ./runprompt generate-bio.prompt
91
92
The JSON output from the first prompt becomes template variables in the second.
93
94
+### Executable prompt files
95
+
96
+Make `.prompt` files directly executable with a shebang:
97
98
+```handlebars
99
+#!/usr/bin/env runprompt
100
+model: anthropic/claude-sonnet-4-20250514
101
+---
102
+Hello, I'm {{name}}!
103
+```
104
105
+```bash
106
+chmod +x hello.prompt
107
+echo '{"name": "World"}' | ./hello.prompt
108
109
110
+Note: `runprompt` must be in your PATH, or use a relative/absolute path in the shebang (e.g. `#!/usr/bin/env ./runprompt`).
111
112
### CLI overrides
113
114
Override any frontmatter value from the command line:
0 commit comments