Recipes CLI
Run AI-powered recipes from the command line
Recipes CLI
Run pre-built AI-powered workflows (recipes) directly from the command line.
Prerequisites
- PraisonAI installed:
pip install praisonai - OpenAI API key:
export OPENAI_API_KEY=your_key - External dependencies vary by recipe (ffmpeg, pandoc, etc.)
List Available Recipes
praison templates listGet Recipe Info
praison templates info ai-podcast-cleanerRun a Recipe
praison templates run <recipe-name> <input> [options]Common Options
| Option | Description |
|---|---|
--output, -o | Output mode: silent, status, trace, verbose, debug, json |
--dry-run | Show plan without executing |
--force | Overwrite existing output |
--verbose, -v | Alias for --output verbose |
--preset | Use a preset configuration |
Output Modes
| Mode | Description |
|---|---|
silent | No output (default, best performance) |
status | Shows tool calls inline: ▸ tool → result ✓ |
trace | Timestamped execution trace: [HH:MM:SS] ▸ tool → result [0.2s] ✓ |
verbose | Full interactive output with panels |
debug | Trace + metrics (tokens, cost, model) |
json | Machine-readable JSONL events |
Video/Audio Recipes
ai-podcast-cleaner
Clean podcast audio with noise reduction, normalization, and transcription.
# Basic usage
praison templates run ai-podcast-cleaner recording.wav
# With output directory
praison templates run ai-podcast-cleaner recording.mp3 --output ./cleaned/
# Aggressive cleanup
praison templates run ai-podcast-cleaner recording.wav --preset aggressive
# Dry run
praison templates run ai-podcast-cleaner recording.wav --dry-runai-video-to-gif
Convert video to optimized GIF.
praison templates run ai-video-to-gif video.mp4
praison templates run ai-video-to-gif video.mp4 --start 10 --duration 3ai-audio-splitter
Split audio by silence detection.
praison templates run ai-audio-splitter long_audio.mp3
praison templates run ai-audio-splitter podcast.wav --min-silence 2.0ai-video-thumbnails
Extract thumbnails from video.
praison templates run ai-video-thumbnails video.mp4
praison templates run ai-video-thumbnails video.mp4 --count 10ai-audio-normalizer
Normalize audio loudness.
praison templates run ai-audio-normalizer audio.mp3
praison templates run ai-audio-normalizer audio.wav --target-lufs -14Document Recipes
ai-pdf-to-markdown
Convert PDF to Markdown.
praison templates run ai-pdf-to-markdown document.pdf
praison templates run ai-pdf-to-markdown document.pdf --ocrai-markdown-to-pdf
Convert Markdown to PDF.
praison templates run ai-markdown-to-pdf document.mdai-pdf-summarizer
Summarize PDF documents.
praison templates run ai-pdf-summarizer document.pdfai-slide-to-notes
Convert slides to notes.
praison templates run ai-slide-to-notes presentation.pdfai-doc-translator
Translate documents.
praison templates run ai-doc-translator document.md --language esImage Recipes
ai-image-optimizer
Optimize images for web.
praison templates run ai-image-optimizer ./images/
praison templates run ai-image-optimizer photo.jpg --quality 80ai-image-cataloger
Catalog images with AI captions.
praison templates run ai-image-cataloger ./photos/ai-screenshot-ocr
Extract text from screenshots.
praison templates run ai-screenshot-ocr screenshot.pngai-image-resizer
Batch resize images.
praison templates run ai-image-resizer ./images/
praison templates run ai-image-resizer ./images/ --sizes "1920,1280,640"Code/Repo Recipes
ai-repo-readme
Generate README for repository.
praison templates run ai-repo-readme ./my-projectai-changelog-generator
Generate changelog from git history.
praison templates run ai-changelog-generator ./my-repo
praison templates run ai-changelog-generator ./my-repo --since v1.0.0ai-code-documenter
Generate code documentation.
praison templates run ai-code-documenter ./src/ai-dependency-auditor
Audit project dependencies.
praison templates run ai-dependency-auditor ./my-projectData Recipes
ai-csv-cleaner
Clean CSV files.
praison templates run ai-csv-cleaner data.csv
praison templates run ai-csv-cleaner data.csv --drop-duplicatesai-json-to-csv
Convert JSON to CSV.
praison templates run ai-json-to-csv data.jsonai-data-profiler
Profile data files.
praison templates run ai-data-profiler data.csvai-schema-generator
Generate JSON Schema.
praison templates run ai-schema-generator data.jsonWeb Recipes
ai-url-to-markdown
Extract article from URL.
praison templates run ai-url-to-markdown https://example.com/articleai-sitemap-scraper
Scrape sitemap URLs.
praison templates run ai-sitemap-scraper https://example.com/sitemap.xmlPackaging Recipes
ai-folder-packager
Package folder with manifest.
praison templates run ai-folder-packager ./my-project
praison templates run ai-folder-packager ./my-project --format tar.gzOutput Structure
All recipes produce:
- Primary output files (varies by recipe)
run.json– Execution metadatarun.log– Execution log (if verbose)
run.json Schema
{
"recipe": "ai-podcast-cleaner",
"version": "1.0.0",
"started_at": "2024-12-29T00:00:00Z",
"completed_at": "2024-12-29T00:01:00Z",
"status": "success",
"input": "./recording.wav",
"output_dir": "./outputs/ai-podcast-cleaner/20241229-000000/",
"config": {},
"outputs": [
{"name": "cleaned.mp3", "path": "cleaned.mp3", "size": 1234567}
],
"metrics": {"duration_sec": 60.5}
}Troubleshooting
Missing External Dependencies
# Check dependencies
praison tools check
# Install ffmpeg (macOS)
brew install ffmpeg
# Install poppler (macOS)
brew install poppler
# Install pandoc (macOS)
brew install pandocMissing API Key
export OPENAI_API_KEY=your_key_herePermission Errors
Use --force to overwrite existing output:
praison templates run ai-podcast-cleaner recording.wav --force