Skip to content
Max Sogin edited this page Jun 12, 2018 · 8 revisions

Smartling

A CLI interface for the Smartling Translation Management Platform's APIs in Go.

Installation

See the Installation page for all options and instructions.

Basic Help / Documentation

Documentation is built-in. Use the --help option with any command to get detailed help for that specific command.

Examples:

smartling-cli --help smartling-cli files push --help

Initial configuration

First of all, you need to create a configuration file that will store the Smartling API authentication parameters for your project or Account. To help you create the file there is an interactive init command which will create the file for you in the current directory

smartling-cli init

After running through the init a smartling.yml file will be in the current directory. If you run init again when there is already a smartling.yml file present, it will overwrite the current file.

Example usages

Display all target locales along with their description, for the currently configured project.

smartling-cli projects locales

List the source files in the currently configured project

smartling-cli files list

Upload a source language file as-is for translation, to the currently configured project, with automatic file type detection

smartling-cli files push my-file.txt

Find more example usages there.

Errors

The CLI Tool uses standard out and standard error (stdout / stderr) to log its actions and error conditions.

Clone this wiki locally