diff --git a/openapi-generator/templates/cli/README.handlebars b/openapi-generator/templates/cli/README.handlebars index 5a3d9e77..9a1dead3 100644 --- a/openapi-generator/templates/cli/README.handlebars +++ b/openapi-generator/templates/cli/README.handlebars @@ -59,11 +59,15 @@ Use the `pull` command to download the most recent locale files back into your p You can also use `phrase` through a docker image, without installing the cli on your computer. - $ docker run --rm phrase/phrase-cli:2.0.15 help + $ docker run --rm phrase/phrase-cli:{{packageVersion}} help Some commands are interactive and require the `-it` flag. - $ docker run -it phrase/phrase-cli:2.0.15 init + $ docker run -it phrase/phrase-cli:{{packageVersion}} init + +Commands that need to read the config file and write locale files can mount a directory. + + $ docker run --volume $(pwd):/code --workdir /code --rm phrase/phrase-cli:{{packageVersion}} pull You can also use the docker image as base for more complex images.