Skip to main content
The --file or -f flag reads content from a file and appends it to your prompt.

Quick Start

praisonai "Summarize this document" --file document.txt

Usage

praisonai "<prompt>" --file <path> [options]
praisonai "<prompt>" -f <path> [options]

Options

OptionDescription
--file, -fPath to file to read and append to prompt

Examples

Summarize a Document

praisonai "Summarize the key points" --file report.txt

Analyze Code

praisonai "Review this code for bugs" -f main.py

Process Multiple Files with @mentions

praisonai "Compare these files @file1.txt @file2.txt"

Supported File Types

  • Text files (.txt, .md, .csv)
  • Code files (.py, .js, .ts, .go, etc.)
  • Configuration files (.yaml, .json, .toml)
  • Any text-based file

Combining with Other Features

# With research mode
praisonai "Analyze this data" --file data.csv --research

# With tools
praisonai "Process this file" --file input.txt --tools tools.py

# With verbose output
praisonai "Explain this code" -f script.py --verbose
For including multiple files, use @mentions syntax: @file1.txt @file2.txt