[Download the latest build here](https://labs.etsi.org/rep/saref/saref-pipeline/-/releases/permalink/latest/downloads/saref-pipeline.jar)
NOTE: SAREF Pypeline has been tested on Linux and Windows WSL2. It's not a goal at the moment to ensure it's working in every environemnt, or provide support for installing and using it.
This SAREF-Pipeline may be run:
**Prerequisites:**
- by double-clicking the JAR file to starting the graphical user interface
- or using the command line interface, run `java -jar saref-pipeline.jar help` to get started
*[`uv`](https://docs.astral.sh/uv/) (recommended) or `pipx` with Python >= 3.13
*[`leveldb`](https://github.com/google/leveldb) (package `libleveldb-dev` on ubuntu)
-s, --sources DIR Path to the folder where projects are stored/cloned (default: target/sources relative to the project directory).
--skip-fetch Skip git fetch for source folders.
-p, --include-projects REGEX
Regex to select which projects to process. Regexes are evaluated against the project name (e.g., "SAREF", "^SAREF4[A-E]"). Can be given multiple times. Shall only be used on the saref-portal project.
-v, --include-versions REGEX
Regex to select which project versions to process. Regexes are evaluated against the project name and version (e.g., "SAREF V4.1.1", "^SAREF4[A-E] V2.1.1"). Shall be compatible with --include-projects. Can be given multiple times.
Shall only be used on the saref-portal project.
-d, --include-documents REGEX
Regex to select which documents to check (ontologies, examples, vocabularies, patterns). Evaluated against the path to the documents. Can be given multiple times.
-c, --include-clauses REGEX
Regex to select which clauses to check. Regexes Evaluated against the TS and clause name (e.g., "TS103673 Clause 9.7.1"). Can be given multiple times.
```
Install the dependencies:
Only option `-c` is not available to `ts` and `ts2md`.
```
pipenv install
```
## About
## Configuration and execution
The SAREF pypeline is part of the SAREF Development Framework. The following projects contributed to the SAREF Pipeline:
Set up your credentials to the ETSI Forge in a file `.env` file. For example with:
*[ETSI STF 578](https://portal.etsi.org/STF/STFs/STF-HomePages/STF578): "Specification of the SAREF development framework and workflow, and development of the Community SAREF Portal for user engagement"
*[StandICT.eu 2026 grant 07-968](https://standict.eu/): "Improving the ETSI TC SmartM2M SAREF publication framework and workflow"
```
user=lefranois
password=mypasswordisverylong
```
The SAREF pypeline is a port to python of the [SAREF pipeline](https://labs.etsi.org/rep/saref/saref-pipeline), with more features and improved performances.
Run the script:
```
python3 main.py
```
## References
*<aid="[1]"></a>[ETSI TS 103 673 V1.2.1](https://www.etsi.org/deliver/etsi_ts/103600_103699/103673/01.02.01_60/ts_103673v010201p.pdf): "SmartM2M; SAREF Development Framework and Workflow, Streamlining the Development of SAREF and its Extensions"