If you use
docker, you can validate your
CITATION.cff file as follows.
- Build the docker container:
docker build -t cffvalidator \ https://raw.githubusercontent.com/sdruskat/cff-validator-docker/1.0.0/Dockerfile
- Run the container. Note that you have supply the absolute path to the local
CITATION.cfffile you want to validate with
docker run --rm \ -v </absolute/path/to/your/CITATION.cff>:/cff/CITATION.cff cffvalidator
The Citation File Format README
describes how to validate
CITATION.cff files in Python 3.
If you want to avoid cloning the Citation File Format repository, as described there, you can also download the Python script directly. Note that you may still need to install the required Python packages.