Install and configure the Smartcat CLI

Overview

The Smartcat CLI is a command-line tool for developers who want to synchronize localization files between a local project and Smartcat. You can import and export files, upload and download source and target files, and run pull and push synchronization steps directly from your terminal.

Screenshot of the Smartcat CLI running in a terminal console


Binary downloads (latest version)

Download the binary for your platform:


General syntax

The CLI supports the following commands:

Command Details
login Authorize in Smartcat
init Initialize local project configuration file
import Import files to keys collection
export Export keys collection to files
upload Upload files to Smartcat
download Download source/target files from Smartcat
project Commands for manipulating Smartcat projects
pull Pull step of synchronization process
push Push step of synchronization process

The following general options are available:

Option Details
h, --help Prints help information
v, --version Prints version information

Configuration

Smartcat CLI reads configuration from the following sources, in order:

  1. Global configuration, stored in %APP_DATA%/smartcat/config.json

  2. Local configuration, taken from a file called .smartcat (or smartcat.json) in the current directory

  3. Environment variables

  4. Command-line parameters (see the Global CLI options)


Global CLI options

Main options

  • -s|--server — sets the current Smartcat server (optional)

  • -w|--workspace — sets the current Smartcat workspace ID (optional)

  • -p|--project — sets the current Smartcat project ID (optional)

  • -t|--api-token — sets the current Smartcat API token (optional)

Other options

  • -g|--global — ignore local configuration and use the global one (optional)

  • -c|--config — specifies the path to the config file (optional)

Still need help?

Our support team responds within one business day.

Open a support case