Skip to main content

CLI Usage

Use enpara-cli when you want fast local conversion from terminal.

Table of Contents

Command Syntax

enpara-cli <input.pdf> [flags]

Example:

./bin/enpara-cli ./tmp/manual.pdf --type type1 --format json --output ./tmp/manual/statement.json

Flags

FlagShortDefaultDescription
--format-fcsvOutput format: csv, json, xlsx, ofx
--output-oauto nameOutput file path
--type-tautoPDF parser type: auto, type1, type2
tip

If you skip --output, the tool writes input-base.format in your current folder.

Practical Examples

Default conversion (CSV)

./bin/enpara-cli ./tmp/manual.pdf --type type1 --format csv --output ./tmp/manual/statement.csv

Convert to JSON

./bin/enpara-cli ./tmp/automatic.pdf --type type2 --format json --output ./tmp/auto/statement.json

Convert to XLSX

./bin/enpara-cli ./tmp/automatic.pdf --type type2 --format xlsx --output ./tmp/auto/statement.xlsx

Convert to OFX for accounting import

./bin/enpara-cli ./tmp/automatic.pdf --format ofx --output ./tmp/auto/statement.ofx

Choose a custom output filename

./bin/enpara-cli ./tmp/manual.pdf --type type1 --format csv --output ./tmp/manual/my-transactions.csv

Parse as type2 explicitly

./bin/enpara-cli ./tmp/automatic.pdf --type type2 --format json --output ./tmp/auto/type2.json

Verified output preview

Tarih;Hareket tipi;Açıklama;NFC;İşlem Tutarı;Bakiye
28.03.2026;Diğer;000000004228140-DED COFFEE IZMIR TR;0;-215,00;2.142,27

PDF Type Selection

  • auto: recommended first choice. Detects type1 or type2 automatically.
  • type1: manual statement layout parser.
  • type2: monthly automatic statement layout parser.

If conversion looks wrong, rerun with an explicit type.

warning

Wrong parser type can cause missing rows or malformed values. If auto fails, force type1 or type2 and compare outputs.

Next Steps