Skip to content

Projects command examples

Dmitry Studynsky edited this page Jul 9, 2025 · 1 revision

Examples of how to use the projects command.

Table of content

List of all projects in your account

$ smartling-cli projects list
2f2xxxxx  Sitecore Connector           en-US
129xxxxx  Wordpress Connector          en
855xxxxx  Drupal Connector             en
7c7xxxxx  Word files                   en

Information about the project

$ smartling-cli projects info
ID       2f2xxxxx
ACCOUNT  a3exxxxx
NAME     Test site
LOCALE   en-US: English (United States)
STATUS   active

Listing all target locales

Display all target project locales along with their descriptions.

$ smartling-cli projects locales
zh-CN  Chinese (Simplified)     true
en-AU  English (Australia)      true
fr-FR  French (France)          true
de-DE  German (Germany)         true
it-IT  Italian (Italy)          true
ru-RU  Russian                  true
es     Spanish (International)  true

Listing only locale IDs

Show the short form of the locales list. You can use the -s or --short options.

$ smartling-cli projects locales -s
zh-CN
nl-NL
de-DE

Display only source locale

$ smartling-cli projects locales --source
en-US  English (United States)

Display a short form of the source locale.

$ smartling-cli projects locales --source -s
en-US

Display only enabled target locales

Display only the enabled locales with custom output formatting.

$ smartling-cli projects locales --format='{{if .Enabled}}{{.LocaleID}}{{end}}\n'
zh-CN
nl-NL
de-DE

Read more about Golang templates.

Clone this wiki locally