1. Lionbridge onDemand
  2. Lionbridge Connectors
  3. liox-content-cli

Overview

HTTPS SSH

gitflow-avh Codeship Codacy

Lionbridge Content CLI

Prerequisites

Mac

On a Mac you can install the prerequisites using Homebrew:

$ brew install git
$ brew cask install java
$ brew install maven

Setup

To work on the project, do the following:

$ git clone git@bitbucket.org:liox-ondemand/liox-content-cli.git
$ cd liox-content-cli
$ export LIOX_API_ACCESS_KEY_ID=<your-sandbox-api-key>
$ export LIOX_API_SECRET_KEY=<your-sandbox-api-secret>
$ export LIOX_API_ENDPOINT=https://developer-sandbox.liondemand.com/api
$ export LIOX_API_DEFAULT_CURRENCY=USD
$ mvn

Running

To execute the CLI, you first need to set up some environment variables:

$ export LIOX_API_ACCESS_KEY_ID=<your-sandbox-api-key>
$ export LIOX_API_SECRET_KEY=<your-sandbox-api-secret>
$ export LIOX_API_ENDPOINT=https://developer-sandbox.liondemand.com/api
$ export LIOX_API_DEFAULT_CURRENCY=USD

Then you can run the CLI with the following:

$ mvn package
$ alias ltrans="java -jar target/liox-content-cli.jar"
$ ltrans file add --local-file=./pom.xml --source-locale=en-us

Web Site

To generate the site for the CLI:

$ mvn site
$ open target/site/index.html