Install from Docker

Prerequisites

Docker Installed: Ensure that Docker is installed and running on your system. You can download Docker from Docker’s official site.

Pulling the Docker Image

A pre-built Docker image is available on Docker Hub, you can pull it using the following command:

docker pull seddryck/didot:latest

Running Didot from Docker

Once you have the Docker image, you can run Didot using Docker in PowerShell.

Basic Command

CMD:

docker run --rm -v %cd%:/files didot -t <template-file> -s <source-file> -o <output-file>

PowerShell:

docker run --rm -v ${pwd}:/files didot -t <template-file> -s <source-file> -o <output-file>
  • --rm: Automatically removes the container after it finishes executing.
  • -v ${pwd}:/files: Mounts the current directory (${pwd} in PowerShell or Bash, %cd% in CMD) to /files inside the Docker container, so Didot can access your local files.
  • -t <template-file>: Specifies the path to the template file inside the /files directory.
  • -s <source-file>: Specifies the path to the source file (YAML, JSON, or XML).
  • -o <output-file>: Specifies the path to the output file that Didot will generate. If omitted, it will display the result on the host console.

Updating Didot

To update to the latest version of Didot, either pull the new Docker image

docker pull seddryck/didot:latest

Install as a .NET local tool
Install from GitHub Releases on Windows