@getpeppr/cli v0.2.0 adds three new commands, bringing the total to four. All commands work offline and require no getpeppr account.
getpeppr init
Scaffold a starter invoice JSON file with realistic European data, ready to customize and validate.
getpeppr init # Creates invoice.json
getpeppr init --credit-note # Credit note template
getpeppr init my-invoice.json # Custom filename
The generated file passes all Peppol BIS 3.0 validations out of the box.
getpeppr convert
Convert your JSON invoice to Peppol BIS 3.0 UBL XML — the format used by the Peppol network.
getpeppr convert invoice.json # XML to stdout
getpeppr convert invoice.json -o invoice.xml # Write to file
getpeppr convert invoice.json --validate # Validate first
Supports Unix piping: getpeppr convert inv.json | xmllint --format -
getpeppr lookup
Search the public Peppol Directory for registered participants. No API key required.
getpeppr lookup 0192:930020168 # Direct ID lookup
getpeppr lookup --name "transport" --country NO # Search by name
getpeppr lookup 0192:930020168 --json # Machine-readable
The developer workflow
The four commands form a complete offline Peppol toolkit:
getpeppr init # 1. Scaffold
getpeppr validate invoice.json # 2. Validate
getpeppr convert invoice.json # 3. Convert to XML
getpeppr lookup 0208:BE0123456789 # 4. Verify recipient
Update now: npm install -g @getpeppr/cli@latest