FacturXDotNet.CLI 0.2.1-alpha

Prefix Reserved
This is a prerelease version of FacturXDotNet.CLI.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global FacturXDotNet.CLI --version 0.2.1-alpha
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local FacturXDotNet.CLI --version 0.2.1-alpha
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FacturXDotNet.CLI&version=0.2.1-alpha&prerelease
                    
nuke :add-package FacturXDotNet.CLI --version 0.2.1-alpha
                    
FacturX.NET CLI v0.1.0-alpha.4+82dc4ab997370e5b21e2a89d0357faa95c7bb8fe
Copyright © 2025 Ismail Bennani

Usage:
  facturx [command] [options]

Options:
  --version       Show version information
  -?, -h, --help  Show help and usage information

Commands:
  extract <path>   Extracts the content of a Factur-X PDF.
  validate <path>  Validates the content of a Factur-X PDF.

Generate

FacturX.NET CLI v0.1.0-alpha.4+82dc4ab997370e5b21e2a89d0357faa95c7bb8fe
Copyright © 2025 Ismail Bennani

Usage:
  facturx generate [options]

Options:
  --pdf <path> (REQUIRED)                                                  The path to the PDF that will be used as base.
  --cii <path> (REQUIRED)                                                  The path to the CII file to use as structured data.
  --cii-name <name>                                                        The name of the CII attachment in the result. [default: factur-x.xml]
  --attach <path>                                                          Additional files to attach to the result.
  -o, --output-path <path>                                                 The path to the output file.
  --skip-validation                                                        Do not validate the generated Factur-X PDF. [default: False]
  --warnings-as-errors                                                     Treat warnings as errors. [default: False]
  -p, --profile <Basic|BasicWl|En16931|Extended|Minimum|None>              The profile to use for validation. If set, the profile will override the one specified in the Factur-X file.
  -s, --skip-rule                                                          The business rules that should be skipped. Example: --skip-rule "BR-01" --skip-rule "BR-02"
  -v, --verbosity <d|detailed|diag|diagnostic|m|minimal|n|normal|q|quiet>  Set the verbosity level. [default: Normal]
  -?, -h, --help                                                           Show help and usage information

Example

facturx generate --pdf "0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.pdf" --cii "0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.xml" 

Result

╭─Options──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Basd PDF         D:\source\repos\FacturXDotNet\Specification 1.0.07.2\5. FACTUR-X 1.07.2 - Examples\0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.pdf │
│ CII XML          D:\source\repos\FacturXDotNet\Specification 1.0.07.2\5. FACTUR-X 1.07.2 - Examples\0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.xml │
│ Validate result  True                                                                                                                                                        │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

✔ The input files have been read in 1 millisecond.
✔ The document has been generated in 70 milliseconds.
✔ The document has been checked in 70 milliseconds.

✔ The document is valid.
✔ Document profile: Minimum.
✔ Detected profile: Extended.

✔ The document has been exported to D:\source\repos\FacturXDotNet\Specification 1.0.07.2\5. FACTUR-X 1.07.2 - Examples\0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM-facturx.pdf in 3 milliseconds.

Validate

FacturX.NET CLI v0.1.0-alpha.4+82dc4ab997370e5b21e2a89d0357faa95c7bb8fe
Copyright © 2025 Ismail Bennani

Usage:
  facturx validate <path> [options]

Arguments:
  <path>  The path to the Factur-X PDF.

Options:
  --cii-attachment <name>                                      The name of the CII attachment. [default: factur-x.xml]
  --warnings-as-errors                                         Treat warnings as errors.
  -p, --profile <Basic|BasicWl|En16931|Extended|Minimum|None>  The profile to use for validation. If set, the profile will override the one specified in the Factur-X file.
  -s, --skip-rule                                              The business rules that should be skipped. Example: --skip-rule "BR-01" --skip-rule "BR-02"
  -?, -h, --help                                               Show help and usage information

Example

facturx validate "0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIEN_MINIMUM.pdf"

Result

╭─Options──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Document             D:\source\repos\FacturXDotNet\Specification 1.0.07.2\5. FACTUR-X 1.07.2 - Examples\0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.pdf │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

✔ The document has been parsed in 122 milliseconds.
✔ The document has been checked in 36 milliseconds.

✔ The document is valid.
✔ Document profile: Minimum.

Extract

FacturX.NET CLI v0.1.0-alpha.4+82dc4ab997370e5b21e2a89d0357faa95c7bb8fe
Copyright © 2025 Ismail Bennani

Usage:
  facturx extract <path> [options]

Arguments:
  <path>  The path to the Factur-X PDF.

Options:
  --cii <path>             Extracts the content of the CII XML. Optionally specify a path, otherwise the CII XML will be saved next to the PDF with the same name.
  --cii-attachment <name>  The name of the CII attachment. [default: factur-x.xml]
  --xmp <path>             Extracts the content of the XMP metadata. Optionally specify a path, otherwise the XMP metadata will be saved next to the PDF with the same name.
  -?, -h, --help           Show help and usage information

Example:

facturx validate "0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIEN_MINIMUM.pdf" --cii --xmp

Result

╭─Options─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Document    D:\source\repos\FacturXDotNet\Specification 1.0.07.2\5. FACTUR-X 1.07.2 - Examples\0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.pdf │
│ Export CII  True                                                                                                                                                        │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

✔ Extracted CII XML to 'D:\source\repos\FacturXDotNet\Specification 1.0.07.2\5. FACTUR-X 1.07.2 - Examples\0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.xml' in 75 milliseconds.
✔ Extracted XMP metadata to 'D:\source\repos\FacturXDotNet\Specification 1.0.07.2\5. FACTUR-X 1.07.2 - Examples\0.MINIMUM\Facture_F20220023-LE_FOURNISSEUR-POUR-LE_CLIENT_MINIMUM.xmp' in 5 milliseconds.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.5.9-alpha 113 5 days ago
0.5.8-alpha 121 7 days ago
0.5.7-alpha 115 7 days ago
0.5.6-alpha 118 7 days ago
0.5.5-alpha 119 7 days ago
0.5.4-alpha 89 8 days ago
0.5.3-alpha 150 10 days ago
0.5.2-alpha 153 11 days ago
0.5.1-alpha 147 11 days ago
0.5.0-alpha 149 11 days ago
0.4.2-alpha 132 13 days ago
0.4.1-alpha 139 14 days ago
0.3.7-alpha 118 18 days ago
0.3.6-alpha 117 18 days ago
0.3.5-alpha 120 18 days ago
0.3.4-alpha 120 18 days ago
0.3.2-alpha 119 19 days ago
0.3.1-alpha 115 20 days ago
0.2.1-alpha 99 a month ago
0.1.0-alpha 427 a month ago
0.0.0-alpha.0.92 235 a month ago
0.0.0-alpha.0.73 119 a month ago
0.0.0-alpha.0.70 124 a month ago