Docker

We have packaged our command-line tool as a Docker image.

Nick Ustinov avatar
Written by Nick Ustinov
Updated over a week ago

Look for our command-line tool packaged as a Docker image. It’s a perfect choice if you need a platform-independent way to import and export data with Lokalise.

Here are the usage examples:

Export from Lokalise to local directory

 docker run \
    -v /tmp/locale:/opt/dest \
    lokalise/lokalise-cli-2 lokalise2 \
    --token <token> \
    --project-id <project_id:branch> \
    file download \
    --format json \
    --unzip-to /opt/dest

Import local file to Lokalise


docker run \
    -v /tmp/en.json:/opt/src/en.json \
    lokalise/lokalise-cli-2 lokalise2 \
    --token <token> \
    --project-id <project_id:branch> \
    file upload \
    --file /opt/src/en.json \
    --lang-iso en
Did this answer your question?