Pressa CLI
Command-line interface for Pressa - Compile-as-a-Service. LaTeX in, PDF out.
Installation
npm install -g @pressa/cli
Quick Start
pressa auth
pressa compile report.tex
pressa compile report.tex --compiler xelatex
cat report.tex | pressa compile -
pressa compile report.tex --json
Commands
pressa auth
Configure your API key.
pressa auth
pressa auth --key pressa_xxxx
pressa compile <file>
Compile a LaTeX file to PDF.
-c, --compiler | LaTeX compiler: pdflatex (default), xelatex, or lualatex (Pro and Business plans only) |
-o, --output | Output PDF filename |
--json | Machine-readable JSON output |
--no-download | Don't download PDF, just return URL |
-u, --url | API base URL override |
Use - as filename to read from stdin.
Each plan has limits on pages per document, LaTeX source size, PDF output size, and compile timeout. If a compile exceeds your plan's page limit, the document does not count against your monthly quota and the CLI prints the limit and an upgrade URL.
pressa usage
Show your API usage statistics.
Plan: free
Used: 3/50 this month
Resets: April 30, 2026
API Key: pressa_c... (Test Key)
Configuration
Config is stored in ~/.pressa/config.json:
{
"api_key": "pressa_xxxx",
"api_url": "https://api.pressa.dev"
}
Development
cd cli
npm install
npm run build
npm run dev
License
MIT