CLI
Run agents from the command line
Run agents directly from your terminal without writing code.
Quick Start
- Install CLI
bash cargo install praisonai-cli - Run an Agent
bash praisonai chat "What is Rust?" - Interactive Mode
bash praisonai # > What is Rust? # Rust is a systems programming language... # > exit
Commands
| Command | Description |
|---|---|
praisonai chat <prompt> | One-shot chat |
praisonai | Interactive mode |
praisonai run <file> | Run workflow file |
praisonai --model <model> | Use specific model |
praisonai --help | Show help |
Examples
With a Specific Model
praisonai --model gpt-4o chat "Explain quantum computing"Run Workflow File
praisonai run workflow.yamlPipe Input
echo "Summarize this" | praisonai chatConfiguration
Set defaults with environment variables:
export OPENAI_API_KEY="your-key"
export PRAISONAI_MODEL="gpt-4o"
export PRAISONAI_VERBOSE="true"Best Practices
Set API key in environment
Use export OPENAI_API_KEY rather than passing keys inline.
Use workflow files for complex tasks
Define multi-agent workflows in YAML for repeatability.