diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 80a5000df0eeda53c3723764fd5723bfffd20ef4..3bff4bd7967196d8ad6d05340237112d1e9a14c5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -83,6 +83,7 @@ style:
     - pydocstyle mpsd-software.py
     - pydocstyle tests.py
     # we could also use `ruff --select D` for pycodestyle. But the behaviour is not exactly the same.
+    - ./mpsd-software-environment.py --version
 
 
 test-bullseye:
diff --git a/mpsd-software.py b/mpsd-software.py
index 3c3a2ccaae8acbce33f7351dbc8806f98baa6317..f667adbe2acd4536c661aad7ee190bd1c4245ba6 100755
--- a/mpsd-software.py
+++ b/mpsd-software.py
@@ -2,6 +2,8 @@
 
 """mpsd-software: tool for installation of software as on MPSD HPC."""
 
+__version__ = "2023.6.9"
+
 import argparse
 import datetime
 import logging
@@ -1035,6 +1037,8 @@ def main():
         help="Set the log level",
     )
 
+    parser.add_argument("--version", action="version", version=__version__)
+
     subparsers = parser.add_subparsers(
         dest="action", title="actions", description="valid actions", required=True
     )