Saftlint
CLI

Evaluate Saftlint in your own environment.

Saftlint is delivered as a fast native CLI. Software vendors can check SAF-T files they produce or receive without sending them to us.

See a practical Norwegian SAF-T testing workflow.

Delivery
Native CLI
Execution
Locally or in CI
Output
Readable report, JSON, exit code and validation receipt
Network
No activation or network access during validation

How it is used

saftlint validate report.xml
saftlint validate --json report.xml
saftlint validate --receipt report.xml

Exit code 0 means no errors, 1 means validation errors and 2 means a parsing or execution error. The web validator and local edition use the same native engine, XSD and semantic ruleset.

Web validator or CLI?

Web validatorSaftlint CLI
UseManual check of one fileDevelopment, regression testing and CI
DataFile is sent to saftlint.noFile remains in your environment
InterfaceBrowserCLI, JSON and exit codes
AutomationNot offeredYes

Included

  • Profile detection and the matching XSD for Norwegian SAF-T Financial 1.30 and 1.40
  • Observed file profile, version and machine-readable outcome
  • Up to 50 located XSD findings with explicit truncation
  • 42 documented checks; full content validation for 1.40
  • Text report and machine-readable JSON output
  • Deterministic validation receipts and documented exit codes

Version 1.30 support covers profile and XSD; semantic 1.30 rules are not implemented yet. The CLI does not repair or normalise received files, or decide that a file is safe to import.

Maintenance

The licence includes maintained releases with updated checks, code lists and documented interpretations. New SAF-T versions are evaluated when the Norwegian Tax Administration publishes a complete versioned schema and documentation. The public 2.0 project material is not yet a supported profile.

Delivered releases continue to work offline. The licence applies per software product and includes 12 months of updates and rule support.

Interested in evaluating Saftlint locally? Contact kontakt@saftlint.no.