@apijolt/cli
v1.0.0
Published
CLI for APIJolt — convert documents to PDF from the command line
Maintainers
Readme
@getapijolt/cli
Command-line tool for APIJolt — convert any document to PDF without leaving your terminal.
Install
npm install -g @getapijolt/cliOr use without installing:
npx @getapijolt/cli <command>Quick start
# Create a free account (1,000 conversions/month)
apijolt register
# Convert files
apijolt convert report.docx
apijolt convert slides.pptx --output slides.pdf
apijolt convert README.md --theme github
apijolt convert https://example.com
# Convert HTML inline
apijolt html "<h1>Hello world</h1>" --format Letter
# Check usage
apijolt usageSetup
Register
apijolt register
# Interactive: enter email, password, name
# Your API key is displayed and optionally saved to ~/.apijoltUse an existing key
apijolt login
# Paste your key — saved to ~/.apijolt (chmod 600)Via environment variable
export APIJOLT_API_KEY=aj_live_...
apijolt convert file.docxCommands
convert <file|url> — convert anything to PDF
apijolt convert report.docx
apijolt convert spreadsheet.xlsx -o out.pdf
apijolt convert presentation.pptx --landscape
apijolt convert README.md --theme minimal --font-size 12
apijolt convert https://example.com -o page.pdf| Flag | Short | Description |
|------|-------|-------------|
| --output <path> | -o | Output PDF path (default: <input>.pdf or output.pdf) |
| --format <fmt> | -f | Page format: A4, A3, A5, Letter, Legal (default: A4) |
| --landscape | -l | Landscape orientation |
| --theme <name> | -t | Markdown theme: default, github, minimal |
| --font-size <n> | | Markdown base font size in pt (default: 14) |
Supported formats: .md .markdown .doc .docx .odt .rtf .xls .xlsx .ods .csv .ppt .pptx .odp .jpg .png .webp .gif .bmp .tiff and URLs.
html "<html>" — convert HTML string
apijolt html "<h1>Hello</h1><p>World</p>"
apijolt html "<table>...</table>" --format Letter --landscape -o table.pdfusage — show monthly quota
apijolt usage
Plan: free
Usage: 47 / 1000 (4.7%)
[██░░░░░░░░░░░░░░░░░░]
Remaining: 953 callsKey management
apijolt keys # list all keys
apijolt keys:create # create new key
apijolt keys:create --label "Production"
apijolt keys:revoke aj_live_abc1...
apijolt keys:rotate aj_live_abc1... # atomic revoke + reissueMarkdown themes
| Theme | Description |
|-------|-------------|
| default | Light mode, GitHub-style sans-serif |
| github | Dark mode |
| minimal | Serif/print-friendly |
Environment variables
| Variable | Description |
|----------|-------------|
| APIJOLT_API_KEY | API key (overrides ~/.apijolt) |
| APIJOLT_API_URL | Override API URL (staging/self-hosted) |
License
MIT
